[issue13032] h2py.py can fail with UnicodeDecodeError

2011-09-23 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : Tools/scripts/h2py.py fails with UnicodeDecodeError when a header file contains characters undecodable in current locale. I suggest to use binary mode. I'm attaching a patch. -- components: Demos and Tools files: h2py.py.patch

[issue13032] h2py.py can fail with UnicodeDecodeError

2011-09-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue13033] recursive chown for shutils

2011-09-23 Thread Low Kian Seong
New submission from Low Kian Seong : Currently shutils chown still can't do a recursive chown. It would be nice to have this instead of having to do the looping dance we put our selves through each time we need recursion. Ruby's FileUtils already have this. -- components: Library (Lib)

[issue13033] recursive chown for shutils

2011-09-23 Thread Eric V. Smith
Eric V. Smith added the comment: See also issue 12191, where there was a brief discussion of this. -- nosy: +eric.smith ___ Python tracker ___ __

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Andrea Trasatti
New submission from Andrea Trasatti : We found a problem with SSL certificates, when they are larger than 1024 bits and you need to check Alternative Subject Names. In our case we have a 2048 bit certificate, issued by Verisign for the domain developer.nokia.com. The certificate also covers oth

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Extension Modules nosy: +giampaolo.rodola, janssen, pitrou ___ Python tracker ___ ___ Python

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Attila Csipa
Changes by Attila Csipa : -- nosy: +achipa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13031] [PATCH] small speed-up for tarfile.py when unzipping tarballs

2011-09-23 Thread poq
poq added the comment: I don't think you even need the slice, if you use unpack_from. -- nosy: +poq ___ Python tracker ___ ___ Python

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-09-23 Thread ozan caglayan
ozan caglayan added the comment: Attached patch is a revised version of bz2ms.patch against Python 2.7.2. The patch is tested using tarfile and bz2 modules. It also passes the included tests correctly. It also imports a missing class from BytesIO to fix the tests. It's up to you to take that

[issue13035] "maintainer" value clear the "author" value when registering

2011-09-23 Thread Joshua Bronson
New submission from Joshua Bronson : This issue was originally opened in the PyPI tracker but was dismissed on the theory that it's a bug in Python: https://sourceforge.net/tracker/index.php?func=detail&aid=3396924&group_id=66150&atid=513503 """ If in one package's setup.py I provide maintain

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: We don’t add news features in stable releases. Nadeem has closed this bug as fixed for 3.3 and it can’t go in 2.7, so I think we’re done here. -- ___ Python tracker

[issue11472] upload command fails to read auth information from .pypirc

2011-09-23 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: This isn't just a Python 3 issue -- I'm seeing this with the default Python install on OS X Snow Leopard (i.e. Python 2.6.1). Changing the .pypirc config line to [server-login] fixed the problem for me, too. -- nosy: +freakboy3742 __

[issue13036] time format in logging is wrong

2011-09-23 Thread Yves Dorfsman
New submission from Yves Dorfsman : The basic time format in the logging module uses a comma instead of a dot to separate the seconds from the tenth of seconds: import logging logging.basicConfig(format='%(asctime)s %(message)s') logging.warning('hello') 2011-09-23 09:08:53,739 hel

[issue13036] time format in logging is wrong

2011-09-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +belopolsky, vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue13036] time format in logging is wrong

2011-09-23 Thread Vinay Sajip
Vinay Sajip added the comment: Logging's date/time representation is supposed to conform to ISO 8601. >From ISO Standard 8601 (Third Edition, dated 2004-12-01): 4.2.2.4 Representations with decimal fraction If necessary for a particular application a decimal fraction of hour, minute or secon

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for reporting. This trivial patch seems to fix it (still needs a test): diff -r 1b4fae183da3 Modules/_ssl.c --- a/Modules/_ssl.cTue Aug 09 18:48:02 2011 -0500 +++ b/Modules/_ssl.cFri Sep 23 18:16:04 2011 +0200 @@ -590,7 +590,7 @@ _get_peer_alt_na

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2011-09-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Note that Python 2.6 is also vulnerable to the crash. While we do not have an exploit, we did get a report on security@ which led to this bug. I could be convinced to allow the patch to 2.6 on grounds that if the crasher can be exploited, better to apply i

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2011-09-23 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue13031] small speed-up for tarfile.py when unzipping tarballs

2011-09-23 Thread Éric Araujo
Changes by Éric Araujo : -- title: [PATCH] small speed-up for tarfile.py when unzipping tarballs -> small speed-up for tarfile.py when unzipping tarballs ___ Python tracker ___

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, curl uses the (also undocumented) X509_get_ext_d2i() function instead. -- ___ Python tracker ___ _

