[Python-porting] future newdict kwargs result in bytes

Buck Golemon buck.2019 at gmail.com
Tue May 13 19:40:31 CEST 2014


As I understand it, the contract of future.builtins is to act like the
python3 builtins, but this behavior is distinctly python2-ish (and
necessitates me to write my own `udict`).

>>> dict
<class 'future.builtins.types.newdict.newdict'>
>>> type(tuple(dict(a=1).keys())[0]).mro()
[<type 'str'>, <type 'basestring'>, <type 'object'>]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20140513/aa7af9df/attachment.html>


More information about the Python-porting mailing list