Message181582
Just for the record, the behaviour is documented, unfortunately in the very last line of the functools documentation: "Also, partial objects defined in classes behave like static methods and do not transform into bound methods during instance attribute look-up."
Concerning how exactly they should behave during that lookup, I'd use the least surprising variant, namely that they are not treated differently from other functions: The first parameter is implicitly "self". |
|
Date |
User |
Action |
Args |
2013-02-07 08:36:05 | eckhardt | set | recipients:
+ eckhardt, rhettinger, jcea, belopolsky, ironfroggy, jackdied, Christophe Simonis, ssadler, r.david.murray, Alexander.Belopolsky, anacrolix |
2013-02-07 08:36:05 | eckhardt | set | messageid: <1360226165.14.0.948806129405.issue4331@psf.upfronthosting.co.za> |
2013-02-07 08:36:05 | eckhardt | link | issue4331 messages |
2013-02-07 08:36:04 | eckhardt | create | |
|