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

2011-01-22 Thread godfryd
godfryd added the comment: I improved a little bit lstat function description and added note to stat function. I see that links :func:`stat` do not lead to stat function but to stat module. Is it Sphinx bug? In my changes I made explicit link to os.stat function. -- keywords: +patch

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

2011-01-22 Thread Georg Brandl
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 they do notice, they can still run in > 64-bit mode from the command line. Okay, fair eno

[issue10954] No warning for csv.writer API change

2011-01-22 Thread Lennart Regebro
Lennart Regebro added the comment: In the worst case, not checking for newline='' is not a big problem, as anyone moving from Python 2 to Python 3 will open the file in binary mode. That error message could tell the user to use binary mode newlines=''. Using textmode and newlines is only like

[issue10987] Bizarre pickle -- exception interaction bug

2011-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2rc1 on WinXP. I got hanging behavior with both interpreter and IDLE. -- ___ Python tracker ___ _

[issue10987] Bizarre pickle -- exception interaction bug

2011-01-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : Tool/scripts/find_recursionlimit.py includes test_cpickle() which, like the other test_xxx functions, is supposed to raise a RuntimeError when the recursion limit is reached. It appears to work correctly on 3.1 and I presume previously. On 3.2, test_cpickle

[issue10954] No warning for csv.writer API change

2011-01-22 Thread John Machin
John Machin added the comment: I don't understand "Changing csv api is a feature request that could only happen in 3.3". This is NOT a request for an API change. Lennert's point is that an API change was made in 3.0 as compared with 2.6 but there is no fixer in 2to3. What is requested is for

[issue10986] traceback's rendering behavior while throwing custom exception

2011-01-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please see python-ideas list. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue10541] regrtest.py -T broken

2011-01-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10986] traceback's rendering behavior while throwing custom exception

2011-01-22 Thread Benjamin VENELLE
New submission from Benjamin VENELLE : Hi, >From few days, I've acknowledge when throwing an exception, the last traceback >entry is always related to the raise statement. This is ok when the exception >takes source from a non fail-safe code. But when an exception is raised due to >a function

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

2011-01-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Hmm. It seems better to me to accept this bug (and document it, and > point out that it isn't Python's fault) than depriving 64-bit users > of IDLE, or (even worse) of tkinter. I disagree. There aren't really "64-bit users" on OSX, thanks to fat binaries. S

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-22 Thread Ned Deily
Ned Deily added the comment: It appears that the Cocoa Tk 8.5 added support for the Apple convention using Cmd-M as the window minimize menu item (collapses the window into the dock) and that conflicts with IDLE's use of the Cmd-M as the shortcut for the Open Module menu item. I'll see if Tk

[issue8591] update mkpkg to latest coding standards

