Proposal: Decimal literals in Python.

Paul Rubin http
Sat Oct 27 02:06:52 EDT 2007


Marc 'BlackJack' Rintsch <bj_666 at gmx.net> writes:
> >>>> assert 0b1 is 0x1
> That this doesn't raise `AssertionError` is an implementation detail. 
> It's not guaranteed the two objects are really the same.

I think Ben is getting at 0b1 and 0x1 being the same type, while the
proposed 0d1 is a different type.  I don't see anything wrong with 1d.
We already have 1j and I don't think that's going away in 3.0.



More information about the Python-list mailing list