[issue14187] add annotation entry to Glossary

2012-05-10 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Any reactions to the strawman wording for the entry? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14187 ___

[issue14245] float rounding examples in FAQ are outdated

2012-05-10 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Zbyszek, have you signed a contributor agreement form? [1] If not, please could you do so? Then I can apply this doc contribution. Thanks! [1] http://www.python.org/psf/contrib/ -- ___ Python

[issue14769] Add test to automatically detect missing format units in skipitem()

2012-05-10 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: I recently fixed an old bug: some time ago someone added support for a new format unit, 'Z', to PyArg_Parse(), but neglected to add matching support for it to skipitem(). Benjamin asked for a regression test. Initially I said, okay, how

[issue14767] urllib.request.HTTPRedirectHandler raises HTTPError when Location header is relative

2012-05-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: See issue12275. Seems like a common request. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14767 ___

[issue13815] tarfile.ExFileObject can't be wrapped using io.TextIOWrapper

2012-05-10 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Okay, I attached a patch that I hope we can all agree upon. It restores the ExFileObject class as a small subclass of BufferedReader as Amaury suggested. Does the documentation have to be changed, too? It states that an io.BufferedReader

[issue14245] float rounding examples in FAQ are outdated

2012-05-10 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Done now. Thanks, Zbyszek -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14245 ___ ___

[issue14770] Minor documentation fixes

2012-05-10 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: A bunch of minor fixes for the documentation suggested by Kurt Robinson to the webmaster email address: Below, you will find 15 snippets from the Python 2.7.2 Library and Extension FAQ (http://docs.python.org/faq/library.html),

[issue14457] Unattended Install doesn't populate registry

2012-05-10 Thread Joe Eaves
Joe Eaves jinux.all...@googlemail.com added the comment: There is an old bug report against 2.5 which dealt with a very similar problem, maybe the answers are the same? http://bugs.python.org/issue4567 Basically the location in the registry has changed from HKLM to HKCU. Here is the last

[issue14766] Non-naive time comparison throws naive time error

2012-05-10 Thread Greg Weller
Greg Weller gwelle...@gmail.com added the comment: I think this is a documentation bug. The criteria for datetime and time objects being aware are slightly different. A datetime object d is aware if d.tzinfo.utcoffset(d) does not return None, while a time object t is aware if

[issue14457] Unattended Install doesn't populate registry

2012-05-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Joe: this is indeed likely the explanation. Paul: can you confirm? Also: try adding ALLUSERS=1 to the msiexec command line. -- ___ Python tracker rep...@bugs.python.org

[issue14763] string.split maxsplit documented incorrectly

2012-05-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0415ecd7b0e3 by Ezio Melotti in branch '2.7': #14763: document default maxsplit value for str.split. http://hg.python.org/cpython/rev/0415ecd7b0e3 New changeset 62659067f5b6 by Ezio Melotti in branch '3.2': #14763:

[issue14763] string.split maxsplit documented incorrectly

2012-05-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I now documented it in the documentation of str.split too. I left the docstrings alone since they don't need to be as exhaustive as the official documentation, and there's normally no reason to use -1 directly. --

[issue14759] BSDDB license missing from liscense page in 2.7.

2012-05-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Given the way Oracle is currently behaving, I personally think he is wise to delete it. It's optional at build-time anyway. -- ___ Python tracker rep...@bugs.python.org

[issue13815] tarfile.ExFileObject can't be wrapped using io.TextIOWrapper

2012-05-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't think a doc change is needed. An isinstance check based on the docs will succeed, and the rest is an implementation detail, I think. -- ___ Python tracker rep...@bugs.python.org

[issue14366] Supporting lzma compression in zip files

2012-05-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Serhiy, just to be sure we communicated well: I'm not asking that all the missing features for a 6.3 level zip library must be implemented. Instead, we need to detect whether an unsupported feature is used, and raise an exception reporting

[issue14766] Non-naive time comparison throws naive time error

2012-05-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: My, that's embarrassing. I somehow entirely missed the fact that we were dealing with times and not dates here. What you say makes sense to me, and the doc patch looks good. -- ___ Python

[issue14770] Minor documentation fixes

2012-05-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached a patch that addresses these problems: 1) done; 2) done; 3) I think naive is correct here (i.e. a naive program won't take care of flushing); 4) I remove the list of modules and left the link to the wiki page; 5) In the rst source

[issue10765] Build regression from automation changes on windows

2012-05-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Avoiding spaces in the dir names might not be so easy, if e.g. you are trying to install it in Program Files, Users/Name Surname, or some other system directory that has spaces in there (sure, you could install it elsewhere, but in 2012

[issue14770] Minor documentation fixes

2012-05-10 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Re 5: the sentence needs to be rephrased in any case, because it's ungrammatical Re 8: it's not text, it's code, so it needs to go in code markup -- nosy: +georg.brandl ___ Python tracker

[issue14738] Amazingly faster UTF-8 decoding

2012-05-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e08c3791f035 by Antoine Pitrou in branch 'default': Issue #14738: Speed-up UTF-8 decoding on non-ASCII data. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/e08c3791f035 -- nosy: +python-dev

[issue14738] Amazingly faster UTF-8 decoding

2012-05-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch is now committed. Well done and thanks for your contribution. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11352] Update cgi module doc

2012-05-10 Thread Pierre Quentel
Pierre Quentel pierre.quen...@gmail.com added the comment: I attach a new version after sharing thought with Glenn CGI scripts are still unable to define which encoding to use to print the strings received from the user agent. A patch was proposed #11066 but the issue is still pending. The

[issue14770] Minor documentation fixes

2012-05-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Addressed 5) and 8). -- Added file: http://bugs.python.org/file25520/issue14770-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14770

