Re: Making special method names, work with __getattr__

2010-04-26 Thread Antoon Pardon
Op 2010-04-23, Chris Rebert schreef c...@rebertia.com: On Fri, Apr 23, 2010 at 2:41 AM, Antoon Pardon apar...@forel.vub.ac.be wrote: test() -- The result I get is: 5 8 15 Traceback (most recent call last):  File

Re: Making special method names, work with __getattr__

2010-04-26 Thread Chris Rebert
On Mon, Apr 26, 2010 at 3:57 AM, Antoon Pardon apar...@forel.vub.ac.be wrote: Op 2010-04-23, Chris Rebert schreef c...@rebertia.com: On Fri, Apr 23, 2010 at 2:41 AM, Antoon Pardon apar...@forel.vub.ac.be wrote: The result I get is: 5 8 15 Traceback (most recent call last):  File

Making special method names, work with __getattr__

2010-04-23 Thread Antoon Pardon
The following is a proof of concept. The idea is to have variables that represent symbolic names/expressions, you can work with like ordinary values, but that can be evaluated later. This is the code: import operator from

Re: Making special method names, work with __getattr__

2010-04-23 Thread Chris Rebert
On Fri, Apr 23, 2010 at 2:41 AM, Antoon Pardon apar...@forel.vub.ac.be wrote: The following is a proof of concept. The idea is to have variables that represent symbolic names/expressions, you can work with like ordinary values, but that can be evaluated later. This is the code: