Have a look at this related issue and especially at the link to mailing list discussion in the last post.
Guido's opinion on whether
In other words
Guido's opinion on whether
int()
and float()
should accept bytes:Guido van Rossum Wrote:Yeah, practicalibty beat purity on that one. I'd say let it beat purity on int() and float() as well.
In other words
int()
and float()
implementation in this respect should be considered the exception, not the norm.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs