Message181582
| Author |
eckhardt |
| Recipients |
Alexander.Belopolsky, Christophe Simonis, anacrolix, belopolsky, eckhardt, ironfroggy, jackdied, jcea, r.david.murray, rhettinger, ssadler |
| Date |
2013年02月07日.08:36:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1360226165.14.0.948806129405.issue4331@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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". |
|
History
|
|---|
| 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 |
|