[issue1023290] Conversion of longs to bytes and vice-versa.
Mark Dickinson
report at bugs.python.org
Sat Feb 13 19:45:34 CET 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
Thanks, Alexandre! Agreed on both points. I don't really want to allow u'big' and u'little', but I think that's just my laziness talking. (Apart from that, I have a working patch.)
There's some precedent for not allowing the unicode versions:
>>> float.__getformat__("double")
'IEEE, little-endian'
>>> float.__getformat__(u"double")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __getformat__() argument must be string, not unicode
But I admit it isn't particularly compelling.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1023290>
_______________________________________
More information about the Python-bugs-list
mailing list