mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
compare singletons by identity not equality (closes #16712)
Patch from Serhiy Storchaka.
This commit is contained in:
parent
a511935151
commit
b29614e047
9 changed files with 15 additions and 15 deletions
|
@ -1332,7 +1332,7 @@ that this python file is installed to the same path as the library (or its
|
|||
/usr/lib/debug/usr/lib/libpython2.6.so.1.0.debug-gdb.py
|
||||
"""
|
||||
def register (obj):
|
||||
if obj == None:
|
||||
if obj is None:
|
||||
obj = gdb
|
||||
|
||||
# Wire up the pretty-printer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue