[issue10984] argparse add_mutually_exclusive_group should accept existing arguments to register conflicts

2011-01-23 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: I'm definitely open to providing such functionality. I assume you're imagining something like: parser = argparse.ArgumentParser() a_action = parser.add_argument('-a') b_action = parser.add_argument('-b') c_action =

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Georg, is this something we can patch for rc2? It's a bug - errors encountered by argparse-internal code should be translated into command line errors, and they currently aren't for read-only files. For what it's worth, the tests fail

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This would be acceptable to patch; I wonder whether to swallow the exception text of IOError though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9509

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Good point. Here's the updated patch that reports the IOError as well. All tests pass. I'll apply in a bit if I don't hear otherwise. -- Added file: http://bugs.python.org/file20491/argparse.diff

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-23 Thread Nestor Aguilera
Nestor Aguilera aguil...@santafe-conicet.gov.ar added the comment: On 23 Jan 2011, at 04:33, Georg Brandl wrote: Georg Brandl ge...@python.org added the comment: I disagree. There aren't really 64-bit users on OSX, thanks to fat binaries. So if starting IDLE would start a 32-bit

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Library patch looks good. Tests: Does the create_readonly_file helper work on all platforms, esp. Windows? Maybe it's better to create a different error situation? -- ___ Python tracker

[issue10974] IDLE 3.2 not loading on double-click in Finder, OSX 10.6

2011-01-23 Thread Nestor Aguilera
Nestor Aguilera aguil...@santafe-conicet.gov.ar added the comment: On 22 Jan 2011, at 04:50, Ned Deily wrote: [...] A similar exception occurs (without a crash) when saving a file to a non-ASCII file name and LANG is not properly set: [...] Is there a way of telling tkinter to set the

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: I've tested this on windows. It passed all test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9509 ___

[issue2889] curses for windows (alternative patch)

2011-01-23 Thread Prasun Ratn
Prasun Ratn pras...@gmail.com added the comment: What is the status of this bug? I tried to build the svn trunk with patches provided by zhirsch but I had problems applying the patches. I went ahead and made a new patch which is pretty similar to the earlier patch (mentioned above). The one

[issue2889] curses for windows (alternative patch)

2011-01-23 Thread Prasun Ratn
Changes by Prasun Ratn pras...@gmail.com: Added file: http://bugs.python.org/file20493/pdcurses.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2889 ___

[issue10949] logging.RotatingFileHandler not robust enough

2011-01-23 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: facepalmSorry, Georg! I think I've been working too hard, this completely passed me by. Should have left py3k till later, as it's not that urgent./facepalm -- ___ Python tracker

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: The docs for os.chmod claim: Availability: Unix, Windows. Although Windows supports chmod(), you can only set the file's read-only flag with it (via the stat.S_IWRITE and stat.S_IREAD constants or a corresponding integer value). All

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-23 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: There are a few issues here. X11 is not installed by *default* on Mac OS X (it is supplied separately) so it doesn't provide an out of the box solution. Starting IDLE as 32bit alone doesn't solve the problem as it launches a

[issue10987] _pickle doesn't handle recursion limits properly

2011-01-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. I also strength the recursion limit testing script by testing both recursion through dicts and through lists. -- components: +Extension Modules keywords: +patch nosy: +alexandre.vassalotti, amaury.forgeotdarc,

[issue10960] os.stat() does not mention that it follow symlinks by default

2011-01-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't think Georg considers it a bug in Sphinx, it's just how the disambiguation machinery works. You can write :func:`~os.stat` if you want the link text to just be 'stat' but the link to be to 'os.stat'. I don't think the addition

[issue10954] No warning for csv.writer API change

2011-01-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The API change would be generating an error if newline='' wasn't specified. Amplifying the bytes-case error message would be fine, though. On the other hand, we are in RC phase, and I'm not at all sure this is important enough to go

[issue10987] _pickle doesn't handle recursion limits properly

2011-01-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r88147 (3.2) and r88148 (3.1). -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10988] Descriptor protocol documentation for super bindings is incorrect

2011-01-23 Thread Joshua Arnold
New submission from Joshua Arnold josharnol...@gmail.com: In 'Doc/reference/datamodel.rst', the 'Invoking Descriptors' documentation specifies the following behavior for super objects: [snip] Super Binding If ``a`` is an instance of :class:`super`, then the binding ``super(B, obj).m()``

[issue10955] Possible regression with stdlib in zipfile

2011-01-23 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Data files can be anything that can be a data-file in a setuptools/distribute setup.py file. Note that #10972 isn't necessary when python32.zip is build using the zipfile module, _encodeFilenameFlags uses either ASCII or UTF-8 to

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-23 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Michael, the crash documented here is *not* fixed by installing ActiveState 8.5; it is currently a problem seen with both A/S and Apple's Tk 8.5. Also, to answer my own question, I double-checked the Snow Leopard 10.6 installation DVD and, unlike

[issue10954] No warning for csv.writer API change

2011-01-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Can we have a concrete proposal in the form of a patch, please? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10954 ___

