[issue27234] tuple - single value with comma is assigned as type tuple
Jelle Zijlstra
report at bugs.python.org
Sun Jun 5 13:09:08 EDT 2016
Jelle Zijlstra added the comment:
Yes, this is intentional. It is documented in https://docs.python.org/3/reference/expressions.html#expression-lists:
"The trailing comma is required only to create a single tuple"
----------
nosy: +Jelle Zijlstra
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27234>
_______________________________________
More information about the Python-bugs-list
mailing list