[issue12690] Tix bug 2643483

2011-08-04 Thread Ned Deily
Ned Deily added the comment: I think you are confusing the Tix widget set, an independent Tk-based project, with Tkinter, the Python interface to Tk, which is part of Python. The problem you linked to appears to be a Tix issue. That code is not part of Python. It needs to be addressed by t

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-04 Thread Gareth Rees
Gareth Rees added the comment: I'm having a look to see if I can make tokenize.py better match the real tokenizer, but I need some feedback on a couple of design decisions. First, how to handle tokenization errors? There are three possibilities: 1. Generate an ERRORTOKEN, resynchronize, and

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-04 Thread Gareth Rees
Gareth Rees added the comment: Having looked at some of the consumers of the tokenize module, I don't think my proposed solutions will work. It seems to be the case that the resynchronization behaviour of tokenize.py is important for consumers that are using it to transform arbitrary Python s

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-04 Thread Gareth Rees
Gareth Rees added the comment: Ah ... TokenInfo is a *subclass* of namedtuple, so I can add extra properties to it without breaking consumers that expect it to be a 5-tuple. -- ___ Python tracker

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2011-08-04 Thread Matthias Troffaes
Matthias Troffaes added the comment: Patch against current tip attached. I can no longer reproduce the large memory leaks with the current tip (which is of course wonderful!), so I guess the second part of the patch (freeing the freelists during gc.collect) makes no longer sense. --

[issue12677] Turtle, fix right/left rotation orientation

2011-08-04 Thread Sandro Tosi
Sandro Tosi added the comment: As mentioned by Ezio, and I also verified myself, mode() doesn't influence the orientation on left()/right() methods (probably it affects some other functs?). Following was Ezio and I discussed on IRC, I've updated the 2 patches to add a small note that you have

[issue12677] Turtle, fix right/left rotation orientation

2011-08-04 Thread Sandro Tosi
Changes by Sandro Tosi : Added file: http://bugs.python.org/file22835/turtle_right-2.7-v2.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue7424] segmentation fault in listextend during install

2011-08-04 Thread rpointel
rpointel added the comment: I changed the value from 1000 to 200, and it crashed the same way, then I tested with 20, and it ran into a runtime error but in a different place: c++ -pthread -L/home/ports/pobj/Python-2.7.1/Python-2.7.1 -Wl,--export-dynamic -o python Modules/python.o -lpython2

[issue7424] segmentation fault in listextend during install

2011-08-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: The problem with such issues is that: - they are not reproduceable by someone of the core team - they only seem to occur in non-debug mode - they are probably tied to a specific compiler variant, either because of a compiler bug, or some aggressive optimization

[issue12690] Tix bug 2643483

2011-08-04 Thread Ned Deily
Ned Deily added the comment: Ah, I see now that the question is actually about the python.org Windows installers which, as a service to the user, pull in the external source of Tix during the build. (Tix is not included in the Python source distribution nor with the Mac OS X installers.) Ma

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2011-08-04 Thread Elias Pipping
Elias Pipping added the comment: I had this problem as well. Recompiling my kernel with CONFIG_DNOTIFY=y fixed it (Thanks to David Leverton for pointing this out to me). -- ___ Python tracker _

[issue7424] segmentation fault in listextend during install

2011-08-04 Thread Remi Pointel
Remi Pointel added the comment: Thanks Antoine for your response. Python 3.2.1 and Python 2.4.6 have been successfully installed (but Python 2.5.4 and Python 2.7.1 failed). -- ___ Python tracker __

[issue12691] tokenize.untokenize is broken

2011-08-04 Thread Gareth Rees
New submission from Gareth Rees : tokenize.untokenize is completely broken. Python 3.2.1 (default, Jul 19 2011, 00:09:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import tokenize, io >>>

[issue12691] tokenize.untokenize is broken

2011-08-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11572] bring Lib/copy.py to 100% coverage