[issue13033] Support recursivity in shutil.chown

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: Wasn’t there a python-ideas discussion on this? If someone could find a link and summarize use cases it would be great. -- nosy: +eric.araujo title: recursive chown for shutils -> Support recursivity in shutil.chown type: -> feature request versions: +P

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue13033] Support recursivity in shutil.chown

2011-09-23 Thread Ezio Melotti
Ezio Melotti added the comment: http://mail.python.org/pipermail/python-dev/2011-May/111661.html -- nosy: +ezio.melotti ___ Python tracker ___ __

[issue13035] "maintainer" value clear the "author" value when registering

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: This was already discussed in #962772 (and reported again in #12840 :) -- nosy: +eric.araujo resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> when both maintainer and author provided, author discarded

[issue13025] mimetypes should read the rule file using UTF-8, not the locale encoding

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: +1. I’ve finally understood that open using the locale is Evil™. Please use the file from Fedora in a test. -- nosy: +eric.araujo ___ Python tracker __

[issue10884] pkgutil EggInfoDistribution requirements for .egg-info metadata

2011-09-23 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +3rd party ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9395] clean does not remove all temp files

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: As I can’t recall what the bug was, closing. -- assignee: tarek -> eric.araujo resolution: -> invalid stage: test needed -> committed/rejected status: open -> closed ___ Python tracker

[issue8927] Handle version incompatibilities in dependencies

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: Per Tarek’s pronouncement, closing. -- resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: Hi Justin, is there any way I can help you move forward with this? Please tell if you don’t have the time, I can work on completing the patch. -- ___ Python tracker ___

[issue11921] distutils2 should be able to compile an Extension based on the Python implementation

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: One remark: I’m not sure distutils2 *runs* at all on other VMs. For one example, parsing sys.version to get the Python version relies on an implementation detail of CPython. -- ___ Python tracker

[issue9306] distutils: raise informative error message when cmd_class is None

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: Given that it is documented that the argument must be a dictionary, I’m rejecting this. -- assignee: tarek -> eric.araujo resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue1092365] Distutils needs a way *not* to install files

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: We don’t have enough information to understand what the bug is and act on it. Closing as invalid, please reopen if you can clarify. -- assignee: tarek -> eric.araujo dependencies: -add a resource+files section in setup.cfg resolution: -> invalid stage:

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: The example is not in our documentation. I don’t see a bug, closing. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2011-09-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 125887a41a6f by Victor Stinner in branch '3.2': Issue #7732: Don't open a directory as a file anymore while importing a http://hg.python.org/cpython/rev/125887a41a6f New changeset 8c6fea5794b2 by Victor Stinner in branch 'default': Merge 3.2: Issue

[issue13025] mimetypes should read the rule file using UTF-8, not the locale encoding

2011-09-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> test needed type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue13033] Add shutil.chowntree

2011-09-23 Thread Éric Araujo
Éric Araujo added the comment: Following Nick’s opinion in the thread, I’d prefer a distinct function. -- title: Support recursivity in shutil.chown -> Add shutil.chowntree ___ Python tracker _

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2011-09-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f5b64630fda by Victor Stinner in branch '2.7': Issue #7732: Fix a crash on importing a module if a directory has the same name http://hg.python.org/cpython/rev/0f5b64630fda -- ___ Python tracker

[issue13031] small speed-up for tarfile.py when unzipping tarballs

2011-09-23 Thread Justin Peel
Justin Peel added the comment: poq, You're quite right. I've added that change too. By the way, four unnecessary extra tuples are no longer being created for each call to this function too because of these changes. -- Added file: http://bugs.python.org/file23232/cpython_tarfile2.diff

[issue13037] [Regression] socket.error does not inherit from IOError as documented

2011-09-23 Thread Christopher Egner
New submission from Christopher Egner : http://docs.python.org/library/socket.html#socket.error "Changed in version 2.6: socket.error is now a child class of IOError." However, this is not the case. $ python Python 2.7.2 (default, Aug 18 2011, 18:26:35) [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]

[issue13037] [Regression] socket.error does not inherit from IOError as documented

2011-09-23 Thread Christopher Egner
Christopher Egner added the comment: Or I could learn to type... -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___

[issue11725] httplib and urllib2 failed ssl connection httplib.BadStatusLine

2011-09-23 Thread Isaac Salsberg
Isaac Salsberg added the comment: The output for the command: $ openssl s_client -connect www.finratrace.org:443 was the same on MAC OS X 10.6 and on Red hat 5 (https works fine under linux). Nevertheless, Ned Deily is right: the bug is on the openssl libs supplied with OS X 10.6 To so

[issue13012] Allow keyword argument in str.splitlines()

2011-09-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Alex. The poorly documented fact that *some* C-coded functions cannot accept arguments identified by keyword rather than position is a bit hole in the function abstraction. +1 to the patch (and the int to bool change) -- nosy: +terry.reed

