[issue17941] namedtuple should support fully qualified name for more portable pickling
Eric V. Smith
report at bugs.python.org
Thu May 9 14:38:03 CEST 2013
Eric V. Smith added the comment:
I agree it should work the same as Enum, and I agree it should be possible to supply the module name. But wouldn't it be cleaner as:
Point = namedtuple('Point', 'x y z', module=__name__)
rather than:
Point = namedtuple(__name__ + '.Point', 'x y z')
?
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17941>
_______________________________________
More information about the Python-bugs-list
mailing list