[Python-3000] PEP 3127 (integer literal syntax) -- any takers?

Guido van Rossum guido at python.org
Mon Jun 11 01:15:06 CEST 2007


On 6/10/07, Georg Brandl <g.brandl at gmx.net> wrote:
> Guido van Rossum schrieb:
> > Very cool; thanks!!! No problems so far.
> >
> > I wonder if we need a bin() built-in that is to 0b like oct() is to 0o
> > and hex() to 0x?
>
> Would that also require a __bin__() special method?

If the other two use it, we might as well model it that way.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list