New submission from sk xing: The setdefault method of the tuple allows the introduction of custom data types.At this point, the __repr__ method is implemented so that the returned data type has an error.The type of str is returned, but the int type is written to the tuple.Also, write str without quotation marks. Look at the demo.py in the attachment
---------- components: Windows files: demo.py messages: 302497 nosy: paul.moore, sk xing, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: There is a problem with the setdefault type conversion in the tuple versions: Python 3.6 Added file: https://bugs.python.org/file47151/demo.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31514> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com