This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: demo warning for expressions w/no effect
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: nnorwitz
Priority: normal Keywords: patch

Created on 2002-01-19 19:24 by nnorwitz, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
noop-patch nnorwitz, 2002-01-19 19:24
Messages (2)
msg38762 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-01-19 19:24
This patch is not meant to be applied as is.  
It is for discussion purposes.

It modifies the compiler to warn about statements that
have no effect.  It does a printf() when it determines
an expression has no effect.  The sample definition is:
 a POP_TOP preceded by a BINARY_* or a LOAD_* operation.

msg38763 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-03-25 12:47
Logged In: YES 
user_id=33168

I don't think this is useful any more.
History
Date User Action Args
2022-04-10 16:04:54adminsetgithub: 35954
2002-01-19 19:24:51nnorwitzcreate