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 wrote: > Op 2010-04-23, Chris Rebert schreef : >> On Fri, Apr 23, 2010 at 2:41 AM, Antoon Pardon >> wrote: >>> The result I get is: >>> >>> 5 >>> 8 >>> 15 >>> Traceback (most recent call last): >>>  File "Symbolics", line 54, in >>>    test() >>>  

Re: Making special method names, work with __getattr__

2010-04-26 Thread Antoon Pardon
Op 2010-04-23, Chris Rebert schreef : > On Fri, Apr 23, 2010 at 2:41 AM, Antoon Pardon > wrote: >> test() >> >> -- >> >> The result I get is: >> >> 5 >> 8 >> 15 >> Traceback (most recent call last): >>  File "Symbolics", line

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 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: > > -

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 f