Why not 3.__class__ ?

Michael Abbott michael at rcp.co.uk
Tue Oct 9 12:14:54 EDT 2001


Paul Rubin <phr-n2001d at nightsong.com> wrote in 
news:7x4rp8q1cy.fsf at ruckus.brouhaha.com:

> Guido van Rossum <guido at python.org> writes:
>> Marcin, I don't understand why you care so much about being able to
>> write 3.foo.  It's painful to fix in the lexer, and probably leads to
>> less useful error messages if someone makes a mistake in a float
>> literal (e.g. "3.e 0").  And I see zero use for it: in practice, you
>> will never ask for 3.foo -- you'll ask for x.foo where x happens to
>> contain the value 3. 
> 
> How about (3).foo?

Or even 3 .foo?  



More information about the Python-list mailing list