[issue10330] trace module doesn't work without threads

2011-05-25 Thread Stefan Krah
Stefan Krah added the comment: test_trace still fails on 2.7 on the no-threads bot: http://www.python.org/dev/buildbot/all/builders/AMD64%20Fedora%20without%20threads%202.7/builds/22/steps/test/logs/stdio Could you have a short look at the patch. I think it should be correct; the tests pass.

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r86229, merged in r86231 (3.1) and r86233 (2.7). -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I'll commit tonight. BTW, on a without-threads build: >>> import dummy_threading >>> dummy_threading.settrace >>> dummy_threading.settrace.__module__ 'threading' In other words, dummy_threading.settrace is always the same as threading.settrace. Since

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > dummy_threading feels a bit like black magic to me. What do you think > about something like issue10330.diff attached. It's fine for me. -- ___ Python tracker

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: dummy_threading feels a bit like black magic to me. What do you think about something like issue10330.diff attached. -- keywords: +patch Added file: http://bugs.python.org/file19512/issue10330.diff ___ Python

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I wish I could test this patch but on OSX I get $ ./configure --without-threads $ make Traceback (most recent call last): File "/Users/sasha/Work/python-svn/py3k/Lib/site.py", line 519, in main() File "/Users/sasha/Work/python-svn/py3k/Lib/site.p

[issue10330] trace module doesn't work without threads

2010-11-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : The trace module doesn't work when threading is disabled ("./configure --without-threads"). The following patch fixes this: diff -r 345827dcf409 Lib/trace.py --- a/Lib/trace.py Fri Nov 05 20:58:28 2010 +0100 +++ b/Lib/trace.py Fri Nov 05 21:20:09 2