Add warning for assignment to None, True and False. This is patch

549213 by Jeremy (checking in for him since he's away and busy).
This commit is contained in:
Guido van Rossum 2002-12-23 16:35:23 +00:00
parent a4deda0d11
commit 9c8a0866c9
2 changed files with 100 additions and 30 deletions

View file

@ -84,6 +84,10 @@ Type/class unification and new-style classes
Core and builtins
-----------------
- Assignment to None has long been frowned upon. Now there's a
warning message when you do this. It also warns against assignment
to True or False.
- A frame object's f_lineno attribute can now be written to from a
trace function to change which line will execute next. A command to
exploit this from pdb has been added. [SF patch #643835]