[issue7319] Silence DeprecationWarning by default

2010-02-02 Thread Brett Cannon
Brett Cannon added the comment: On Tue, Feb 2, 2010 at 19:00, Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > Has enough time elapsed yet for py3k merging? Sure. I will try to do it before or at PyCon. -- ___ Python tracker

[issue6715] xz compressor support

2010-02-02 Thread Garen
Garen added the comment: Ugh, can't edit previous message. Meant to say: "Once Python gets native support for lzma/xz like it does for zlib and bzip2, Mercurial could switch to using it for bundles and remote transfers." For platforms with native support in-kernel (e.g. Linux) that could be u

[issue7843] python-dev archives are not updated

2010-02-02 Thread Ilya Sandler
New submission from Ilya Sandler : http://mail.python.org/pipermail/python-dev/ archives have not been updated for a couple of weeks now. A bug? -- messages: 98775 nosy: isandler severity: normal status: open title: python-dev archives are not updated _

[issue6715] xz compressor support

2010-02-02 Thread Garen Parham
Garen Parham added the comment: Once Python gets native support for lzma/xz like it does for zlib, bzip2 it could switch to using it for bundles and remote transfers. See: http://mercurial.selenic.com/bts/issue1463 With lzma/xz being able to compress so much better, it'd be really appreciated

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file16048/issue7092_syntax_fixes.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti
Ezio Melotti added the comment: Applied the syntax fixes in r77942. -- assignee: -> ezio.melotti ___ Python tracker ___ ___ Python-bu

[issue7319] Silence DeprecationWarning by default

2010-02-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Has enough time elapsed yet for py3k merging? -- nosy: +benjamin.peterson ___ Python tracker ___

[issue7838] Undocumented subprocess functions on Windows

2010-02-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Actually, I consider them private now, given that they aren't in __all__ or documented. I'd prefer if the code was changed to qualify their use with _subprocess.X actually. Docstrings are fine, I suppose. -- status: pending -> open ___

[issue6978] compiler.transformer dict key bug d[1,] = 1

2010-02-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: As I said before, the patch needs a test and should remove those ugly \ from the list comprehension. -- ___ Python tracker ___ _

[issue7816] test_capi crashes when run with "-R"

2010-02-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: As you wish: r77934. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6283] Cannot build extension in amd64 using msvc9compiler

2010-02-02 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek resolution: -> duplicate status: open -> closed ___ Python tracker ___ __

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-02-02 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- priority: -> critical resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

2010-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Pablo's documentation patch for py3k has been committed. -- ___ Python tracker ___ ___ Python-bugs-l

[issue7385] MemoryView_FromObject crashes if PyBuffer_GetBuffer fails

2010-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Merged in r77918 (py3k) and r77920 (3.1). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue7842] py_compile.compile SyntaxError output

2010-02-02 Thread Nigel Heron
New submission from Nigel Heron : when a syntax error is generated in py_compile.compile(), the wrong arguments are passed to the new PyCompileError exception which in turn passes the wrong args to traceback.format_exception_only() producing the wrong output. this was fixed in the py3k branch

[issue7816] test_capi crashes when run with "-R"

2010-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Needs to be merged in py3k :) -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7841] test_capi fails when run more than once

2010-02-02 Thread Florent Xicluna
Florent Xicluna added the comment: Backport missing. See #7816 -- nosy: +flox resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> test_capi crashes when run with "-R" ___ Python tracker

[issue7841] test_capi fails when run more than once

2010-02-02 Thread Antoine Pitrou
New submission from Antoine Pitrou : For some reason it only fails in py3k, not trunk. test_capi beginning 5 repetitions 12345 test test_capi crashed -- : PyDateTime_CAPI somehow initialized 1 test failed: test_capi [101007 refs] -- assignee: benjamin.peterson components: Tests mes

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna
Florent Xicluna added the comment: Docstring added. Notes: - there's 2 categories of -3 warnings: SyntaxWarning and DeprecationWarning. - AFAICT, the WarningsRecorder needs "catch_warnings(record=True)". And in such case, *all* warnings are silenced. -- Added file: http://bugs.pyt

