Antoine Pitrou added the comment:

Checking for dummies in dicts in python-gdb.py is implicit (see 
PyDictObjectPtr.iteritems()): entries whose value is NULL are not printed.

Set entries do not have values, so instead pySetObjectPtr.write_repr() uses a 
hack with the repr() of the key to check for dummies. Instead I think we should 
re-use the approach in my patch: publish the dummy object as a (private) C API 
so that python-gdb.py can simply compare the key pointer by equality.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18772>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to