Ralf Schmitt added the comment:
sorry, I somehow managed to introduce a segfault:
~/pydev/trunk/ cat t.py
[EMAIL PROTECTED] ok
from mmap import mmap
class anon_mmap(mmap):
def __new__(klass, *args, **kwargs):
res =
Changes by Ralf Schmitt:
Added file: http://bugs.python.org/file9261/subclass_mmap_patch.txt
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1087741
_
___
Ralf Schmitt added the comment:
./python Lib/test/test_mmap.py works with a debug build with this patch.
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1087741
_
___
Georg Brandl added the comment:
Committed as r60202. Thanks for the care!
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1087741
_
___
Python-bugs-list mailing list
Ralf Schmitt added the comment:
I'm attaching a patch, which makes mmap.mmap the mmap class itself and
also makes it subclassable. It also contains changes to the documentation.
This is against revision 60148 of trunk.
--
nosy: +schmir
Added file:
Georg Brandl added the comment:
Reviewed and committed in r60152.
--
nosy: +georg.brandl
resolution: - accepted
status: open - closed
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1087741
_
Ralf Schmitt added the comment:
Many thanks for handling it immediately.
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1087741
_
___
Python-bugs-list mailing list