Re: [Python-Dev] Add transform() and untranform() methods

2013年11月15日 08:36:16 -0800

On 2013年11月16日 00:46:15 +1000
Nick Coghlan <[email protected]> wrote:
> On 16 November 2013 00:04, Antoine Pitrou <[email protected]> wrote:
> >> Rather than the more useful:
> >>
> >> >>> b"abcdef".decode("hex")
> >> Traceback (most recent call last):
> >> File "<stdin>", line 1, in <module>
> >> TypeError: 'hex' decoder returned 'bytes' instead of 'str'; use
> >> codecs.decode() to decode to arbitrary types
> >
> > I think this may be confusing. TypeError seems to suggest that the
> > parameter type sent by the user to the method is wrong, which is not
> > the actual cause of the error.
> 
> The TypeError isn't new,
Really? That's not what your message said.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to