[issue14753] multiprocessing treats negative timeouts differently from before

2012-05-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 99ef4501205b by Richard Oudkerk in branch 'default': Issue #14753: Make multiprocessing treat negative timeouts as it did in 3.2 http://hg.python.org/cpython/rev/99ef4501205b -- nosy: +python-dev

[issue14766] Non-naive time comparison throws naive time error

2012-05-10 Thread Chris Bergstresser
Chris Bergstresser ch...@subtlety.com added the comment: That patch fixes the documentation there, but the description at the top of the distinction between naive and aware time objects at the top datetime module is still wrong. Here it is: - There are two kinds of date and

[issue14187] add annotation entry to Glossary

2012-05-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks good to me, with the proviso that it should be “function annotation”. -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14187

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-05-10 Thread Tom Pinckney
Tom Pinckney thomaspinckn...@gmail.com added the comment: FWIW, clang from Xcode 4.3.2 build 4E2002 w/ command line tools built everything fine for me too (i.e., ./configure CC=clang). LM-SJN-00377886:cpython tom$ uname -a Darwin LM-SJN-00377886 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12

[issue9260] A finer grained import lock

2012-05-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I had forgotten to tackle threadless builds, this patch fixes it. -- Added file: http://bugs.python.org/file25521/module_locks9.patch ___ Python tracker rep...@bugs.python.org

[issue1508475] transparent gzip compression in urllib

2012-05-10 Thread Tom Pinckney
Tom Pinckney thomaspinckn...@gmail.com added the comment: What if this gzip decompression was optional and controlled via a flag or handler instead of making it automagic? It's not entirely trivial to implement so it is nice to have the option of this happening automatically if one wishes.

[issue6696] Profile objects should be documented

2012-05-10 Thread Tom Pinckney
Tom Pinckney thomaspinckn...@gmail.com added the comment: Looking at the current docs for 3.3, it looks like there are a bunch of other ways that the docs could be clarified: 1) Proper documentation of the complete profile.Profile() and cProfile.Profile() interfaces. 2) Adding other

[issue14771] Occasional failure in test_ioctl

