[Python-Dev] Dinamically set __call__ method
John Ladasky
john_ladasky at sbcglobal.net
Thu Nov 6 15:21:07 EST 2014
More information about the Python-list mailing list
Thu Nov 6 15:21:07 EST 2014
- Previous message (by thread): [Python-Dev] Dinamically set __call__ method
- Next message (by thread): [Python-Dev] Dinamically set __call__ method
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tuesday, November 4, 2014 11:12:31 AM UTC-8, Ethan Furman wrote: > If you really absolutely positively have to have the signature be correct for each instance, you may to either look at a > function creating factory, a class creating factory, or a meta-class. +1. Overriding __call__() within the class definition, over and over again, with different function, looks awkward to me.
- Previous message (by thread): [Python-Dev] Dinamically set __call__ method
- Next message (by thread): [Python-Dev] Dinamically set __call__ method
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list