[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I can easily port it again, and remove the traceback from the exception. But won't we be sweeping that GC problem under the carpet then? -- ___ Python tracker _

[issue7313] 2to3 fails when source file starts with BOM

2009-11-13 Thread Gabriel Genellina
New submission from Gabriel Genellina : If the source file is encoded in UTF-8 with a BOM, 2to3 cannot parse it: C:\APPS\python\trunk\PCbuild>.\python ..\Tools\scripts \2to3 c:\temp\test_2to3.py root: Generating grammar tables from C:\APPS\python \trunk\lib\lib2to3\PatternGrammar.txt root: Writ

[issue7311] Bug on regexp of HTMLParser

2009-11-13 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6869] Embedded python crashed on 4th run, if "ctypes" is used

2009-11-13 Thread Robin
Changes by Robin : -- nosy: +robince ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue1294] Management of KeyboardInterrupt in cmd.py

2009-11-13 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: > I am not sure I understand: currently Ctrl-C generates a > KeyboardInterrupt, which can be caught by the application which can > then decide how to proceed (in particular it can start another command > loop or exit with a meaningful message or anything

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please note there's a patch in issue7105 to allow safer iteration of weak dicts. -- ___ Python tracker ___ _

[issue7306] Patch - skip winsound tests if no default sound is configured

2009-11-13 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file15308/winsound_test_skipping.patch ___ Python tracker ___ ___ Python-bugs-li

[issue1294] Management of KeyboardInterrupt in cmd.py

2009-11-13 Thread Guido van Rossum
Changes by Guido van Rossum : Removed file: http://bugs.python.org/file8578/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue1294] Management of KeyboardInterrupt in cmd.py

2009-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think this is a good idea. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ _

[issue6132] Implement the GIL with critical sections in Windows

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Phillip, the GIL implementation has changed completely in the current py3k (3.2) branch. If you have any specific benchmark to test it, it would be nice to give it a try. In any case, using a critical section in thread_nt.h could still be beneficial for things

[issue7306] Patch - skip winsound tests if no default sound is configured

2009-11-13 Thread Brian Curtin
Brian Curtin added the comment: Minor cleanup of the original patch -- Added file: http://bugs.python.org/file15320/winsound_test_skipping.patch ___ Python tracker ___ __

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ok, I ported the change again in revision 76238, removing the traceback from the stored exception object. -- ___ Python tracker ___ ___

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Kristján Valur Jónsson added the comment: > > Ok, I ported the change again in revision 76238, removing the traceback > from the stored exception object. "versionchanged" should be 3.2, not 3.1. Thanks! -- ___

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Thanks. Fixed in revision 76239. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks. The patch is now committed in py3k and 3.1. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ _

[issue7314] test_multiprocessing hangs on Windows 7 64 bit

2009-11-13 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : Running a debug python from the py3k branch on my windows 7 machine, 64 bit, test_multiprocessing hangs in the _TestZZZNumberOfObjects test. I don't know this module, but I did a little digging: The main process is in the gc.collec() causing some man

[issue1160] Medium size regexp crashes python

2009-11-13 Thread Michael K Johnson
Michael K Johnson added the comment: I also ran into this issue, and dealt with it as suggested here by changing to sets. Because I have underlying code that has to deal both with small hand-crafted regular expressions and arbitrarily-large machine-generated sets of paths, I subclassed set and

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't know if it's your last change, but test_multiprocessing is now hanging on all buildbots. -- ___ Python tracker ___ _

[issue7315] os.path.normpath doesn't normalize ../path/something.py

2009-11-13 Thread James
New submission from James : os.path.normpath doesn't normalize paths that start with ../ you would expect the final output line in the secpnd run to read: "normpath: badnormpath.py" instead of: "normpath: ../tmp/badnormpath.py" example: ja...@home:~$ cd tmp/ ja...@home:~/tmp$ cat badnormpath.py

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread R. David Murray
R. David Murray added the comment: It is. TestZZZNumberOfObjects hangs at r76238, and does not hang at r76239 on my Gentoo Linux box. -- ___ Python tracker ___ _

[issue7314] test_multiprocessing hangs on Windows 7 64 bit

2009-11-13 Thread R. David Murray
R. David Murray added the comment: See issue 7060. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7316] Add a timeout functionality to common locking operations

2009-11-13 Thread Antoine Pitrou
New submission from Antoine Pitrou : Here is a patch which adds a timeout feature to the locking operations provided by Python. This feature is added at two levels: - the C API level, with a new function PyThread_acquire_lock_timed() - the Python level, with an optional `timeout` argument to the

[issue7314] test_multiprocessing hangs in TestZZZNumberOfObjects after unittest traceback patch

2009-11-13 Thread R. David Murray
Changes by R. David Murray : -- keywords: +buildbot -64bit priority: -> high title: test_multiprocessing hangs on Windows 7 64 bit -> test_multiprocessing hangs in TestZZZNumberOfObjects after unittest traceback patch ___ Python tracker

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread R. David Murray
Changes by R. David Murray : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread R. David Murray
R. David Murray added the comment: It is. TestZZZNumberOfObjects hangs at r76237, and does not hang at r76238 on my Gentoo Linux box. -- ___ Python tracker ___ _

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread R. David Murray
Changes by R. David Murray : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread R. David Murray
R. David Murray added the comment: It is. TestZZZNumberOfObjects hangs at r76238, and does not hang at r76237 on my Gentoo Linux box. -- ___ Python tracker ___ _

[issue7105] weak dict iterators are fragile because of unpredictable GC runs

2009-11-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file15103/weakiter.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7105] weak dict iterators are fragile because of unpredictable GC runs

2009-11-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file15112/weakiter2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems the error is different, though. This is what I get after Ctrl-C (I omit the tracebacks from the other processes): Traceback (most recent call last): File "/home/antoine/py3k/__svn__/Lib/test/test_multiprocessing.py", line 1071, in test_number_of_obje

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, the problem is that a finalizer calls _decref which tries to open an XMLRPC connection (!) to an address on which nobody listens anymore. Then stupid SocketClient (in multiprocessing.connection) loops endlessly because it is designed to do so when it gets EC

[issue7317] Display full tracebacks when an error occurs asynchronously

2009-11-13 Thread Antoine Pitrou
New submission from Antoine Pitrou : When an exception is raised in a __del__ method or a finalizer (i.e. a weakref callback), only the exception name is printed out. Unfortunately, arbitrarily complex code can be involved which makes debugging quite tedious. It would be nice to display the full

[issue7318] multiprocessing should not wait endlessly

2009-11-13 Thread Antoine Pitrou
New submission from Antoine Pitrou : SocketClient() in multiprocessing.connection loops endlessly when the connection is refused. It shouldn't, and instead use a timeout. This is especially annoying since SocketClient() can be called as part of finalizing an object, which makes debugging very ann

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- dependencies: +multiprocessing should not wait endlessly ___ Python tracker ___ ___ Python-bugs-list mai

[issue7315] os.path.normpath doesn't normalize ../path/something.py

2009-11-13 Thread Georg Brandl
Georg Brandl added the comment: normpath() doesn't look at the file system. It cannot know that your current directory is ~/tmp, so it cannot know that . and ../tmp are the same directory. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed _

[issue7301] Add environment variable $PYTHONWARNINGS

2009-11-13 Thread Brian Curtin
Brian Curtin added the comment: I attached a patch against trunk r76237 which seems to cover this, sans official tests. I looked around and didn't find a good place for specifically testing environment variables. I could add test code in test_warnings if that's the best place. The patch allows

[issue7302] Wrong link to Python Language Mapping Specification

2009-11-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The proper link for this issue is to the top of the file: http://docs.python.org/library/xml.dom.html and the See Also section under that. The current link is dead: 404 The proposed link seems correct as its title is the same as the link title: Python Language

[issue7301] Add environment variable $PYTHONWARNINGS

2009-11-13 Thread Philip Jenvey
Philip Jenvey added the comment: test_warnings is probably the best place since test_cmd_line ignores environment variables -- ___ Python tracker ___ ___

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Yes, this is quite different. After seeing this, I created issue 7314. I didn't realize that it had anything to do with my patch but rather blamed it on my brand new windows 7. -- ___ Python tracker

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Yes, this is quite different. > After seeing this, I created issue 7314. > I didn't realize that it had anything to do with my patch but rather > blamed it on my brand new windows 7. I don't think it has anything to do with your patch. While diagnosing the p

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: See my analysis from issue 7314: The other processes are all waiting to ReadFile(). Maybe they have yet to run to the point where they open the socket to which the master process is trying to connect to. The mystery is also: Why does the harmless act

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-11-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ah, okay then. Let's focus on solving 7414 then. -- ___ Python tracker ___ ___ Python-bugs-

[issue7315] os.path.normpath doesn't normalize ../path/something.py