2011-08-04 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Brandon, I really like to see your patch applied, let's see what I can do (I also added Ezio in the loop). I think you only addressed half of msg132140 : could you please have a look at the first Éric's question? Also, still Éric made a comment on rietveld (

[issue12691] tokenize.untokenize is broken

2011-08-04 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Gareth, would you like to provide a patch to fix the bug you spotted and add the relative case into the testsuite? -- nosy: +sandro.tosi ___ Python tracker __

[issue11572] bring Lib/copy.py to 100% coverage

2011-08-04 Thread Ezio Melotti
Ezio Melotti added the comment: ISTM that the patch is trying to do too many things at once: 1) increase the test coverage, possibly fixing some bugs discovered while doing so; 2) refactor the tests to use the correct assert methods; 3) get rid of old code, and do some refactoring in copy.py;

[issue12691] tokenize.untokenize is broken

2011-08-04 Thread Gareth Rees
Gareth Rees added the comment: See my last paragraph: I propose to deliver a single patch that fixes both this bug and issue12675. I hope this is OK. (If you prefer, I'll try to split the patch in two.) I just noticed another bug in untokenize(): in compatibility mode, if untokenize() is pas

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2011-08-04 Thread wrobell
wrobell added the comment: is there a chance to fix this issue? -- nosy: +wrobell ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11572] bring Lib/copy.py to 100% coverage

2011-08-04 Thread Sandro Tosi
Sandro Tosi added the comment: After a quick chat with Ezio, we tried to revert the changes to copy.py while keeping the ones on test, and the test suite passes. The next steps would probably be to just commit the diff for test_copy.py and see if the changes on copy.py are really worth. Nick

[issue12691] tokenize.untokenize is broken

2011-08-04 Thread Sandro Tosi
Sandro Tosi added the comment: The general rule would be to have separate patches. But in this case, if we have interdipendent changes, then those should be "packed" in a single patch (f.e. if changes to tokenize break untokenize, than those parts should be joined). -- _

[issue12691] tokenize.untokenize is broken

2011-08-04 Thread Eric Snow
Changes by Eric Snow : -- nosy: +ericsnow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11572] bring Lib/copy.py to 100% coverage

2011-08-04 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Ezio and Sandro, thank you very much for your attention to this issue, and for helping me split it into manageable chunks! To answer the question about why "coverage" does not show as high a total as it ought: it's because coverage normally can't see th

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11572] bring Lib/copy.py to 100% coverage

2011-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: I'd assigned this to myself since I was discussing it with Brandon when he was working on it at the PyCon sprints. Since I certainly don't want to block anyone else getting to it, I'm unassigning it - feel free to take it forward :) IIRC, the copy.py changes we

[issue7424] segmentation fault in listextend during install

2011-08-04 Thread Jon Buller
Jon Buller added the comment: I recently upgraded my SparcStation20 to NetBSD-current and thought I would try installing python again. I found that both 2.7.1 and whatever was the most current 2.5 pkgsrc version as of a few months ago built and installed just fine. I'm sorry I can no longer

[issue12692] test_urllib2net is triggering a ResourceWarning

2011-08-04 Thread Brett Cannon
New submission from Brett Cannon : Specifically, test.test_urllib2net.OtherNetworkTests.test_sites_no_connection_close is leaving a socket open somewhere, but tracking down exactly whom is to blame is a mess since socket.SocketIO.close() explicitly relies on refcounting to shut down a socket.

[issue12693] test.support.transient_internet prints to stderr when verbose is false

2011-08-04 Thread Brett Cannon
New submission from Brett Cannon : When verbose mode if OFF, test.support.transient_internet prints out what resource was unavailable before raising the ResourceDenied exception. Not sure if this is a bug (since it has existed for a while) or it is on purpose and just happens to seem counter-i

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-08-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc86f4ca5020 by Ned Deily in branch '3.2': Issue #12540: Prevent zombie IDLE processes on Windows due to changes http://hg.python.org/cpython/rev/cc86f4ca5020 New changeset c2fd1ce1c6d4 by Ned Deily in branch 'default': Issue #12540: Prevent zombie

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-08-04 Thread Ned Deily
Ned Deily added the comment: With Eli's concurrence, I have applied the updated patch to 3.2 (for 3.2.2) and to default (for 3.3). -- assignee: -> ned.deily resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___