On Jun 9, 2008, at 17:12, Alex Martelli wrote:
The problem is more general: what if a member (of some external object we're proxying one way or another) is named print (in Python < 3), or class, or...? To allow foo.print or bar.class would require pretty big changes to Python's parser
I simple solution to this would be to introduce syntax that allow you to "quote" identifiers that would otherwise be lexed as keywords. For instance C# uses a prefix '@' for such quoting, so you could write [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED] if you insist on using such identifiers. Too ugly for Python I guess.
Regards, Gisle _______________________________________________ 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