[issue7385] MemoryView_FromObject crashes if PyBuffer_GetBuffer fails

2010-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've added a missing call to PyBuffer_Release() and committed the patch to trunk (r77916). -- ___ Python tracker ___ __

[issue7840] Lib/ctypes/test/test_pep3118.py should not shadow the memoryview() builtin

2010-02-02 Thread Antoine Pitrou
New submission from Antoine Pitrou : test_pep3118.py creates a dummy memoryview class and says "It can be removed when the py3k memoryview object is backported". Since memoryview has been backported to trunk, it should be removed. -- assignee: theller components: Tests, ctypes messages

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16044/issue7092_test_support.py ___ Python tracker ___ ___ Python-bugs-li

[issue7385] MemoryView_FromObject crashes if PyBuffer_GetBuffer fails

2010-02-02 Thread Florent Xicluna
Florent Xicluna added the comment: Thanks. -- Added file: http://bugs.python.org/file16112/issue7385_memoryview_v2.diff ___ Python tracker ___ ___

[issue7385] MemoryView_FromObject crashes if PyBuffer_GetBuffer fails

2010-02-02 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16060/issue7385_memoryview.diff ___ Python tracker ___ ___ Python-bugs-li

[issue7838] Undocumented subprocess functions on Windows

2010-02-02 Thread Brian Curtin
Brian Curtin added the comment: True. Is there value in eventually privatizing these functions? It feels weird having them exposed but not documented at all...maybe just keep the docstrings around? -- status: open -> pending ___ Python tracker

[issue7838] Undocumented subprocess functions on Windows

2010-02-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is likely because these functions are meant to be undocumented implementation details. -- nosy: +benjamin.peterson ___ Python tracker _

[issue7838] Undocumented subprocess functions on Windows

2010-02-02 Thread Brian Curtin
Changes by Brian Curtin : Added file: http://bugs.python.org/file16111/issue7838.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7838] Undocumented subprocess functions on Windows

2010-02-02 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file16110/issue7838.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7838] Undocumented subprocess functions on Windows

2010-02-02 Thread Brian Curtin
Brian Curtin added the comment: Attached is a patch which adds docstrings to the functions in PC/_subprocess.c, documents the functions in Doc/library/subprocess.rst, and removes a chunk of unneeded import code from Lib/subprocess.py -- keywords: +needs review, patch stage: needs patc

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2010-02-02 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7385] MemoryView_FromObject crashes if PyBuffer_GetBuffer fails

2010-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: When PyMemoryView_FromObject() doesn't return NULL, you should decref the result. Otherwise, it's "perfect". -- ___ Python tracker ___

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2010-02-02 Thread R. David Murray
New submission from R. David Murray : Currently Popen accepts either a string or a list regardless of the value of 'shell'. In the shell=False case, a string is interpreted as the command name, no matter what it actually is. In the shell=True case, a list is interpreted as args[0] being the

[issue7753] newgil backport

2010-02-02 Thread Todd Whiteman
Changes by Todd Whiteman : -- nosy: +twhitema ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6676] expat parser throws Memory Error when parsing multiple files

2010-02-02 Thread Will Grainger
Will Grainger added the comment: I don't think this is a python specific problem. I have just seen the same error when working with the expat library from C, and the cause is using the same parser to read multiple files. -- nosy: +willgrainger ___ P

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti
Ezio Melotti added the comment: In issue7092_test_support: 1) silence_py3k_warning should have a docstring that explain what the function does and what filters should be, possibly including an example; 2) I'd use "if not filters:" instead of "if filters == ():"; 3) are there cases where the thi

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna
Florent Xicluna added the comment: test_unittest fixed in r77911. See also #7837. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16096/issue7092_unittest.py ___ Python tracker ___ ___ Python-bugs-list m

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file16053/issue7092_test_exceptions_v2.diff ___ Python tracker ___ ___ Python-bu

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti
Ezio Melotti added the comment: test_exceptions and test_pep352 fixed in r77913. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7838] Undocumented subprocess functions on Windows

