26 Apr
2002
26 Apr
'02
5:11 p.m.
[Guido van Rossum]
Nothing would change. None would be a literal keyword, but its value in an expression would be the same as before, so None.__class__ would work. Compare "foo".__class__.
''.__class__
[].__class__ {}.__class__ True.__class__ 2.__class__ File "<input>", line 1 2.__class__ ^ SyntaxError: invalid syntax 2.2.__class__ 2L.__class__
Looks like int is one of the few literals that doesn't allow this. But floats and longs do. Hmmm. Just FYI. ;-) --- Patrick K. O'Brien Orbtech