[Python-Dev] Int literals and method calls

Michael Walter michael.walter at gmail.com
Mon Nov 15 05:44:24 CET 2004


It's confusing/inconsistent.


On Mon, 15 Nov 2004 17:12:50 +1300, Greg Ewing
<greg.ewing at canterbury.ac.nz> wrote:
> Kay Schluehr wrote:
>      1.__class__
> >              ^
> > SyntaxError: invalid syntax
> > 
> > Could this be patched?
> 
> Why bother? Surely it's not too much trouble to type
> 
>    (1).__class__
> 
> on the rare occasions when you want to do something
> like this.
> 
> --
> Greg Ewing, Computer Science Dept, +--------------------------------------+
> University of Canterbury,          | A citizen of NewZealandCorp, a       |
> Christchurch, New Zealand          | wholly-owned subsidiary of USA Inc.  |
> greg at cosc.canterbury.ac.nz         +--------------------------------------+
> 
> 
> 
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/michael.walter%40gmail.com
>


More information about the Python-Dev mailing list