2011-01-22 Thread Sean Reifschneider
Changes by Sean Reifschneider : -- nosy: -jafo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2011-01-22 Thread Nestor Aguilera
Nestor Aguilera added the comment: Thanks Ned for thinking of ways out. - If I had a choice, I would agree with Georg's choice (Ned's option 1): most users will not use the composite characters and need not go through complications, or worse, cannibalization of the distribution (3a and 3b are

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

2011-01-22 Thread R. David Murray
Changes by R. David Murray : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2011-01-22 Thread Brett Cannon
Brett Cannon added the comment: The comment on the test says its brittle and sensitive to nothing mucking around with recursion depth, so the test probably need a unittest.skipIf check for a trace function. -- ___ Python tracker

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

2011-01-22 Thread Brett Cannon
Brett Cannon added the comment: Ran the test under verbose mode at Antoine's suggestion; test triggering the failure is test_recursionlimit_recovery -- ___ Python tracker ___ _

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

2011-01-22 Thread Brett Cannon
New submission from Brett Cannon : If you run test_sys under coverage.py with ``./python.exe -m coverage run --pylib Lib/test/regrtest.py test_sys`` you get:: Fatal Python error: Cannot recover from stack overflow Have not taken the time to try to figure out exactly what code is triggering

[issue10541] regrtest.py -T broken

2011-01-22 Thread Brett Cannon
Brett Cannon added the comment: At least the test_trace fix for preventing the complete destruction of any preset trace should be looked at and possibly applied separately (prevents coverage.py from covering the entire test suite as well). Should probably add a test to regrtest to make sure t

[issue9723] Add shlex.quote

2011-01-22 Thread R. David Murray
R. David Murray added the comment: Rather than doing a code deprecation you can just do 'from shlex import quote' in pipes (with a comment about backward compatibility). I don't think there is any real harm in leaving that kind of backward compatibility in place indefinitely. -- nos

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

2011-01-22 Thread Chris Lasher
New submission from Chris Lasher : argparse supports registering conflicting arguments, however, it does so in a way that an argument may belong to at most one group of conflicting arguments. The inspiration for this bug is Stack Overflow question #4770576. http://stackoverflow.com/questions/47

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

2011-01-22 Thread Ned Deily
Ned Deily added the comment: Since the key strokes are captured directly by Tk, I doubt that anything could be worked around on the Python side unless there was some Tk option to disable a class of input characters or something. Seems unlikely but I can check with the tcl-mac list. I should

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

2011-01-22 Thread Georg Brandl
Georg Brandl added the comment: Hmm. It seems better to me to accept this bug (and document it, and point out that it isn't Python's fault) than depriving 64-bit users of IDLE, or (even worse) of tkinter. If you can manage a solution that doesn't remove IDLE, I'm in favor, but otherwise opt

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

2011-01-22 Thread Ned Deily
Ned Deily added the comment: Here's a brain dump of possible options I see for 3.2rc2: 1. document and do nothing -> IDLE (and other tkinter program) crashes whenever a user types a composing character (like Option u in US layout for an umlaut) when the 64-/32-bit installer is use

[issue10983] Errors in http.client.HTTPConnection class (python3)

2011-01-22 Thread Georg Brandl
Georg Brandl added the comment: All your points make sense and I fixed them in r88144. Leaving this open for somebody to add a unittest that actually exercises these tunnel features. -- nosy: +georg.brandl ___ Python tracker

[issue10983] Errors in http.client.HTTPConnection class (python3)

2011-01-22 Thread nooB
Changes by nooB : -- versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10983] Errors in http.client.HTTPConnection class (python3)

2011-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) nosy: +orsenthil type: -> behavior ___ Python tracker ___ ___ Python-bugs-l

[issue10983] Errors in http.client.HTTPConnection class (python3)

