[issue10683] PreLinkEvent error under VC2010

2010-12-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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 rep...@bugs.python.org

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2010-12-12 Thread Ned Deily
Ned Deily n...@acm.org 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 rep...@bugs.python.org

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2010-12-12 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Removed file: http://bugs.python.org/file18972/issue9922-31.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9922 ___

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

2010-12-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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.

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

2010-12-12 Thread harish
New submission from harish nsharish@gmail.com: 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:

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

2010-12-12 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9232 ___ ___

[issue9344] please add posix.getgrouplist()

2010-12-12 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com 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

[issue10261] tarfile iterator without members caching

2010-12-12 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de 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

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

2010-12-12 Thread Rusi
New submission from Rusi rustompm...@gmail.com: 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

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

2010-12-12 Thread Milko Krachounov
Milko Krachounov pyt...@milko.3mhz.net 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

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-12 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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__

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

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

2010-12-12 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +brian.curtin, tarek, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10684 ___

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: There's also a typo in the issue number in your commit message (10888 instead of 10188). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10188

[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 rdmur...@bitdance.com: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10367 ___ ___

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

2010-12-12 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4391 ___ ___

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

2010-12-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[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 rdmur...@bitdance.com: 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

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

2010-12-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2010-12-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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: -

[issue10687] Python fails to install with empty ABI flags

2010-12-12 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: $ 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

[issue10631] ZipFile and current directory change

2010-12-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2010-12-12 Thread Eric Pruitt
Changes by Eric Pruitt eric.pru...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10634 ___ ___

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

2010-12-12 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

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

2010-12-12 Thread Brett Cannon
Brett Cannon br...@python.org 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

[issue1243654] Faster output if message already has a boundary

2010-12-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Ok, so closing as rejected. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10682 ___

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

2010-12-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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).

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

2010-12-12 Thread Brett Cannon
Brett Cannon br...@python.org 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

[issue10688] pydoc removes lib directory

2010-12-12 Thread CZ
New submission from CZ hua...@qualcomm.com: 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 full path to pydoc.py

[issue10688] pydoc removes lib directory

2010-12-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue10683] PreLinkEvent error under VC2010

2010-12-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Yes, I have VC2010 so I'll see what happens... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10683 ___

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

2010-12-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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')

[issue10689] _scproxy extension is NOT build

2010-12-12 Thread Pierre Vinet
New submission from Pierre Vinet v...@globetrotter.net: 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

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

2010-12-12 Thread Adrian Sampson
Adrian Sampson asamp...@cs.washington.edu 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

[issue10690] IDLE Crash when running/saving Module

2010-12-12 Thread David
New submission from David mapstonsis...@yahoo.com: 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

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-12 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue10683] PreLinkEvent error under VC2010

2010-12-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com 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

[issue10683] PreLinkEvent error under VC2010

2010-12-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com 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

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

2010-12-12 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org 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 rep...@bugs.python.org