Message12389
Logged In: YES
user_id=562624
I think I have a cleaner solution than a wrapper object. Now
that we can inherit from built-in types it should be possible to
make a subclass of file and override the close method.
There's a small problem because file.__new__ returns an
uninitialized file object and there is no way to initialize it in
Python, only from C. I noticed this a while ago but now that I
see an actual use for subclassing file objects I think it's time to
fix it.
Patch coming soon.
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:05:47 | admin | link | issue608635 messages |
| 2007-08-23 14:05:47 | admin | create | |
|