2011-01-22 Thread nooB
New submission from nooB : In python 3.x http.client.HTTPConnection class, I saw few problems. 1) `_tunnel_headers` not initialized in the __init__ method. This causes `set_tunnel` method to raise `AttributeError` when called without `headers` keyword argument. 2) In `_tunnel` method, `self._

[issue10684] Folders get deleted when trying to change case with shutil.move (Windows)

2011-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: normal -> high stage: -> needs patch versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker ___ _

[issue10684] Folders get deleted when trying to change case with shutil.move (Windows)

2011-01-22 Thread nooB
nooB added the comment: Sorry, for the wrong info. The issues exists only for folder renaming in windows. try this, >> import os, shutil >> os.mkdir('test') >> shutil.move('test', 'TEST') poof. The folder is gone. Shouldn't the path case be checked for file operations? -- title: Shut

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

2011-01-22 Thread Ned Deily
Ned Deily added the comment: This seems to me to be a nasty release blocker. As documented in the Tk bug that Victor cited (thanks!), the crash occurs in Cocoa Tk when an input method prefix "dead key" combining character is typed in a Tk text field. So, for example, with the US Extended inpu

[issue10968] threading.Timer should be a class so that it can be derived

2011-01-22 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10949] logging.RotatingFileHandler not robust enough

2011-01-22 Thread Georg Brandl
Georg Brandl added the comment: You could have said that the py3k branch is closed for changes without tests or review... -- nosy: +georg.brandl ___ Python tracker ___

[issue10949] logging.RotatingFileHandler not robust enough

2011-01-22 Thread Éric Araujo
Éric Araujo added the comment: Is it okay that there is no test? -- nosy: +eric.araujo stage: -> committed/rejected versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___

[issue10975] #10961: Pydoc touchups in new 3.2 Web server (issue4090042)

2011-01-22 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg126847 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10982] asyncore timeouts do not work correctly

2011-01-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: You have misinterpreted the purpose of timeout argument. "timeout" argument tells select() or poll() how long they have to wait before returning in case no file descriptors are ready. This has nothing to do with asyncore.loop() which is supposed to keep runn

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, the "pending" stage is only for when things have been committed :) See http://docs.python.org/devguide/triaging.html#triaging -- resolution: later -> accepted stage: patch review -> commit review status: pending -> open __

[issue9723] Add shlex.quote

2011-01-22 Thread Éric Araujo
Éric Araujo added the comment: Even if quote does not start with an underscore, its absence from the docs and from the module’s __all__ make it a private function. I propose to make it public as shlex.quote in 3.3 and deprecate pipes.quote for people that relied on it (i.e. move code from pip

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-22 Thread Sean Reifschneider
Sean Reifschneider added the comment: At this point I'm going to consider this good to go, and will commit it after the 3.2 final release. Thanks for the review everyone. Of course, I'm open to further suggestions until then, just not expecting any... -- assignee: -> jafo keywords:

[issue5831] Doc mistake : threading.Timer is *not* a class

2011-01-22 Thread Éric Araujo
Éric Araujo added the comment: Explanation has been provided on #10968, and hopefully the code will be cleaned up. Closing as superseded. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> threading.Timer should be a class so that it can

[issue10975] #10961: Pydoc touchups in new 3.2 Web server (issue4090042)

2011-01-22 Thread Éric Araujo
Éric Araujo added the comment: not-most-recent >> versions, and various resolutions? (“fine” being defined as “not worse than >> before the patch”) > Works with ie, firefox and chromium. If you have something else, please test it, > and let me know. What versions did you test with? (I don’t h

[issue10982] asyncore timeouts do not work correctly

2011-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola type: -> behavior versions: -Python 2.5, Python 2.6 ___ Python tracker ___ __

[issue10982] asyncore timeouts do not work correctly

2011-01-22 Thread k1h
New submission from k1h : Asyncore for the versions of Python examined do not check for the empty sequences select.select returns to indicate a timeout. The attached patch served my immediate needs, but no effort was made to verify that all scenarios were covered or that other issues weren't

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread Éric Araujo
Éric Araujo added the comment: I think so. -- nosy: +benjamin.peterson, eric.araujo, orsenthil resolution: -> accepted stage: patch review -> commit review versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-22 Thread R. David Murray
R. David Murray added the comment: I also would put increasing test coverage at a higher priority, but this sort of refactoring can be a good step in the development path of new contributors, and doing it does decrease the future maintenance burden. -- ___

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-22 Thread Éric Araujo
Éric Araujo added the comment: FYI, #10977 has been opened to tackle the general subclasses problem. -- ___ Python tracker ___ ___ Py

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-01-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo title: Concrete object C API needs abstract path for subclasses of builtin types -> Concrete object C API needs abstract path for subclasses of builtin types ___ Python tracker

[issue10981] argparse: options starting with -- match substrings

2011-01-22 Thread David Caro
David Caro added the comment: It is not an issue, it will try to match all the optional parameters, and if only one matches, then it will use it: 2110 elif option_string.startswith(option_prefix): 2111 action = self._option_string_actions[option_string] 2112

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread Georg Brandl
Georg Brandl added the comment: Armin committed the patch in r88142 and followed up with r88143 for the http.client library. Needs backporting? -- ___ Python tracker ___ _

[issue10909] thread hang, possibly related to print

2011-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10909] thread hang, possibly related to print

2011-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, could improvement from 2.7 to 3.2 have anything to new with > the new implementation of the Global Interpreter Lock? Perhaps, but then it's pure luck. Looking at the traceback, IDLE seems to replace sys.stdout with its own thingie when spawning a s

[issue10574] email.header.decode_header fails if the string contains multiple directives

2011-01-22 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: 2010/11/30 R. David Murray : > Out of curiosity, which email program is it that is producing these invalid > headers? I lost the headers for the original email, so I don't know which email program created the invalid headers. On searching for messages from t

[issue10909] thread hang, possibly related to print

2011-01-22 Thread Scott M
Scott M added the comment: Moving to 3.x means redoing large swaths of the extension I just wrote. It's only a couple thousand lines, but it was my first extension and it cost me a week of my life in Google, and it does a lot with strings. I haven't pulled down the source code for Python's in

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread Armin Ronacher
Armin Ronacher added the comment: Georg Brandl signed off the commit and Python 3.2 will ship with the HTTP server accepting latin1 bytes. -- ___ Python tracker ___ ___

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread STINNER Victor
STINNER Victor added the comment: RFC 5987 (Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters), August 2010: http://greenbytes.de/tech/webdav/rfc5987.html#language.specification.in.encoded.words << 3.3 Language Specification in Encoded Words Se

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread STINNER Victor
STINNER Victor added the comment: Extract of PEP : << Note also that strings passed to start_response() as a status or as response headers must follow RFC 2616 with respect to encoding. That is, they must either be ISO-8859-1 characters, or use RFC 2047 MIME encoding. >> What is the best

[issue10981] argparse: options starting with -- match substrings

2011-01-22 Thread David Caro
Changes by David Caro : -- title: options starting with -- match substrings -> argparse: options starting with -- match substrings ___ Python tracker ___ ___

[issue10981] options starting with -- match substrings

2011-01-22 Thread David Caro
Changes by David Caro : -- components: +Extension Modules versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10981] options starting with -- match substrings

2011-01-22 Thread David Caro
New submission from David Caro : When parsing option like --optionname, --option will match it too example: >>> import argparse >>> parser = argparse.ArgumentParser() >>> parser = argparse.ArgumentParser() >>> parser.add_argument('--superstring') _StoreAction(option_strings=['--superstring'],

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread Armin Ronacher
New submission from Armin Ronacher : I have a critical bugfix that should make it into Python 3.2 even when it's in release candidate state. Currently http.server.BaseHTTPServer encodes headers with ASCII charset. This is at least in violation with PEP which demands that latin1 is used.

[issue10976] json.loads() throws TypeError on bytes object

2011-01-22 Thread hhas
hhas added the comment: Doc fix works for me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9723] pipes.quote() needs to be documented

2011-01-22 Thread Matt Joiner
Matt Joiner added the comment: Two reasons: The pipes module is Unix only, but pipes.quote is useful on all platforms. Secondly pipes.quote pertains to shell command-lines, this is also the domain of shlex which already cross platform. In pipes, an import shlex.quote would more than sufficien

[issue10955] Possible regression with stdlib in zipfile

2011-01-22 Thread STINNER Victor
STINNER Victor added the comment: georg.brandl> Patch #2 looks innocent enough to me, georg.brandl> and is clearly an improvement. Ok, issue fixed by r88140 (+r88141): Issue #10955: zipimport uses ASCII encoding instead of cp497 to decode filenames, at bootstrap, if the codec registry is not

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

2011-01-22 Thread Nestor Aguilera
Nestor Aguilera added the comment: Ned: thanks for the explanation. Nestor === On 22 Jan 2011, at 04:50, Ned Deily wrote: > > Changes by Ned Deily : > > > -- > Removed message: http://bugs.python.org/msg126820 >

[issue10969] Make Tcl recommendation more prominent

2011-01-22 Thread Michael Foord
Michael Foord added the comment: For what it's worth I prefer Raymond's original wording. Installing the Activestate Tcl/Tk will never be a *bad* thing to do for using Python, so I don't see a problem with stating it as a requirement. Users are unlikely to see the current warning when they do

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

2011-01-22 Thread Марк Коренберг
Марк Коренберг added the comment: Yes, os.stat and os.lstat should be one after next in docs. Also IMHO, they should have cross-references. See excellent php docs for example. -- ___ Python tracker __

[issue5885] uuid.uuid1() is too slow

2011-01-22 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a patch based on the original patch, meant to have better performance. On my PC, this: import sys, time, uuid def uu(n): t = time.time() for x in range(n): uuid.uuid1() print('%.3f microseconds' % ((time.time() - t) * 100.

[issue10955] Possible regression with stdlib in zipfile

2011-01-22 Thread Georg Brandl
Georg Brandl added the comment: For 3.3, we might want to consider implementing cp437 in C, as a necessary consequence of supporting import from zipfiles. Shouldn't be so hard, I guess. -- ___ Python tracker ___

[issue10955] Possible regression with stdlib in zipfile

2011-01-22 Thread Georg Brandl
Georg Brandl added the comment: Patch #2 looks innocent enough to me, and is clearly an improvement. -- ___ Python tracker ___ ___ Py

[issue10969] Make Tcl recommendation more prominent

2011-01-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: If you want to be less specific making recommendations for getting it to work, at least have a prominent disclosure of some sort: Mac OS X 32-bit i386/PPC Installer (3.2rc1) for OS X 10.3 through 10.6 [2] (sig) Mac OS X 64-bit/32-bit Installer (3.2rc1) for