PEP: add __sum__ method
dmitrey
dmitrey15 at gmail.com
Sun Jan 22 06:15:48 EST 2012
More information about the Python-list mailing list
Sun Jan 22 06:15:48 EST 2012
- Previous message (by thread): bufsize in subprocess
- Next message (by thread): PEP: add __sum__ method
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi all, could you consider adding __sum__ method, e.g. Python sum(a) checks does a have attribute __sum__ and if it has, then a.__sum__() is invoked instead of Python sum(a). (for my soft FuncDesigner it would be very essential, I guess for many other soft as well, e.g. for PuLP, who has to use lpSum, because ordinary Python sum slows it very much, as well as my funcs, and for large-scale problems max recursion depth is exeeded). Regards, D.
- Previous message (by thread): bufsize in subprocess
- Next message (by thread): PEP: add __sum__ method
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list