This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | jkrukoff |
|---|---|
| Recipients | georg.brandl, jkrukoff, ncoghlan, terry.reedy |
| Date | 2008年03月28日.17:54:46 |
| SpamBayes Score | 0.15639989 |
| Marked as misclassified | No |
| Message-id | <1206726891.99.0.119271229309.issue643841@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I was just bit by this today in converting a proxy class from old style to new style. The official documentation was of no help in discoverting that neither __getattr__ or __getattribute__ are used to look up magic attribute names. Even the link to "New-style Classes" off the development documentation page is useless, as none of the resources there (http://www.python.org/doc/newstyle/) mention the incompatible change. This seems like an issue that is going to come up more frequently as python 3000 pushes everyone to using only new style classes. It'd be very useful if whatever conversion tool we get, or the python 3000 standard library includes a proxy class or metaclass that is able to help with this conversion, such as this one: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/252151 Though preferably with some knowledge of all exising magic names. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年03月28日 17:54:52 | jkrukoff | set | spambayes_score: 0.1564 -> 0.15639989 recipients: + jkrukoff, georg.brandl, terry.reedy, ncoghlan |
| 2008年03月28日 17:54:52 | jkrukoff | set | spambayes_score: 0.1564 -> 0.1564 messageid: <1206726891.99.0.119271229309.issue643841@psf.upfronthosting.co.za> |
| 2008年03月28日 17:54:50 | jkrukoff | link | issue643841 messages |
| 2008年03月28日 17:54:49 | jkrukoff | create | |