Message51695
Reimplementing the whole file interface as a proxy functions might be the safest route, yes.
I realized that the __getattr__() magic is also used to serve at least one special method, namely the __iter__() of the file objects. This only works with old-style classes. In the long-term future, when old-style classes disappear and these classes become new-style, this is likely to introduce a subtle bug. |
|
Date |
User |
Action |
Args |
2007-08-23 15:56:09 | admin | link | issue1630118 messages |
2007-08-23 15:56:09 | admin | create | |
|