[issue3532] bytes.tohex method
report at bugs.python.org
Sun Aug 10 10:15:17 CEST 2008
Senthil <orsenthil at gmail.com> added the comment:
* scriptor Matt Giuca, explico
> I think the biggest problem I have is the existence of fromhex. It's
> really strange/inconsistent to have a fromhex without a tohex.
Except, when we look at the context. This is bytes class
method returns a bytes or bytearray object, decoding the given string object.
Do we require an opposite in the bytes class method? Where will we use it?
> Also I think a lot of people (like me, in my relative inexperience) are
> going to be at a loss as to why .encode('hex') went away, and they'll
No, it is not going away. str.encode('hex') is available to users when they
seek it. They wont look for it under bytes type.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list