Re: Making Non Callable Objects Callable

2008-10-07 Thread exiquio
On Oct 7, 1:56 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > exiquio wrote: > > I am trying to figure out if there is a way to make an object in > > python callable, modules in particular. I wrongly assume that defining > > '__call__' in the the objects __dict__ would work. Any help would be >

Re: Making Non Callable Objects Callable

2008-10-07 Thread exiquio
On Oct 7, 1:56 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > exiquio wrote: > > I am trying to figure out if there is a way to make an object in > > python callable, modules in particular. I wrongly assume that defining > > '__call__' in the the objects __dict__ would work. Any help would be >

Re: Making Non Callable Objects Callable

2008-10-07 Thread Christian Heimes
exiquio wrote: I am trying to figure out if there is a way to make an object in python callable, modules in particular. I wrongly assume that defining '__call__' in the the objects __dict__ would work. Any help would be appreciated. No, that doesn't work. Several magic methods (__*__) aren't lo

Making Non Callable Objects Callable

2008-10-07 Thread exiquio
I am trying to figure out if there is a way to make an object in python callable, modules in particular. I wrongly assume that defining '__call__' in the the objects __dict__ would work. Any help would be appreciated. -- http://mail.python.org/mailman/listinfo/python-list