[issue10969] Make Tcl recommendation more prominent

2011-01-22 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[issue10955] Possible regression with stdlib in zipfile

2011-01-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Patch #2 looks innocent enough to me, and is clearly an improvement. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10955 ___

[issue10955] Possible regression with stdlib in zipfile

2011-01-22 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org

[issue5885] uuid.uuid1() is too slow

2011-01-22 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com 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' %

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

2011-01-22 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com 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 rep...@bugs.python.org

[issue10969] Make Tcl recommendation more prominent

2011-01-22 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk 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

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

2011-01-22 Thread Nestor Aguilera
Nestor Aguilera aguil...@santafe-conicet.gov.ar added the comment: Ned: thanks for the explanation. Nestor === On 22 Jan 2011, at 04:50, Ned Deily wrote: Changes by Ned Deily n...@acm.org: -- Removed

[issue10955] Possible regression with stdlib in zipfile

2011-01-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-01-22 Thread Matt Joiner
Matt Joiner anacro...@gmail.com 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

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

2011-01-22 Thread hhas
hhas h...@users.sourceforge.net added the comment: Doc fix works for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10976 ___ ___

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread Armin Ronacher
New submission from Armin Ronacher armin.ronac...@active-4.com: 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

[issue10981] options starting with -- match substrings

2011-01-22 Thread David Caro
New submission from David Caro david.caro.este...@gmail.com: When parsing option like --optionname, --option will match it too example: import argparse parser = argparse.ArgumentParser() parser = argparse.ArgumentParser() parser.add_argument('--superstring')

[issue10981] options starting with -- match substrings

2011-01-22 Thread David Caro
Changes by David Caro david.caro.este...@gmail.com: -- components: +Extension Modules versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10981 ___

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

2011-01-22 Thread David Caro
Changes by David Caro david.caro.este...@gmail.com: -- title: options starting with -- match substrings - argparse: options starting with -- match substrings ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10981

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread Armin Ronacher
Armin Ronacher armin.ronac...@active-4.com added the comment: Georg Brandl signed off the commit and Python 3.2 will ship with the HTTP server accepting latin1 bytes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10980

[issue10909] thread hang, possibly related to print

2011-01-22 Thread Scott M
Scott M scott.m...@comcast.net 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

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

2011-01-22 Thread Roy Hyunjin Han
Roy Hyunjin Han starsareblueandfara...@gmail.com added the comment: 2010/11/30 R. David Murray rep...@bugs.python.org: 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

[issue10909] thread hang, possibly related to print

2011-01-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue10909] thread hang, possibly related to print

2011-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10909 ___ ___ Python-bugs-list mailing list

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Armin committed the patch in r88142 and followed up with r88143 for the http.client library. Needs backporting? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10980

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

2011-01-22 Thread David Caro
David Caro david.caro.este...@gmail.com 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 =

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

2011-01-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- 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

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

2011-01-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: FYI, #10977 has been opened to tackle the general subclasses problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10935 ___

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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. --

[issue10980] http.server Header Unicode Bug

2011-01-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue10982] asyncore timeouts do not work correctly

2011-01-22 Thread k1h
New submission from k1h k1h1...@gmail.com: 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

[issue10982] asyncore timeouts do not work correctly

2011-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +giampaolo.rodola type: - behavior versions: -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10982 ___

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

2011-01-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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?

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

2011-01-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2011-01-22 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com 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: -

[issue9723] Add shlex.quote

2011-01-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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.

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

2011-01-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue10982] asyncore timeouts do not work correctly

2011-01-22 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com 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

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

2011-01-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg126847 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10975 ___

[issue10949] logging.RotatingFileHandler not robust enough

2011-01-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org http://bugs.python.org/issue10949

[issue10949] logging.RotatingFileHandler not robust enough

2011-01-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: You could have said that the py3k branch is closed for changes without tests or review... -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10949

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

2011-01-22 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10968 ___ ___

[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 n...@acm.org 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

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

2011-01-22 Thread nooB
nooB nsharish@gmail.com 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?

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

2011-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: normal - high stage: - needs patch versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10684

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

2011-01-22 Thread nooB
New submission from nooB nsharish@gmail.com: 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

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

2011-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) nosy: +orsenthil type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10983 ___

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

2011-01-22 Thread nooB
Changes by nooB nsharish@gmail.com: -- versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10983 ___ ___ Python-bugs-list

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

2011-01-22 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[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 n...@acm.org 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

[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 ge...@python.org 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,

[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 n...@acm.org 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

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

2011-01-22 Thread Chris Lasher
New submission from Chris Lasher chris.las...@gmail.com: 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.

[issue9723] Add shlex.quote

2011-01-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue10541] regrtest.py -T broken

2011-01-22 Thread Brett Cannon
Brett Cannon br...@python.org 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

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

2011-01-22 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: 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

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

2011-01-22 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Ran the test under verbose mode at Antoine's suggestion; test triggering the failure is test_recursionlimit_recovery -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10985

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

2011-01-22 Thread Brett Cannon
Brett Cannon br...@python.org 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

[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 rdmur...@bitdance.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10984 ___ ___ Python-bugs-list

[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 aguil...@santafe-conicet.gov.ar 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

[issue8591] update mkpkg to latest coding standards

2011-01-22 Thread Sean Reifschneider
Changes by Sean Reifschneider j...@tummy.com: -- nosy: -jafo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8591 ___ ___ Python-bugs-list mailing

[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 n...@acm.org 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.

[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 mar...@v.loewis.de 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

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

2011-01-22 Thread Benjamin VENELLE
New submission from Benjamin VENELLE gu0su...@gmail.com: 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

[issue10541] regrtest.py -T broken

2011-01-22 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10541 ___ ___ Python-bugs-list

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

2011-01-22 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Please see python-ideas list. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10986

[issue10954] No warning for csv.writer API change

2011-01-22 Thread John Machin
John Machin sjmac...@lexicon.net 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

[issue10987] Bizarre pickle -- exception interaction bug

2011-01-22 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: 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

[issue10987] Bizarre pickle -- exception interaction bug

2011-01-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 3.2rc1 on WinXP. I got hanging behavior with both interpreter and IDLE. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10987 ___

[issue10954] No warning for csv.writer API change

2011-01-22 Thread Lennart Regebro
Lennart Regebro rege...@gmail.com 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

[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 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 interpreter, users likely won't even notice. If they do notice, they can still run in 64-bit mode from the command line.

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

2011-01-22 Thread godfryd
godfryd godf...@gmail.com 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.