[Python-Dev] PEP 467: last round (?) (original) (raw)

Ivan Levkivskyi levkivskyi at gmail.com
Sat Sep 3 18:23:37 EDT 2016


On 4 September 2016 at 00:11, Random832 <random832 at fastmail.com> wrote:

On Sat, Sep 3, 2016, at 18:06, Koos Zevenhoven wrote: > I guess one reason I don't like bchr (nor chrb, really) is that they > look just like a random sequence of letters in builtins, but not > recognizable the way asdf would be. > > I guess I have one last pair of suggestions for the name of this > function: bytes.chr or bytes.char.

What about byte? Like, not bytes.byte, just builtins.byte.

I like this option, it would be very "symmetric" to have, compare:

chr(42) '*' str() ''

with this:

byte(42) b'*' bytes() b''

It is easy to explain and remember this.

-- Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160904/84a1785e/attachment.html>



More information about the Python-Dev mailing list