[issue12944] Accept arbitrary files for packaging's upload command

2011-09-23 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > pysetup run upload -f dist/spam-0.2.tar.gz -f dist/spam-0.2.exe I'm not sure why it's "run upload" instead of just "upload", but maybe that's the convention in pysetup. Apart from that, this looks like a vast improvement to me. As far as not supporti

[issue13013] _ctypes.c: refleak

2011-09-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: My impression is that plugging refleaks (unlike minor speedups) is a bugfix rather than feature addition, so this and the other issues should be marked for 2.7 and 3.2 also. (I am only changing this one.) Deprecating a public (but obscure) CAPI function is a

[issue13023] argparse should allow displaying argument default values in addition to setting a formatter class

2011-09-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +bethard stage: -> test needed versions: -Python 2.7, Python 3.2, Python 3.4 ___ Python tracker ___ ___

[issue13030] Be more generic when identifying the Windows main dir in installation doc

2011-09-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Windows does not require that executables be on any particular 'drive'. -- nosy: +terry.reedy ___ Python tracker ___ __

[issue13012] Allow keyword argument in str.splitlines()

2011-09-23 Thread Ezio Melotti
Ezio Melotti added the comment: The attached patch adds 'keepends=' to a few calls and replaces 0/1 with False/True. The patch can be applied after Mark's patch. Doing two separate commits is probably better. -- Added file: http://bugs.python.org/file23233/issue13012-repl.diff

[issue13023] argparse should allow displaying argument default values in addition to setting a formatter class

2011-09-23 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: Yeah, adding a formatter instance seems overkill for the usual case of wanting to preserver formatting of the epilog. -- nosy: +zbysz ___ Python tracker __

[issue10141] SocketCan support

2011-09-23 Thread Charles-François Natali
Charles-François Natali added the comment: > - dummy question: why an address is a tuple with 1 string instead of just > the string? Does AF_UNIX also uses a tuple of 1 string? I think the reason behind the tuple is future proofing. Here's the definition of `struct sockaddr_can` in my Linux bo

[issue10141] SocketCan support

2011-09-23 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file23225/socketcan_v4.patch ___ Python tracker ___ ___ Python-bugs-

[issue13038] distutils windows installer STATUS_INVALID_CRUNTIME_PARAMETER (C0000417) exception when python dir is read only

2011-09-23 Thread Mitch Frazier
New submission from Mitch Frazier : Distutils built installers will fail on Windows with a run-time exception of STATUS_INVALID_CRUNTIME_PARAMETER, error-code: C417 if the python installation directory (e.g. C:\Python27) is read-only for the user running the installer. I've experienced th

[issue13039] IDLE3 editor: shell-like behaviour on line starting with ">>>"

2011-09-23 Thread etuardu
New submission from etuardu : In the editor window, if a line starts with the shell prompt string ">>>", backspacing is inhibited when reaching the first space, just like in the shell window. OS: Linux 2.6.38-11-generic-pae #50-Ubuntu i386 GNU/Linux Python version: 3.2 IDLE version: 3.2 Tk ver

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-09-23 Thread Nadeem Vawda
Nadeem Vawda added the comment: Ozan: Thanks for taking the time to backport the patch. Unfortunately, as Éric said, 2.7 is in maintenance mode, so it no longer receives new features. -- ___ Python tracker

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-23 Thread anatoly techtonik
anatoly techtonik added the comment: I understand your desire to keep the tracker clean, but I'd like that another person closes this issue. Maybe he will have another opinion. -- resolution: invalid -> status: closed -> languishing ___ Python trac

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-09-23 Thread Justin Love
Justin Love added the comment: Sorry, it's been sitting at the bottom of my starred list for months, the prospect of reloading context always making it a little less attractive than something else. I turned out I had to update to even have 'packaging' Error was caused by an actual change in

[issue13012] Allow keyword argument in str.splitlines()

2011-09-23 Thread Meador Inge
Meador Inge added the comment: > Doing two separate commits is probably better. Out of curiosity, what is typically the convention on that? The devguide seems to suggest one changeset per issue: """ Just please make sure that you generate a single, condensed patch rather than a series of se

[issue13012] Allow keyword argument in str.splitlines()

2011-09-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: One changeset per issue is a general goal. So is the ability to review patches. Sometime people forget to add a News or Acks entry and have to followup with an addendum. (Mark's patch still lack that, for instance.) Sometimes a patch is so large that a review

[issue9253] argparse: optional subparsers

2011-09-23 Thread Benjamin West
Benjamin West added the comment: I spent some time looking at this, as I was interested in using this pattern to simulate what git and hg do. I considered a few modifications and then found this bug. I think the default keyword passed to _SubParsersAction.__init__ makes sense. I started on a