Message201592
| Author | alonho |
|---|---|
| Recipients | Alexander.Belopolsky, Christophe Simonis, alonho, anacrolix, belopolsky, eckhardt, ironfroggy, jackdied, jcea, ncoghlan, r.david.murray, rhettinger, ssadler |
| Date | 2013-10-29.00:10:26 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1383005427.7.0.971127509692.issue4331@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Adding a patch with tests and documentation. Please feel free to comment on anything: my English, coding/testing style. I'm pretty sure the documentation can be better but it turns out I speak better Python than English. Two decisions I've made and unsure of: 1. I didn't use @wraps or copied attributes from the wrapped function (__doc__, __dict__) to the partialmethod object. This is intentionally so partial and partialmethod would have similar semantics. 2. I've implemented a __repr__ although in all cases __get__ returns a partial object or bound method. I consider it nice for debugging when looking at an object's __dict__. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2013-10-29 00:10:27 | alonho | set | recipients: + alonho, rhettinger, jcea, ncoghlan, belopolsky, ironfroggy, jackdied, Christophe Simonis, ssadler, eckhardt, r.david.murray, Alexander.Belopolsky, anacrolix |
| 2013-10-29 00:10:27 | alonho | set | messageid: <1383005427.7.0.971127509692.issue4331@psf.upfronthosting.co.za> |
| 2013-10-29 00:10:27 | alonho | link | issue4331 messages |
| 2013-10-29 00:10:27 | alonho | create | |