2009-11-13 Thread James
James added the comment: i looked at the source for normpath. i know that it doesn't look at the filesystem. assuming you're not currently sitting at the root directory, in all? cases ../xyz brings you back to where you started. we expect normpath to clean up a path string, collapsing '../' (a

[issue7318] multiprocessing should not wait endlessly

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please review. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file15323/mptimeout.patch ___ Python tracker __

[issue7318] multiprocessing should not wait endlessly

2009-11-13 Thread Jesse Noller
Jesse Noller added the comment: Patch seems fine, going to test it against trunk locally -- ___ Python tracker ___ ___ Python-bugs-lis

[issue7301] Add environment variable $PYTHONWARNINGS

2009-11-13 Thread Brian Curtin
Brian Curtin added the comment: Added a patch which includes tests in test_warnings. There are tests for a single warning, two comma separated warnings, and one env var warning and one command line warning at the same time. -- Added file: http://bugs.python.org/file15324/issue7301_v2.pa

[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-13 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for reviewing, Eric. I'll work a bit more on the tests. I'm also not sure what to do about 2.x: here reversed(xrange(start, stop, step)) has some of the same problems for large numbers. (E.g., if step == LONG_MIN.) The options are: (1) have reversed

[issue7318] multiprocessing should not wait endlessly

2009-11-13 Thread Jesse Noller
Jesse Noller added the comment: Passes on OS/X 10.6.2, I'm ok with it -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-13 Thread Eric Smith
Eric Smith added the comment: For 2.x, I'd just raise an exception. No one is going to be using a step of LONG_MIN. -- ___ Python tracker ___

[issue7286] odd exec() behavior or documentation

2009-11-13 Thread Nick Coghlan
Nick Coghlan added the comment: This is a largely inevitable consequence of the conversion from a statement to a function - the interpreter eval loop for the exec statement used to do some fancy footwork to make locals() modifications work, but with exec becoming just another builtin function th

[issue7318] multiprocessing should not wait endlessly

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, this is now committed to all 4 branches. Amusingly, it seems to solve the test_multiprocessing freeze/failure problem in py3k... (I still hope you can find some time to make multiprocessing more robust and less baroque inside!) -- resolution: -> fi

[issue7318] multiprocessing should not wait endlessly

2009-11-13 Thread Jesse Noller
Jesse Noller added the comment: On Nov 13, 2009, at 5:40 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Ok, this is now committed to all 4 branches. Amusingly, it seems to > solve the test_multiprocessing freeze/failure problem in py3k... > (I still hope you can find so

[issue7313] 2to3 fails when source file starts with BOM

2009-11-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76250. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7312] Run some tests in a loop until failure

2009-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you, here is an update patch. -- Added file: http://bugs.python.org/file15325/looptests2.patch ___ Python tracker ___

[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-13 Thread David Bolen
David Bolen added the comment: Since I was feeling bad for the Windows 7 build slave not being able to pass the tests due to this (at least when other tests weren't failing), I manually added a matching key on the slave pending any test changes. In looking around, since this test is specificall

[issue7319] Silence DeprecationWarning by default

2009-11-13 Thread Brett Cannon
New submission from Brett Cannon : This issue is to track the silencing of DeprecationWarning by default. To start a patch has been attached against trunk which silences DeprecationWarning. Documentation changes are still needed, though. -- components: Interpreter Core files: silence_d

[issue1160] Medium size regexp crashes python

2009-11-13 Thread Ezio Melotti
Ezio Melotti added the comment: Michael, can you provide the regex or even better a testcase that shows the problem? -- stage: -> test needed ___ Python tracker ___

[issue6450] normpath() sometimes maps unicode to str

2009-11-13 Thread Ezio Melotti
Ezio Melotti added the comment: Closing this as duplicate of #5827. -- resolution: -> duplicate stage: test needed -> committed/rejected status: open -> closed superseder: -> os.path.normpath doesn't preserve unicode ___ Python tracker

[issue5827] os.path.normpath doesn't preserve unicode

2009-11-13 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the patch, I tried it on Linux and it seems to solve the problem. A few comments about it: 1) I'd change all the self.assertEqual(type(posixpath.normpath(u"")), unicode) to self.assertTrue(isinstance(posixpath.normpath(u""), unicode)); 2) a test for no

[issue7311] Bug on regexp of HTMLParser

2009-11-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal stage: -> test needed versions: +Python 2.7 ___ Python tracker ___ _

[issue7310] Unhelpful __repr__() in os.environ

2009-11-13 Thread Ezio Melotti
Ezio Melotti added the comment: Here is a patch against py3k. -- assignee: -> ezio.melotti keywords: +easy, patch nosy: +ezio.melotti priority: -> normal stage: -> patch review versions: +Python 3.2 Added file: http://bugs.python.org/file15327/issue7310.diff

[issue7309] crasher in str(Exception())

2009-11-13 Thread Ezio Melotti
Ezio Melotti added the comment: I don't know if this is a real problem. If someone who want to crash someone else program is able to do something like 'u.reason = somethingweird' there are already more serious problems to solve. I don't see why someone would want to do that in his own program ei

[issue7300] Unicode arguments in str.format()

2009-11-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: -> high stage: -> test needed versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-lis

[issue7310] Unhelpful __repr__() in os.environ

2009-11-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7312] Run some tests in a loop until failure

2009-11-13 Thread R. David Murray
R. David Murray added the comment: I still get: ValueError: No JSON object could be decoded in one or more of the threads when I hit ctl-c during a -j run. I've attached an updated patch that fixes the problem, but I'm not sure it is a correct fix. -- Added file: http://bugs.python.o

[issue7320] Unable to load external modules on build slave with debug python

2009-11-13 Thread David Bolen
New submission from David Bolen : As I mentioned in a recent python-dev post, I've noticed that the Windows build slaves are skipping tests of external modules (like ssl and bz2). After finding an old 2.6a0 tree that I had locally built where things worked fine, I stepped through some 2.6 tags a

[issue7309] crasher in str(Exception())

2009-11-13 Thread Ezio Melotti
Ezio Melotti added the comment: After further investigations I found out that PyString_AS_STRING() is the macro form of PyString_AsString() but without error checking (so there's nothing to fix there, possibly just replace that call with PyString_AsString if it turns out to be a real problem). I