2010-02-02 Thread Brian Curtin
New submission from Brian Curtin : On Windows, the subprocess module makes use of functions publicly exposed by PC/_subprocess.c to interact with Win32 API functions. However, no documentation exists for these functions, neither in the online docs nor in docstrings. -- assignee: georg

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-02-02 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review priority: -> normal stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue7753] newgil backport

2010-02-02 Thread Eric Hopper
Changes by Eric Hopper : -- nosy: +Omnifarious ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Eric Smith
Eric Smith added the comment: Now you need to put the import of subprocess back in! Otherwise it looks good to me. -- ___ Python tracker ___

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Chris Rebert
Changes by Chris Rebert : Removed file: http://bugs.python.org/file16108/subprocess.rst.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Chris Rebert
Changes by Chris Rebert : Added file: http://bugs.python.org/file16109/subprocess.rst.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread R. David Murray
R. David Murray added the comment: The change to echo is an excellent improvement. You forgot to change 'python' to 'echo' in the following paragraph, though. You are also correct about /bin/sh vs sh, my bad. And I was even looking at the source code when I wrote that... -- __

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Chris Rebert
Changes by Chris Rebert : Removed file: http://bugs.python.org/file16101/subprocess.rst.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Chris Rebert
Chris Rebert added the comment: This version takes Murray's most recent draft, applies some minor tweaks from my prior patch, and has the "python -c" etc. changed to "echo '$MONEY'" so the sh -c comment is completely unambiguous (and it's a simpler example generally). Whether the subprocess.P

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread R. David Murray
R. David Murray added the comment: I'm happy to delete the two sentences about quoting. As for -c, you are so right that it is cryptic. In the new version of the patch I've changed the sentence to be as precise as possible, but I'm not at all convinced that it is less confusing. This is why

[issue7837] assertSameElements doesn't filter enough py3k warnings

2010-02-02 Thread Florent Xicluna
Florent Xicluna added the comment: Variant based on the previous patches. It fixes an error relative to assertSameElements: comparing sequences which contain unorderable types. Example: [2j, 5j, set(), frozenset()] The util.unorderable_list_difference() helper is backported from 3.x. -

[issue7837] assertSameElements doesn't filter enough py3k warnings

2010-02-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue7837] assertSameElements doesn't filter enough py3k warnings

2010-02-02 Thread Ezio Melotti
Ezio Melotti added the comment: New patch that filters one more warning. -- assignee: ezio.melotti -> Added file: http://bugs.python.org/file16105/issue7837v2.patch ___ Python tracker _

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: The following sentences look like a distraction to me: « Additional quoting may be required because the entire string is a Python string. It may be useful to use a Python raw string in complex cases. » It is true of every string literal and is not specific t

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2010-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > An errno+ferror approach works except for two cases: > > (1) MS fgets() does not consider reading from a write-only stream > an error. While annoying, I think this is standard conforming. > > (2) OpenSolaris sets errno unreliably after getc. > >

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2010-02-02 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file16104/errno-ebadf-tests.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2010-02-02 Thread Stefan Krah
Stefan Krah added the comment: An errno+ferror approach works except for two cases: (1) MS fgets() does not consider reading from a write-only stream an error. While annoying, I think this is standard conforming. (2) OpenSolaris sets errno unreliably after getc. I do not know how t

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread R. David Murray
R. David Murray added the comment: By the way, I've been wanting the Popen docs improved for a long time but never got around to it, so thanks for pushing for this. -- ___ Python tracker __

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file16100/subprocess-doc.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread R. David Murray
R. David Murray added the comment: My placement of the note was carefully considered. It is discussing the shell=False case and IMO belongs after that paragraph. I understand now your concern about the note I omitted...and again I think this is a bug in the Popen API. If shell=False, I thi

[issue7827] recv_into() argument 1 must be pinned buffer, not bytearray