[issue10988] Descriptor protocol documentation for super bindings is incorrect

2011-01-23 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10988 ___

[issue10960] os.stat() does not mention that it follow symlinks by default

2011-01-23 Thread Michal Nowikowski
Michal Nowikowski godf...@gmail.com added the comment: The patch v2: - in description of os.stat function added information about following symlinks, - made list of returned attributes by os.stat function more readable, - fixed links to os.stat function in whole document. -- Added file:

[issue10985] test_sys triggers a fatal python error when run under coverage.py

2011-01-23 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I have a patch for this which makes it a CPython-only test along with being conditional if a trace function is set. Making it a release blocker to see if Georg will let me commit it. -- keywords: +patch nosy: +georg.brandl priority:

[issue10989] ssl.SSLContext(True).load_verify_locations(None, True) segfault

2011-01-23 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: ssl.SSLContext(True).load_verify_locations(None, True) does segfault. Py_DECREF(cafile_bytes) in Modules/_ssl.c:1686 should be replaced by Py_XDECREF(cafile_bytes). -- components: Library (Lib) messages: 126901 nosy:

[issue10989] ssl.SSLContext(True).load_verify_locations(None, True) segfault

2011-01-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Needs a patch + tests :) -- nosy: +georg.brandl priority: normal - high stage: - needs patch type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10989

[issue10954] No warning for csv.writer API change

2011-01-23 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Looking at the csv.rst file I see this statement early in the py3k docs: If *csvfile* is a file object, it should be opened with ``newline=''``. There is also a footnote about the consequences of leaving it out: .. [#] If ``newline=''`` is

[issue10954] No warning for csv.writer API change

2011-01-23 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: My suggestion attached. -- keywords: +patch Added file: http://bugs.python.org/file20497/csv.rst.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10954

[issue10985] test_sys triggers a fatal python error when run under coverage.py

2011-01-23 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Georg cleared the commit; just waiting for a test run with coverage.py to finish before committing. -- resolution: - accepted stage: unit test needed - commit review ___ Python tracker

[issue10954] No warning for csv.writer API change

2011-01-23 Thread John Machin
John Machin sjmac...@lexicon.net added the comment: Skip, the docs bug is #7198. This is the meaningful-exception bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10954 ___

[issue10985] test_sys triggers a fatal python error when run under coverage.py

2011-01-23 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: r88153 w/ a review by Georg Brandl -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-23 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: The attached patch adds resource monitoring to test.regrtest to detect which tests are changing the trace function w/o putting back to what it was previously. The tests listed below are thus all being naughty. This is a meta-issue to help

[issue10991] trace fails when test imported a temporary file

2011-01-23 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: If you run ``test.regrtest -T`` you will discover that (at least) test_importlib and test_runpy prevent coverage data from being written out as 'trace' will try to find files which no longer exist. Both test suites create temp files, import

[issue10979] setUpClass exception causes explosion with -b

2011-01-23 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- assignee: - michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10979 ___ ___

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-23 Thread Ron Adam
Changes by Ron Adam ron_a...@users.sourceforge.net: Removed file: http://bugs.python.org/file20473/pydoc_misc_fix_c.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10961 ___

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-23 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: There was a BDFL ruling on python-dev mailing list that assert argument names should be (first, second). See: http://mail.python.org/pipermail/python-dev/2010-December/106954.html I'm basically reverting the patch to go back to

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-23 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Note that I looked at making the sequence comparison code symmetric - but it generates nice diffs for even nested containers by using prettyprint and difflib. Switching to a symmetric output (in first, not in second etc) would be very

[issue10992] tests failing when run under coverage

2011-01-23 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: A bunch of tests fail when run under coverage (trend seems to be refcount tests). This is to act as a meta-issue to keep track of what tests need to be fixed. [fail under both coverage.py and regrtest -T] test_ctypes test_descr test_gc

[issue10974] IDLE 3.x can crash decoding recent file list

2011-01-23 Thread Ned Deily
Ned Deily n...@acm.org added the comment: IDLE 3.x currently does not specify an explicit encoding when reading or writing the recent files list (~/.idlerc/recent-files.lst) and it defaults to errors=strict. So IDLE 3.x is vulnerable to crashes if any of the recent files contain characters

[issue10639] reindent.py converts newlines to platform default

2011-01-23 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Why is reindent.py translating the whole file to platform default newline such a bad thing? Could not it be considered as helpful behavior, especially in the case where the user has mixed EOLs by mistake? -- nosy: +orsenthil

[issue1075356] exceeding obscure weakproxy bug

2011-01-23 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I find this problem with 3.x and not with 2.x codeline -- nosy: +orsenthil versions: +Python 3.1, Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-01-23 Thread Gregory Czajkowski
Gregory Czajkowski gcflym...@gmail.com added the comment: Also happening with python2.6 and building pyzmq-2.0.10 using easy_install. dschnur's suggestion fixes it. -- nosy: +gcflymoto ___ Python tracker rep...@bugs.python.org