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 steven.daprano
Recipients paul.moore, sk xing, steve.dower, steven.daprano, tim.golden, zach.ware
Date 2017-09-19.06:05:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The demo code you give seems to be working perfectly correctly. I don't think anything here is a bug.

(1) You are working with a dict, not a tuple.

(2) The potint.__repr__ method does NOT have a bug.

(3) de['four'] is NOT an int, it is a potint object, just as you set. It only looks like an int when you print it because that's what the __repr__ does.

To see what the object really is, call:


and you will see it is a potint.

And I have no idea what you think is wrong with string without quotation marks, it works correctly in the demo.

I'm going to close this bug report as Works For Me. If you disagree, please re-open it with more information.
Date User Action Args
2017-09-19 06:05:33steven.dapranosetrecipients: + steven.daprano, paul.moore, tim.golden, zach.ware, steve.dower, sk xing
2017-09-19 06:05:32steven.dapranosetmessageid: <>
2017-09-19 06:05:32steven.dapranolinkissue31514 messages
2017-09-19 06:05:32steven.dapranocreate