2012-05-10 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This happens from time to time on my desktop computer: [151/354/1] test_ioctl test test_ioctl failed -- Traceback (most recent call last): File /home/antoine/cpython/32/Lib/test/test_ioctl.py, line 36, in test_ioctl self.assertIn(rpgrp,

[issue14157] time.strptime without a year fails on Feb 29

2012-05-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f2ea7505c0d7 by Antoine Pitrou in branch '3.2': Issue #14157: Fix time.strptime failing without a year on February 29th. http://hg.python.org/cpython/rev/f2ea7505c0d7 New changeset a5a254e8a291 by Antoine Pitrou in

[issue14157] time.strptime without a year fails on Feb 29

2012-05-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 69d407b016c1 by Antoine Pitrou in branch '2.7': Issue #14157: Fix time.strptime failing without a year on February 29th. http://hg.python.org/cpython/rev/69d407b016c1 --

[issue14157] time.strptime without a year fails on Feb 29

2012-05-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch committed and pushed, thank you! -- assignee: belopolsky - resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14082] shutil doesn't copy extended attributes

2012-05-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch looks ok, but it would be nice if someone with non-broken xattr support could test it. Although I suppose you did run the test suite, Hynek? -- ___ Python tracker rep...@bugs.python.org

[issue14082] shutil doesn't copy extended attributes

2012-05-10 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I did. The only error I got was ERROR: test_idna (test.test_socket.GeneralModuleTests) -- Traceback (most recent call last): File /home/vagrant/p2/Lib/test/test_socket.py, line

[issue14772] Return destination values in some shutil functions

2012-05-10 Thread Brian Curtin
New submission from Brian Curtin br...@python.org: Attached is a patch to return the final destination of files or directories sent through shutil's copy, copy2, and move functions. This removes the need to construct the destination path on your own. This is especially useful for copy/copy2

[issue14773] fwalk breaks on dangling symlinks

2012-05-10 Thread Hynek Schlawack
New submission from Hynek Schlawack h...@ox.cx: I'm implementing a safe rmtree using fwalk. Everything works perfectly except for one thing: if the directory contains dangling symlinks, fwalk goes belly-up: $ ls -l test/ total 0 lrwxrwxrwx 1 vagrant vagrant 4 May 10 16:36 doesntwork - this $

[issue14772] Return destination values in some shutil functions

2012-05-10 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14772 ___ ___ Python-bugs-list mailing list

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2012-05-10 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- assignee: tarek - dependencies: +fwalk breaks on dangling symlinks keywords: -patch stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489

[issue14753] multiprocessing treats negative timeouts differently from before

2012-05-10 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14753 ___

[issue14769] Add test to automatically detect missing format units in skipitem()

2012-05-10 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Can you see if you can write that test in Python? Perhaps simply providing a wrapper to cal PyArg_Parse with the arguments you want. -- ___ Python tracker rep...@bugs.python.org

[issue14774] _sysconfigdata.py doesn't support multiple build configurations

2012-05-10 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: When building from source, if I create multiple configuration directories and build from there e.g.: mkdir configs cd configs mkdir config-A cd config-A ../../configure make cd .. mkdir config-B cd config-B ../../configure --enable-shared

[issue14774] _sysconfigdata.py doesn't support multiple build configurations

2012-05-10 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Note to self: workaround is to rm ../../Lib/_sysconfigdata.py || make ../../Lib/_sysconfigdata.py before running my tests in either configuration, to force the file to be regenerated using what make thinks the settings are --

[issue14775] Slow unpickling of certain dictionaries in python 2.7 vs python 2.6

2012-05-10 Thread stw
New submission from stw sil...@googlemail.com: I've found that unpickling a certain kind of dictionary is substantially slower in python 2.7 compared to python 2.6. The dictionary has keys that are tuples of strings - a 1-tuple is enough to see the effect. The problem seems to be caused by

[issue14775] Slow unpickling of certain dictionaries in python 2.7 vs python 2.6

2012-05-10 Thread stw
Changes by stw sil...@googlemail.com: Added file: http://bugs.python.org/file25525/load_file.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14775 ___

[issue14775] Slow unpickling of certain dictionaries in python 2.7 vs python 2.6

2012-05-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: When pickle is used to pickle the data, there is a significant slowdown Both pickle and cPickle show a slowdown when data pickled in python 2.6 is unpickled in python 2.7: This sounds rather weird. Presumably the structure of the pickle

[issue14772] Return destination values in some shutil functions

