[Python-Dev] Making None a keyword (original) (raw)
Guido van Rossum guido@python.org
Fri, 26 Apr 2002 12:29:18 -0400
- Previous message: [Python-Dev] Making None a keyword
- Next message: [Python-Dev] Making None a keyword
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Patrick> ... what about something like:
>>> None.class.base <type 'object'> Patrick> Or does this not apply because None is at the front? I suspect it does apply. I doubt it's used much, but what would happen to types.NoneType? If None is a keyword, how will you generate it, or will it disappear when that happens?
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.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Making None a keyword
- Next message: [Python-Dev] Making None a keyword
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]