2010-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: There's a patch to make array implement the new buffer API in the following issue, which was closed: http://bugs.python.org/issue6071 The patch is "hasharray.patch". -- nosy: +pitrou ___ Python tracker

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Chris Rebert
Changes by Chris Rebert : Removed file: http://bugs.python.org/file16095/subprocess.rst.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Chris Rebert
Changes by Chris Rebert : Removed file: http://bugs.python.org/file15033/subprocess.rst.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Chris Rebert
Chris Rebert added the comment: Counterpatch incorporating R. David Murray's succinctness improvements while retaining correct positioning of the first note, managing to incorporate the 3rd note not present in Mr. Murray's, and including more precise wording to address the problem Eric Smith

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Eric Smith
Eric Smith added the comment: >From David's patch: Note in particular that options and their arguments go in separate list elements, while arguments that need quoting when used in the shell (such as filenames containing spaces or the python command shown above) are single list eleme

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread R. David Murray
R. David Murray added the comment: Woops, spotted a word I left out. Fixed. -- Added file: http://bugs.python.org/file16100/subprocess-doc.patch ___ Python tracker ___ _

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file16099/subprocess-doc.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread R. David Murray
R. David Murray added the comment: Hmm. Somehow the patch got lost. Let's try again. -- Added file: http://bugs.python.org/file16099/subprocess-doc.patch ___ Python tracker ___

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread R. David Murray
R. David Murray added the comment: I like the idea of pointing out that shlex can be used to determine exactly what to pass to subprocess, but I agree that the proposed patch is too wordy (and still too much in a negative voice). Here is an alternate simpler patch. Note that while I have als

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Chris Rebert
Chris Rebert added the comment: Well, the same basic example is used for cohesiveness, but the issue/pitfall being highlighted in each note is distinct. But you have a point about shlex being pointed out twice, so here's a version with that redundancy excised. -- Added file: http://bu

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-02 Thread Eric Smith
Eric Smith added the comment: - When run with patch 20 as non-admin on Windows 7, I get the same test_tarfile errors that Brian gets. I do not get these errors with an unpatched py3k build. - When run with patch 20 as an admin on Windows 7, I do not get the errors in test_tarfile. However, I

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I still think this is much too verbose. The second note looks redundant with the first one and the third one. Remember, the notes you are adding may be useful, but they'll also make reading the whole page more tedious. --

[issue7837] assertSameElements doesn't filter enough py3k warnings

2010-02-02 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-02 Thread Michael Foord
Michael Foord added the comment: Damn. If assertSameElements has already shipped with the existing implementation then we can't change it. The documentation really needs clarifying to make it clear that it ignores duplicates. I would be happy with a 'check_order' argument to assertSequenceEqu

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: Brian, thanks for the review. I really appreciate it. I'll fix all of the identified issues. > Lib/test/test_posixpath.py > - Lines 365-366 - why check has_symlink() and immediately check it > again? In the unpatched code, there were two calls that checked f

[issue7837] assertSameElements doesn't filter enough py3k warnings

2010-02-02 Thread Ezio Melotti
New submission from Ezio Melotti : In assertSameElements ( Lib/unittest/case.py ) there's a filter for py3k warning that checks for warning about dict comparisons but not for comparisons of unequal types. If python is run with the -3 flag and a non-hashable sequence with elements of different

[issue7831] cmp() is missing in 3.x

2010-02-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7836] Add /usr/sfw/lib to OpenSSL search path for Solaris.

2010-02-02 Thread David Kirkby
New submission from David Kirkby : In the top level setup.py there is a list of directories searched for the OpenSSL libraries. ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs, ['/usr/local/ssl/lib', '

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna
Florent Xicluna added the comment: Proposed patch to filter out some deprecated comparisons in "unittest" module. -- Added file: http://bugs.python.org/file16096/issue7092_unittest.py ___ Python tracker ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti
Ezio Melotti added the comment: bsddb is now fixed in r77910. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16065/issue7092_bsddb3v2.diff ___ Python tracker ___ ___ Python-bugs-list

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16043/issue7092_bsddb3.diff ___ Python tracker ___ ___ Python-bugs-list m