On Mon, Apr 25, 2011 at 1:21 PM, Rob Cliffe <rob.cli...@btinternet.com> wrote: .. >>>> 3.__class__ > File "<stdin>", line 1 > 3.__class__ > ^ > SyntaxError: invalid syntax > > Superficially the last example ought to be legal syntax (and return <type > 'int'>).
If it was valid, then >>> 3.e+7 would have to raise an attribute error instead of >>> 3.e+7 30000000.0 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com