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

2011-01-23 Thread Gregory Czajkowski
Gregory Czajkowski 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 _

[issue1075356] exceeding obscure weakproxy bug

2011-01-23 Thread Senthil Kumaran
Senthil Kumaran 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

[issue10639] reindent.py converts newlines to platform default

2011-01-23 Thread Senthil Kumaran
Senthil Kumaran 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

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

2011-01-23 Thread Ned Deily
Ned Deily 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 that can not

[issue10992] tests failing when run under coverage

2011-01-23 Thread Brett Cannon
New submission from Brett Cannon : 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 test_metaclass test_pyd

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

2011-01-23 Thread Michael Foord
Michael Foord 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 difficult without losin

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

2011-01-23 Thread Michael Foord
Michael Foord 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 (first, second) in the docs an

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-23 Thread Ron Adam
Ron Adam added the comment: Ok, after input from Eric, Here is another patch. Removed a set of unneeded parentheses. Changed the title of the pages from PyDoc to Pydoc. A better fix for the uncaught floats. Wrap the main content in div with style="clear:both;". Should work on nearly everyt

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-23 Thread Ron Adam
Changes by Ron Adam : Removed file: http://bugs.python.org/file20473/pydoc_misc_fix_c.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10979] setUpClass exception causes explosion with "-b"

2011-01-23 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10991] trace fails when test imported a temporary file

2011-01-23 Thread Brett Cannon
New submission from Brett Cannon : 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 them, and then del

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

2011-01-23 Thread Brett Cannon
New submission from Brett Cannon : 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 track which tests ne

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

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

[issue10954] No warning for csv.writer API change

2011-01-23 Thread John Machin
John Machin added the comment: Skip, the docs bug is #7198. This is the meaningful-exception bug. -- ___ Python tracker ___ ___ Pytho

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

2011-01-23 Thread Brett Cannon
Brett Cannon 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 Skip Montanaro
Skip Montanaro added the comment: My suggestion attached. -- keywords: +patch Added file: http://bugs.python.org/file20497/csv.rst.diff ___ Python tracker ___ __

[issue10954] No warning for csv.writer API change

2011-01-23 Thread Skip Montanaro
Skip Montanaro 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 not specified,

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

2011-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Needs a patch + tests :) -- nosy: +georg.brandl priority: normal -> high stage: -> needs patch type: -> crash ___ Python tracker ___

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

2011-01-23 Thread STINNER Victor
New submission from STINNER Victor : 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: haypo, pitrou priority: normal s

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

2011-01-23 Thread Brett Cannon
Brett Cannon 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: normal -> release bl

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

2011-01-23 Thread Michal Nowikowski
Michal Nowikowski 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: http://bugs.pytho

[issue10988] Descriptor protocol documentation for super bindings is incorrect

2011-01-23 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue10954] No warning for csv.writer API change

2011-01-23 Thread Georg Brandl
Georg Brandl added the comment: Can we have a concrete proposal in the form of a patch, please? -- ___ Python tracker ___ ___ Python-

[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 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 earlier releases

[issue10955] Possible regression with stdlib in zipfile

2011-01-23 Thread Ronald Oussoren
Ronald Oussoren 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 encode filenames and the new

[issue10988] Descriptor protocol documentation for super bindings is incorrect

2011-01-23 Thread Joshua Arnold
New submission from Joshua Arnold : 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()`` searches ``obj.__class_

[issue10987] _pickle doesn't handle recursion limits properly

2011-01-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r88147 (3.2) and r88148 (3.1). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue10954] No warning for csv.writer API change

2011-01-23 Thread R. David Murray
R. David Murray 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 in to an RC. On the gr

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

2011-01-23 Thread R. David Murray
R. David Murray 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 to lstat is either hel

[issue10987] _pickle doesn't handle recursion limits properly

2011-01-23 Thread Antoine Pitrou
Antoine Pitrou 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, georg.brandl stage: -> p

[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 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 subprocess and you have to ensur

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread Steven Bethard
Steven Bethard 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 other bits are ignored. S

[issue10949] logging.RotatingFileHandler not robust enough

2011-01-23 Thread Vinay Sajip
Vinay Sajip added the comment: Sorry, 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. -- ___ Python tracker ___

[issue2889] curses for windows (alternative patch)

2011-01-23 Thread Prasun Ratn
Changes by Prasun Ratn : Added file: http://bugs.python.org/file20493/pdcurses.patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue2889] curses for windows (alternative patch)

2011-01-23 Thread Prasun Ratn
Prasun Ratn 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 change is that I i

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread SilentGhost
SilentGhost added the comment: I've tested this on windows. It passed all test. -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2011-01-23 Thread Nestor Aguilera
Nestor Aguilera 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 encoding to utf-8 (or whatever) be

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread Georg Brandl
Georg Brandl 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

[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 added the comment: On 23 Jan 2011, at 04:33, Georg Brandl wrote: > Georg Brandl 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 interpreter, users >> likely won't even notice. If

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread Steven Bethard
Steven Bethard 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 ___ Python tracker

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread Georg Brandl
Georg Brandl added the comment: This would be acceptable to patch; I wonder whether to swallow the exception text of IOError though. -- ___ Python tracker ___ __

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-23 Thread Steven Bethard
Steven Bethard 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 when the new test_argpar

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

2011-01-23 Thread Steven Bethard
Steven Bethard 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 = parser.add_argument('-c') d_action = parser.a