[issue4315] On some Python builds, exec in a function can't create shadows of variables if these are declared "global" in another function of the same module

2008-11-13 Thread Silas S. Brown
New submission from Silas S. Brown <[EMAIL PROTECTED]>: Here's the example code: setting1 = "val1" setting2 = "val2" def dummy(): global setting1 def f(x): d ={"setting1":setting1,"setting2":setting2} exec(x) in d return d[&#x

[issue4315] On some Python builds, exec in a function can't create shadows of variables if these are declared "global" in another function of the same module

2008-11-13 Thread Silas S. Brown
Silas S. Brown <[EMAIL PROTECTED]> added the comment: Sorry, I accidentally posted the workaround code instead of the bug example. This is what I should have posted: setting1 = "val1" setting2 = "val2" def dummy(): global setting1 def f(x): exec(x) retur

[issue1384175] random module - Provider DLL failed to initialize correctly

2009-02-15 Thread Silas S. Brown
Silas S. Brown added the comment: I got a very similar error on an Otek Pocket PC running Windows Mobile 2003 SE and the latest version of pythonce from pythonce.sourceforge.net. The error is: File "C:\devl\release\PythonCE-2.5-20061219\Python-2.5-wince\Lib\random.py", line 10

[issue1384175] random module - Provider DLL failed to initialize correctly

2009-02-15 Thread Silas S. Brown
Silas S. Brown added the comment: After further investigation I'm suspecting that this issue is actually due to the process running out of RAM. ___ Python tracker <http://bugs.python.org/issu