[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: The close_fds default has been fixed in r87206 to remove the DeprecationWarning and remain False on Windows. It changes to True on POSIX. -- ___ Python tracker

[issue10683] PreLinkEvent error under VC2010

2010-12-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Implemented the "trailing quote removal" defensive programming strategy in revision 87205. Others that autoconvert the solution will not be hit by this problem. -- resolution: -> fixed status: open -> closed __

[issue10683] PreLinkEvent error under VC2010

2010-12-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ok the problem is this line in the pre-link step, that must have gotten changed during the conversion: "$(SolutionDir)make_buildinfo.exe" Debug "$(IntDir)" should be "$(SolutionDir)make_buildinfo.exe" Debug "$(IntDir)\" This is because ($IntDir) will ex

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-12 Thread Nick Coghlan
Nick Coghlan added the comment: Sorry, I realised after I had logged off and gone to bed that I hadn't finished the last test. Fixed in r87204 with an approach that should exercise the relevant behaviour regardless of platform. The commit message has also been updated to refer to the correct

[issue10690] IDLE Crash when running/saving Module

2010-12-12 Thread David
New submission from David : Hello, Python version 2.7.1 x64 Mac OS X 10.6.5 x86_64 Tk/Tcl version 8.5/4 Python will crash when saving/running/checking a module, i tried googling for a few hours to come up to NOTHING for a solution. Hopefully we can both get this fixed. Thank you. Attached i

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-12 Thread Adrian Sampson
Adrian Sampson added the comment: Thanks for the pointer, Éric. Here's a quick patch that integrates the same functionality into the existing subparser class. -- keywords: +patch Added file: http://bugs.python.org/file20026/argparse-aliases.patch __

[issue10689] _scproxy extension is NOT build

2010-12-12 Thread Pierre Vinet
New submission from Pierre Vinet : >From Python 2.7 http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tar.bz2 >released on November 27th, 2010. At compile time : $ ../Python-2.7.1/configure --enable-framework $ make we obtain within standard output: building '_scproxy' extension creating

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-12-12 Thread R. David Murray
R. David Murray added the comment: OK, I've studied this more, and it looks to me like the legacy address format allows multiple atoms separated by white space in the local part of the address. This means that the correct parse would be ('', 'merwok w...@rusty.com') How useful this parse

[issue10683] PreLinkEvent error under VC2010

2010-12-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Yes, I have VC2010 so I'll see what happens... -- ___ Python tracker ___ ___ Python-bugs-li

[issue10688] pydoc removes lib directory

2010-12-12 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 2029. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> "python -m pydoc -g" fails ___ Python tracker

[issue10688] pydoc removes lib directory

2010-12-12 Thread CZ
New submission from CZ : when pydoc is run with "python -m" (e.g., "python -m pydoc map"), you will receive an error message: No module named tempfile. The reason is pydoc removes 'C:\Python26\lib' (in my case) from sys.path. But you can run it as "python " because the lib directory appears tw

[issue9893] Usefulness of the Misc/Vim/ files?

2010-12-12 Thread Brett Cannon
Brett Cannon added the comment: So I just looked at the syntax file linked by Antoine and that is definitely *not* what he meant to link to; probably meant http://www.vim.org/scripts/script.php?script_id=790 . As for the indentation file, it's out-of-date and so doesn't support 'with' stateme

[issue9232] Allow trailing comma in any function argument list.

2010-12-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: In #10682, several committers indicated that they would prefer not to change this. So I'm closing this as rejected. Per convention, it would probably require a PEP to modify Python in this aspect (as there is no clear consensus). -- resolution: -> r

[issue10682] With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError

2010-12-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok, so closing as rejected. -- resolution: -> rejected status: open -> closed ___ Python tracker ___

[issue1243654] Faster output if message already has a boundary

2010-12-12 Thread R. David Murray
R. David Murray added the comment: Committed a simpler fix in r87196, backported to 3.1 in r87195, and 2.7 in r87196. -- resolution: -> fixed stage: unit test needed -> committed/rejected status: open -> closed ___ Python tracker

[issue10682] With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError

2010-12-12 Thread Brett Cannon
Brett Cannon added the comment: I'm with Raymond; this is unneeded consistency. I honestly would rather see what little support there is for a trailing comma to go away, but w/o looking at the grammar I am willing to bet that would be a pain to get right and not be worth the effort.

[issue10682] With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError

2010-12-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: The current behavior for function definitions is beneficial because a trailing comma in the argument list is likely to signal a real error (omitted variable). In contrast, the trailing comma for lists is useful because entries on separate lines in a repeat

[issue10634] Windows timezone changes not reflected by time.localtime

2010-12-12 Thread Eric Pruitt
Changes by Eric Pruitt : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10631] ZipFile and current directory change

2010-12-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > So, Martin, are you then arguing that this should in fact be > considered a bug in ZipFile? The documentation for the constructor > says "Open a ZIP file, where file can be either a path to a file (a > string) or a file-like object." Reading that I would ce

[issue10687] Python fails to install with empty ABI flags

