[issue4202] Multiple interpreters and readline module hook functions.
Winston451 added the comment: I attached a patch that solve the problem -- keywords: +patch Added file: http://bugs.python.org/file27725/readline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4202] Multiple interpreters and readline module hook functions.
Changes by Winston451 montag...@laposte.net: -- type: - behavior versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4202] Multiple interpreters and readline module hook functions.
Changes by Winston451 montag...@laposte.net: Added file: http://bugs.python.org/file27727/readline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4202] Multiple interpreters and readline module hook functions.
Changes by Winston451 montag...@laposte.net: Removed file: http://bugs.python.org/file27725/readline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4202] Multiple interpreters and readline module hook functions.
Winston451 added the comment: Hi, I'm currently developping an application which runs sub interpreters in threads (one sub interpreter per thread). When I try to use readline completion in these sub interpreters it fails because it's not possible to import the keyword module (PyEval_GetRestricted() returns true). I think it is due to the fact that readline's on_completion() use PyGILState_Ensure(). It should be possible to use PyEval_RestoreThread with _PyOS_ReadlineTState instead. -- nosy: +Winston451 status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9422] Memory leak when reinitializing a Struct object
New submission from Winston451 montag...@laposte.net: The s_init function of the _struct.c file does not free the s_codes field before storing a new address into it. So when a Struct object is reinitialized the memory block pointed to by s_codes is lost. The file attached with the bug report shows a code which reproduce the problem. -- components: Library (Lib) files: leak.py messages: 111995 nosy: Winston451 priority: normal severity: normal status: open title: Memory leak when reinitializing a Struct object type: resource usage versions: Python 2.6 Added file: http://bugs.python.org/file18262/leak.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9422 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9422] Memory leak when reinitializing a Struct object
Winston451 montag...@laposte.net added the comment: Hi Mark, I added a patch in the file list that should correct the bug. -- keywords: +patch Added file: http://bugs.python.org/file18263/leak.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9422 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9422] Memory leak when reinitializing a Struct object
Winston451 montag...@laposte.net added the comment: I don't think that the weakreflist should be cleared. After all the object is just reinitialized not destructed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9422 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9422] Memory leak when reinitializing a Struct object
Winston451 montag...@laposte.net added the comment: I was just looking at the code of the struct when i saw this problem. Personnally I have never had to reinitialize a Struct object but Python allows it so... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9422 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9422] Memory leak when reinitializing a Struct object
Winston451 montag...@laposte.net added the comment: BTW, I am really amazed by your reactivity. I submitted a bug report at 22:33 and one hour later it's fixed. It's really great! Keep up the good work! :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9422 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com