Message197114
| Author | ethan.furman |
|---|---|
| Recipients | arigo, eli.bendersky, eric.snow, ethan.furman, ronaldoussoren |
| Date | 2013-09-06.22:14:13 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1378505653.93.0.998449847864.issue16938@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
dir(obj) is only confused if it returns attributes that are not found in obj.__dict__ (aka virtual attributes). For these virtual attributes, setting __objclass__ solves the problem. Armin, when you say it's a workaround do you mean __objclass__ itself, or the way Ronald and I are using it? It looks like Ronald is using it the way it was intended (on a descriptor), although I may be abusing it by putting it on an Enum member. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2013-09-06 22:14:13 | ethan.furman | set | recipients: + ethan.furman, arigo, ronaldoussoren, eli.bendersky, eric.snow |
| 2013-09-06 22:14:13 | ethan.furman | set | messageid: <1378505653.93.0.998449847864.issue16938@psf.upfronthosting.co.za> |
| 2013-09-06 22:14:13 | ethan.furman | link | issue16938 messages |
| 2013-09-06 22:14:13 | ethan.furman | create | |