[issue9651] ctypes crash when writing zerolength string buffer to file

2010-08-20 Thread André Bjärby
New submission from André Bjärby : The attached (5 line) file will crash ctypes (Python 2.6.6rc2) with a "Floating point exception" (division by zero at _ctypes.c:2533). There's no crash with python 2.5.5 -- assignee: theller components: ctypes files: test.py messag

[issue7083] locals() behaviour differs when tracing is in effect

2009-10-08 Thread André Bjärby
Changes by André Bjärby : -- components: +Extension Modules, Interpreter Core -Documentation nosy: -andbj versions: +Python 2.4, Python 2.5 -Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/issue7

[issue7083] locals() behaviour differs when tracing is in effect

2009-10-08 Thread André Bjärby
André Bjärby added the comment: It's documented that "The contents of this dictionary should not be modified; changes may not affect the values of local variables used by the interpreter." The script does the opposite. Perhaps an addition to the documentation? "The content

[issue7083] locals() behaviour differs when tracing is in effect

2009-10-08 Thread André Bjärby
New submission from André Bjärby : Running the attached script shows that locals() behaves differently depending on whether sys.settrace() is active. This does not occur when calling locals() in the global scope, only when used inside functions. -- components: Extension Modules