Re: [Python-Dev] Fwd: PEP 467: Minor API improvements for bytes & bytearray

2014年8月17日 15:55:04 -0700

On Aug 18, 2014, at 08:48 AM, Nick Coghlan wrote:
>Calling it bytes is too confusing:
>
> for x in bytes(data):
> ...
>
> for x in bytes(data).bytes()
>
>When referring to bytes, which bytes do you mean, the builtin or the method?
>
>iterbytes() isn't especially attractive as a method name, but it's far more
>explicit about its purpose.
I don't know. How often do you really instantiate the bytes object there in
the for loop?
-Barry

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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