2012-05-10 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Here's a patch that fixes the trailing whitespace Hynek noticed as well as adds an additional test case for copy/copy2. -- Added file: http://bugs.python.org/file25526/issue14772.diff ___ Python

[issue14772] Return destination values in some shutil functions

2012-05-10 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Added another test using move as renaming the destination file. -- Added file: http://bugs.python.org/file25527/issue14772_v2.diff ___ Python tracker rep...@bugs.python.org

[issue14772] Return destination values in some shutil functions

2012-05-10 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Code LGTM, a deeper discussion happened on IRC. :) I'd still suggest for the sake of consistency to return the destination from copytree() too, but that can be done separately. -- stage: patch review - commit review

[issue14366] Supporting lzma compression in zip files

2012-05-10 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I understand you, Martin. The time it took me to read the specification and understand where should be the checks in the module. The patch updated. The list of compression methods extended (in the future it can be used for detailed output

[issue14776] Add SystemTap static markers

2012-05-10 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: I'm attaching a patch which adds static markers for SystemTap for two probeable events within CPython's bytecode interpreter, along with test cases and documentation. I'm hoping to get this merged for 3.3; is this PEP-worthy, or can this

[issue13405] Add DTrace probes

2012-05-10 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: I've refreshed my SystemTap patch, and opened a new issue, issue #14776 to cover SystemTap. Issue #4111 was originally opened on 2008-10-12 as Add DTrace probes, and was generalized on 2009-12-08 to Add Systemtap/DTrace probes. That issue

[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-05-10 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: It would be nice if the documentation of fwalk() explained why you would want to use it over walk(). -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue10376] ZipFile unzip is unbuffered

2012-05-10 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: This is not because zipfile module is unbuffered. This is the difference between expensive function call and cheap bytes slicing. Replace `zf.open(namelist [0])` to `io.BufferedReader(zf.open(namelist [0]))` to see the effect of a good

[issue10376] ZipFile unzip is unbuffered

2012-05-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10376 ___ ___ Python-bugs-list

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-10 Thread Thomas Kluyver
New submission from Thomas Kluyver tak...@gmail.com: With the text 'abc€' copied to the clipboard, on Linux, where UTF-8 is the default encoding: Python 3.2.3 (default, Apr 12 2012, 21:55:50) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. import tkinter

[issue14766] Non-naive time comparison throws naive time error

2012-05-10 Thread Greg Weller
Greg Weller gwelle...@gmail.com added the comment: I agree that the language in the quoted paragraph makes it sound as if any object with a non-None tzinfo is aware, which isn't the case. I've changed the first couple sentences to, I think, better reflect what characterizes an object as

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-10 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Still worse. I get 'abc?'. Linux, Python 3.1, 3.2, and 3.3, UTF-8 locale. -- nosy: +storchaka versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14777

[issue14778] IrrationalVersionError should include the project name

2012-05-10 Thread Nick Wilson
New submission from Nick Wilson n...@njwilson.net: IrrationalVersionError in packaging/distutils2 should include the name of the project responsible for the error. It currently only includes the version: import packaging.pypi.xmlrpc client = packaging.pypi.xmlrpc.Client()

[issue14779] test_buffer fails on OS X universal 64-/32-bit builds

2012-05-10 Thread Ned Deily
New submission from Ned Deily n...@acm.org: test_buffer can fail when run on an OS X 64-/32-bit universal build of Python is run in 32-bit mode. $ /usr/local/bin/python3.3 -m test test_buffer [1/1] test_buffer 1 test OK. $ /usr/local/bin/python3.3-32 -m test -v test_buffer == CPython 3.3.0a3

[issue14778] IrrationalVersionError should include the project name

2012-05-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Setting to easy for the next sprints. To do: add an argument to the IrrationalVersion constructor, add a test to make sure the result of __str__ includes it, and adapt the rest of the codebase to pass the project name when the exception is

[issue6696] Profile objects should be documented

2012-05-10 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6696 ___ ___

[issue1508475] transparent gzip compression in urllib

2012-05-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Enabled by default with a knob to turn it off sounds good. Maybe the original headers could be preserved in some object. -- keywords: -easy, patch ___ Python tracker rep...@bugs.python.org

[issue14774] _sysconfigdata.py doesn't support multiple build configurations

2012-05-10 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14774 ___ ___

[issue14774] _sysconfigdata.py doesn't support multiple build configurations

2012-05-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Would always recreating _sysconfigdata.py solve the problem? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14774 ___

[issue14772] Return destination values in some shutil functions

2012-05-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: packaging/distutils2 definitely needs that; the similar functions in distutils.file_util used to return the file paths, this was lost in the conversion to shutil, and there is at least one open bug that needs it back. -- nosy:

[issue14772] Return destination values in some shutil functions

2012-05-10 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: When you say needs that, do you mean the patch as-is, or Hynek's suggestion to return consistently? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14772

[issue14776] Add SystemTap static markers

2012-05-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think the doc may be more at home in the Developer’s Guide (like the doc about GDB) rather that the new-user-oriented “Setup and Usage” doc. -- nosy: +eric.araujo ___ Python tracker

[issue14776] Add SystemTap static markers

2012-05-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW if you don’t get feedback in a week or two you could go to python-dev; if there is no controversy nor implications on third-party code this will likely not require a PEP, only agreement between the core devs. Good luck! --

[issue14772] Return destination values in some shutil functions

2012-05-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I meant that packaging needs some shutil functions to return the destination, but haven’t checked to see if that includes copytree. -- ___ Python tracker rep...@bugs.python.org

[issue14770] Minor documentation fixes

2012-05-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: A lot of good editions! +``$PATH``:: Would it be worth using :envvar:`PATH` here? Python-specific envvars (e.g. PYTHONPATH) are documented and can be linked to, maybe a small entry to explain common envvars like HOME and PATH would be a

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-10 Thread James Oakley
New submission from James Oakley jf...@funktronics.ca: OpenSSL provides a method, SSL_CTX_set_default_verify_paths(), for loading a default certificate store, which is used by many distributions. In openSUSE, the default store is not a bundle, but a directory-based store, which is not

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-10 Thread James Oakley
James Oakley jf...@funktronics.ca added the comment: Here's the patch for Python 3. -- Added file: http://bugs.python.org/file25534/python-3.2.3-ssl_default_certs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14780

[issue14588] PEP 3115 compliant dynamic class creation

2012-05-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Based on the python-dev thread [1], the proposed name for this API is now types.new_class(). This parallels the existing imp.new_module() naming scheme and avoids various problems with the idea of using a static method on type itself

[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X

2012-05-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e12efebc3ba6 by Ned Deily in branch '2.7': Issue #14662: Prevent shutil failures on OS X when destination does not http://hg.python.org/cpython/rev/e12efebc3ba6 New changeset ae141eebcf96 by Ned Deily in branch

[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X

2012-05-10 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the patch! Tested with an NFS-mounted file system on OS X. Applied for 2.7.4, 3.2.4, and 3.3.0. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, this is basically a change in behaviour, so it could only go in the default branch (3.3). But 3.3 already has SSLContext.set_default_verify_paths(), so it's not obvious why the patch is needed. (furthermore, automatically selecting the

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: By the way, I see that the original bug is against the python-requests library? Perhaps it would be better to advocate the use of load_verify_locations() there, since it's a more adequate place for a policy decision. (that said, Python's own

[issue12029] ABC registration of Exceptions

2012-05-10 Thread James Henstridge
James Henstridge ja...@jamesh.id.au added the comment: The documentation for ABCMeta.register() says that it makes the other class a virtual subclass. That would make the ABC a virtual base class. So whether the current behaviour is correct depends on whether you consider a virtual base to

[issue14776] Add SystemTap static markers

2012-05-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, at least it looks much cleaner that the dtrace patch. Two comments still: - is pysystemtap.h meant to be a public header? otherwise it should perhaps not end up in Include (I'm not sure what our policy is here) - perhaps

[issue14774] _sysconfigdata.py doesn't support multiple build configurations

2012-05-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is there a way of fixing this whilst keeping it a python file? Or do we need to build from a C file, perhaps? Well I hope we don't make it a C file just for that reason. It would complicate the generation code quite a bit (right now it's just