Message273270
You are right, the fix would be better suited in `unwrap`.
But, still, shouldn't any `__getattr__` implementation take care of not returning, for the `__wrapped__` attribute, a dynamic wrapper that provides the same attribute ? `__wrapped__` is commonly resolved to the innermost value without `__wrapped__`, which in this case never happens.
This would also avoid problems with introspection tools that resolve `__wrapped__` without the help of `unwrap` (before Python 3.4 IIRC). |
|
Date |
User |
Action |
Args |
2016-08-21 06:30:59 | pstch | set | recipients:
+ pstch, ncoghlan, cjw296, michael.foord, yselivanov, The Compiler |
2016-08-21 06:30:59 | pstch | set | messageid: <1471761059.24.0.863543993535.issue25532@psf.upfronthosting.co.za> |
2016-08-21 06:30:59 | pstch | link | issue25532 messages |
2016-08-21 06:30:59 | pstch | create | |
|