Re: [Python-Dev] [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
May 25, 2007
10:54 a.m.
At 11:25 AM 5/25/2007 +0200, Neville Grech Neville Grech wrote:
Actually, I think that most of the use cases for this PEP would be better served by being able to "quote" code, i.e. to create AST objects directly from Python syntax. Then, you can do anything you can do in a Python expression (including conditional expressions, generator expressions, yield expressions, lambdas, etc.) without having to introduce new special methods for any of that stuff. In fact, if new features are added to the language later, they automatically become available in the same way.
6450
Age (days ago)
6450
Last active (days ago)
0 comments
1 participants
participants (1)
-
Phillip J. Eby