Why not 3.__class__ ?

Martin von Loewis loewis at informatik.hu-berlin.de
Wed Sep 26 11:44:32 EDT 2001


Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> writes:

> 18 Sep 2001 15:21:53 +0200, Martin von Loewis <loewis at informatik.hu-berlin.de> pisze:
> Numbers don't have attributes named with 'e' and digits, so resolving
> this ambiguity to scientific notation doesn't cause trouble to any
> useful program.
> 
> I agree that this kind of disambiguation is ugly. But ugliness of
> rules is the only reason against; it would work in practice.

Well, "in practice", it would not work: given the current tokenizer,
it would be quite difficult to integrate this disambiguation.

Regards,
Martin




More information about the Python-list mailing list