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.

Author rhettinger
Recipients dmalcolm, larry, pitrou, python-dev, rhettinger
Date 2013-08-23.12:11:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377259884.58.0.712747137631.issue18772@psf.upfronthosting.co.za>
In-reply-to
Content
I just applied the dict version of dummy to sets in http://hg.python.org/cpython/rev/f0202c3daa7a
and it unexpectedly broke test_gdb again:

FAIL: test_sets (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of sets
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/test_gdb.py", line 319, in test_sets
    self.assertEqual(gdb_repr, "{'b'}")
AssertionError: "{<<dummy key> type at remote 0x103b35c0>, 'b'}" != "{'b'}"
- {<<dummy key> type at remote 0x103b35c0>, 'b'}
+ {'b'}



Antoine, can you see what the issue is?  Why does this show as the dummy key type instead of being recognized as the object returned by _PySet_Dummy?   I'm not sure why this works for dicts, but not for sets.
History
Date User Action Args
2013-08-23 12:11:24rhettingersetrecipients: + rhettinger, pitrou, larry, dmalcolm, python-dev
2013-08-23 12:11:24rhettingersetmessageid: <1377259884.58.0.712747137631.issue18772@psf.upfronthosting.co.za>
2013-08-23 12:11:24rhettingerlinkissue18772 messages
2013-08-23 12:11:24rhettingercreate