mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
a4deda0d11
commit
9c8a0866c9
2 changed files with 100 additions and 30 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue