tac-tics wrote: >> x = MyClass >> xf = x.f >> while True: >> print xf() > > Python has some VERY nasty gotchas concerning parenthesis (or lack > there of).
Is this really a gotcha? I don't think you should blame Python for this mistake. Even a novice programmer like myself can intuitively understand that parentheses are needed. And while this *is* something unique to Python (or maybe unique to dynamic languages in general?), the actual usage of parentheses is consistent with other programming languages, so Python or not, it should just make sense to write x = MyClass() instead of x = MyClass -- http://mail.python.org/mailman/listinfo/python-list