Message302504
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:
type(de['four'])
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:33 | steven.daprano | set | recipients:
+ steven.daprano, paul.moore, tim.golden, zach.ware, steve.dower, sk xing |
2017-09-19 06:05:32 | steven.daprano | set | messageid: <1505801132.99.0.538524629861.issue31514@psf.upfronthosting.co.za> |
2017-09-19 06:05:32 | steven.daprano | link | issue31514 messages |
2017-09-19 06:05:32 | steven.daprano | create | |
|