2010-12-12 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : $ make DESTDIR=/var/tmp/portage/dev-lang/python-3.2_pre20101212/image/ altinstall Creating directory /usr/bin Creating directory /usr/lib64 /usr/bin/install -c python /var/tmp/portage/dev-lang/python-3.2_pre20101212/image//usr/bin/pyth

[issue4766] email documentation needs to be precise about strings/bytes

2010-12-12 Thread R. David Murray
R. David Murray added the comment: The wording was clarified for 3.2 as part of the fix for issue 4661. This does not help the 3.1 docs, so if someone wants to suggest a patch for the 3.1 docs we can reopen the issue. -- resolution: postponed -> fixed stage: -> committed/rejected st

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-12-12 Thread R. David Murray
R. David Murray added the comment: I've opened a issue 10686 to address improving the RFC conformance by using unknown-8bit encoded words for 8bit bytes in headers. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed __

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2010-12-12 Thread R. David Murray
New submission from R. David Murray : This is a followon to Issue 4661. The fix for that issue introduced a way to parse messages containing 8bit bytes. When Generator is called on a model containing 8 bit bytes, it converts it to 7bit clean. There is, however, a bug in this conversion proc

[issue1459867] Message.as_string should use "mangle_from_=unixfrom"?

2010-12-12 Thread R. David Murray
R. David Murray added the comment: On balance I think this would be a backward incompatible change that has insufficient benefit to be worth doing. People who have working code will be depending on the existing defaults of the two methods, and changing this out from under them would be unkin

[issue4391] use proper gettext plurals forms in argparse and optparse

2010-12-12 Thread R. David Murray
Changes by R. David Murray : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-12-12 Thread R. David Murray
Changes by R. David Murray : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-12 Thread R. David Murray
R. David Murray added the comment: There's also a typo in the issue number in your commit message (10888 instead of 10188). -- ___ Python tracker ___ __

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-12 Thread R. David Murray
R. David Murray added the comment: The tests are failing on windows: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/3770/steps/test/logs/stdio == ERROR: test_mkdtemp_failure (test.test_tempfile.test_Te

[issue10684] Shutil.move deletes file/folder in windows while renaming

2010-12-12 Thread R. David Murray
Changes by R. David Murray : -- nosy: +brian.curtin, tarek, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue10682] With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError

2010-12-12 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-12 Thread Nick Coghlan
Nick Coghlan added the comment: Tidy ups committed in r87182. Shutdown problems now result in a slightly more meaningful message on stderr, a ResourceWarning is triggered when an implicit teardown occurs and the chances of an AttributeError due to an exception in __init__ are minimised.

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-12 Thread Milko Krachounov
Milko Krachounov added the comment: > For the Python implementation, the GIL is not enough to > ensure the atomicity of a process creation. That's why > _posixsubprocess was created. I suppose that other parts > of subprocess are not atomic and a lock is required to > ensure that the creation

[issue10685] trace does nto ignore --ignore-module

2010-12-12 Thread Rusi
New submission from Rusi : When running trace, I get a a lot of lines like: filename: /usr/lib/python2.7/cmd.py, modulename: cmd, funcname: Cmd That is to say system modules are shown in the trace whereas I only want to see the code I am working on Ive tried python2.7 -m trace --listfuncs tt.p

[issue10261] tarfile iterator without members caching

2010-12-12 Thread Lars Gustäbel
Lars Gustäbel added the comment: There is no trivial or backwards-compatible solution to this problem. The way it is now, there is no alternative to storing all TarInfo objects: there is no central table of contents in an archive we could use, so we must create our own. In other words, tarfil

[issue9344] please add posix.getgrouplist()

2010-12-12 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a patch (against the latest revision, 87178) which adds the functionality to the posix module as well as adds a testcase for it. I haven't added it to the os module, I'm not sure if that should be done. I tested it on Linux & FreeBSD and it works

[issue9232] Allow trailing comma in any function argument list.

2010-12-12 Thread Nick Coghlan
Changes by Nick Coghlan : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10684] Shutil.move deletes file/folder in windows while renaming

2010-12-12 Thread harish
New submission from harish : Shutil.move method deletes a file/folder when the file/folder is renamed to same name but different case. eg. shutil.move('folder','Folder') -- components: Windows messages: 123833 nosy: harish priority: normal severity: normal status: open title: Shutil.mov

[issue7213] subprocess leaks open file descriptors between Popen instances causing hangs

2010-12-12 Thread STINNER Victor
STINNER Victor added the comment: fd_status.py: +try: +_MAXFD = os.sysconf("SC_OPEN_MAX") +except: +_MAXFD = 256 It looks like this code (256 constant) comes from subprocess.py. Is that a good value? On Linux, SC_OPEN_MAX is usually 1024, and it can be 4096. Should we keep the defaul

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2010-12-12 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file18972/issue9922-31.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2010-12-12 Thread Ned Deily
Ned Deily added the comment: Update 31 backport patch to reflect revert of unittest method names prior to 3.1.3 release. -- Added file: http://bugs.python.org/file20023/issue9922-31-rev1.patch ___ Python tracker _

[issue10683] PreLinkEvent error under VC2010

2010-12-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: The problem is different: there is a stray " in pythoncore"\getbuildinfo.o. Kristjan, this is your change: can you take a look? -- nosy: +krisvale, loewis ___ Python tracker ___