[prev] [thread] [next] [lurker] [Date index for 2003/09/12]
> class exit: > def __repr__(self): > import sys > sys.exit() > exit = exit() > import __builtin__ > __builtin__.quit = __builtin__.exit = exit > del exit This seems pretty straightforward. Not that I'm going to defend Python (it's got more than its fair share of grand mal suckage), but this is not all that obscure. It sucks deeply that it's necessary, and I would have hoped the syntax would allow direct redefinition of the methods in __builtin__ rather than having to create a new class and method. What I really want is a template-based language with Smalltalk-like syntax and a decent set of string operations. And, no, Ruby isn't.There's stuff above here
Generated at 14:02 on 01 Jul 2004 by mariachi 0.52