[Python-Dev] str with base (original) (raw)

Barry Warsaw barry at python.org
Fri Jan 20 05:29:11 CET 2006


On Fri, 2006-01-20 at 06:56 +1000, Nick Coghlan wrote:

I'm not aware of anyone that would miss octal literals, but there are plenty of hardware weenies like me that would find "int("DEAD", 16)" less convenient than "0xDEAD".

Although octal literals is handy for things like os.chmod(). Unix weenies shouldn't be totally forgotten in P3K. I'm also for keeping hex() and oct() although if you want to move them out of builtins, that's fine. +0b1 for binary literals and %b.

-Barry

-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20060119/2063725b/attachment.pgp



More information about the Python-Dev mailing list