[issue31514] There is a problem with the setdefault type conversion in the tuple

sk xing report at bugs.python.org
Mon Sep 18 23:11:33 EDT 2017


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 <report at bugs.python.org>
<https://bugs.python.org/issue31514>
_______________________________________


More information about the Python-bugs-list mailing list