[issue17069] HTTP result code in urllib2.urlopen() file object undocumented
Senthil Kumaran added the comment: Here is he patch against the default that would address this reported issue. Same would go for other 3.x branches. The 2.7 only can just see the addition of getcode() documented. -- assignee: - orsenthil keywords: +patch stage: - patch review type: - behavior versions: +Python 3.2, Python 3.3, Python 3.4 -Python 2.6 Added file: http://bugs.python.org/file28950/Issue17069-default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17069 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7358] cStringIO not 64-bit safe
Serhiy Storchaka added the comment: Thank you for review and enlightenment Gregory. Here is an updated patch which doesn't change an ABI. -- Added file: http://bugs.python.org/file28951/cStringIO64_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7358 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
New submission from Christian Heimes: In the light of Ruby's recent issues and man in the middle attacks on PyPI (http://www.reddit.com/r/Python/comments/17rfh7/warning_dont_use_pip_in_an_untrusted_network_a/) we should include secure uploads in distutils. Martin has created a SSH uploader for distutils http://pypi.python.org/pypi/pypissh. I suggest that we include the feature in the next security update for Python 2.6 to 3.3. I'm well aware that this beats the no new feature clause but in my opinion security beats purity. What do you think? -- assignee: eric.araujo components: Distutils messages: 181313 nosy: christian.heimes, eric.araujo, gregory.p.smith, gvanrossum, loewis, pitrou, tarek priority: critical severity: normal stage: needs patch status: open title: SSH upload for distutils type: security versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Antoine Pitrou added the comment: Martin has created a SSH uploader for distutils http://pypi.python.org/pypi/pypissh. I suggest that we include the feature in the next security update for Python 2.6 to 3.3. I'm well aware that this beats the no new feature clause but in my opinion security beats purity. this package performs heavy monkey-patching of distutils to make it use the system's ssh command. Users using this package should run ssh-agent (which runs automatically in the background on many systems) and load their PyPI key into the ssh agent. I don't think this bodes well for immediate inclusion, especially in a bugfix release. Perhaps some time should be taken to clean it up and then include it in 3.4. I'm still not sure why this would be better than HTTPS upload, though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Christian Heimes added the comment: Python 2.6 to 3.1 don't do HTTPS server cert validation. This leaves the upload process open to MITM attacks ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords
Roundup Robot added the comment: New changeset a4c85f9b8f58 by Serhiy Storchaka in branch '2.7': Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple http://hg.python.org/cpython/rev/a4c85f9b8f58 New changeset 4bac47eb444c by Serhiy Storchaka in branch '3.2': Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple http://hg.python.org/cpython/rev/4bac47eb444c New changeset e0ee10f27e5f by Serhiy Storchaka in branch '3.3': Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple http://hg.python.org/cpython/rev/e0ee10f27e5f New changeset 3e3a7d825736 by Serhiy Storchaka in branch 'default': Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple http://hg.python.org/cpython/rev/3e3a7d825736 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Hynek Schlawack added the comment: I would strongly prefer to back port certificate validation instead. Is there anything *practical* that makes it hard/impossible? If we want to keep features stable, we can add it privately so it’s only usable by distutils. The susceptibility to (easy!) MITM attacks can be counted as a security bug and this seems the most practical resolve. -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17114] Python IDLE GUI does not open in Ubuntu 12.04
Swarnkar Rajesh added the comment: Sure, Here it is: [Rajesh_Python_Settings] definition-foreground = #86deff error-foreground = #ff1c1c normal-foreground = #ff keyword-foreground = #fff900 hilite-foreground = #00 comment-background = #511633 hit-foreground = #ff builtin-background = #511633 stdout-foreground = #efefef cursor-foreground = #f5 string-background = #511633 break-background = #55 comment-foreground = #997678 hilite-background = gray definition-background = #511633 stderr-background = #511633 hit-background = #00 console-foreground = #2cbbff normal-background = #511633 builtin-foreground = #f4cec6 stdout-background = #511630 console-background = #511644 stderr-foreground = #ff5900 keyword-background = #511633 string-foreground = #00e05b break-foreground = black error-background = #311634 cursor-foreground = black [Obsidian] definition-foreground = #678CB1 error-foreground = #FF string-background = #293134 keyword-foreground = #93C763 normal-foreground = #E0E2E4 comment-background = #293134 hit-foreground = #E0E2E4 builtin-background = #293134 stdout-foreground = #678CB1 cursor-foreground = #E0E2E4 break-background = #293134 comment-foreground = #66747B hilite-background = #2F393C hilite-foreground = #E0E2E4 definition-background = #293134 stderr-background = #293134 hit-background = #00 console-foreground = #E0E2E4 normal-background = #293134 builtin-foreground = #E0E2E4 stdout-background = #293134 console-background = #293134 stderr-foreground = #FB keyword-background = #293134 string-foreground = #EC7600 break-foreground = #E0E2E4 error-background = #293134 The erlier one is my own custom setting, i edited it on idle and saved as custom theme. Also to mention later one theme added via text editor from this site: ramdump(dot)com/2011/08/04/obsidian-theme-for-idle/. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17114 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17122] Fix and cleanup test_functools
New submission from Serhiy Storchaka: Since changeset fcfaca024160 (issue12428) subclassing of partial actually is not tested (subclassed partial overwritten in setUp() method). The proposed patch fixes this and some other minor issues and cleanup the code. -- assignee: serhiy.storchaka components: Tests files: test_functools.diff keywords: patch messages: 181319 nosy: pitrou, serhiy.storchaka, zach.ware priority: normal severity: normal stage: patch review status: open title: Fix and cleanup test_functools type: behavior versions: Python 3.4 Added file: http://bugs.python.org/file28952/test_functools.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17114] Python IDLE GUI does not open in Ubuntu 12.04
Serhiy Storchaka added the comment: Run IDLE from command line and you will see: configparser.DuplicateOptionError: While reading from .../.idlerc/config-highlight.cfg [line 29]: option 'cursor-foreground' in section 'Rajesh_Python_Settings' already exists Your configuration is wrong. Just remove duplicated option 'cursor-foreground' (and other duplications if they exist). However 2.7 and 3.1 are tolerant for this. This is an IDLE bug, a regression in 3.2. -- keywords: +3.2regression stage: - needs patch type: - behavior versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17114 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17114] Python IDLE GUI does not open in Ubuntu 12.04
Swarnkar Rajesh added the comment: Thank you Serhiy Storchaka. It worked well. I did not noticed that. Thanks again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17114 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17114] Python IDLE GUI does not open in Ubuntu 12.04
Serhiy Storchaka added the comment: ConfigParser is more strong by default since 3.2. Here is a simple patch which made IDLE more tolerant for such kind of user errors. -- assignee: - serhiy.storchaka keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file28953/idle_nonstrict_config.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17114 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Donald Stufft added the comment: +1 for back porting SSL validation even if it's a private to distutils backport. pypissh requires a SSH Binary which isn't all that great on Windows where SSH is not typically installed by default. -- nosy: +dstufft ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Christian Heimes added the comment: Infrastructure needs to get a proper SSL cert first and we have to ship the CA's public key so we can verify the cert everywhere. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17114] Python IDLE GUI does not open in Ubuntu 12.04
Swarnkar Rajesh added the comment: How can i install this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17114 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Donald Stufft added the comment: Well Infrastructure *should* get a proper cert anyways else MITM is trivial via the web interface anyways. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords
Serhiy Storchaka added the comment: I do not have possibility and desires blind-repair a test on alien platform, so just temporarily disable a new test in Lib/ctypes/test/test_returnfuncptrs.py on Windows. If someone has a desire to fix it fell free to do this. I do not close this issue because committed patch only fix existing crashes in Python. There should be plenty of such bugs in third-party code. We have to deprecate this unsafe feature or reject any sequences except tuple as Alexander proposed. -- stage: patch review - needs patch versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: serhiy.storchaka - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17103] ampersand in path prevents compilation of Python
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: ampersand in path prevents from compiling pthon - ampersand in path prevents compilation of Python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17103 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16555] Add es_cu to locale aliases
Éric Araujo added the comment: Benjamin, does this have to wait for 2.7.5? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16555] Add es_cu to locale aliases
Benjamin Peterson added the comment: Is there some sort of reference for these aliases? Where do they come from? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16903] subprocess.Popen.communicate with universal_newlines=True doesn't accept strings on 3.2
Roundup Robot added the comment: New changeset 4206f91c974c by Serhiy Storchaka in branch '3.2': Issue #16903: Popen.communicate() on Unix now accepts strings when http://hg.python.org/cpython/rev/4206f91c974c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16903] subprocess.Popen.communicate with universal_newlines=True doesn't accept strings on 3.2
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17096] the system keyring should be used instead of ~/.pypirc
Éric Araujo added the comment: The general idea is absolutely right: using proper keyrings (or ssh) is an excellent thing for security and ease of use. A big obstacle however is the rules for stdlib inclusion: a module such as keyring which is tied to specific applications/libs/file formats and may need a short release cycle to adapt for changes in the programs. So while I think keyring is a great library, I fear it does not fit the criteria for stdlib inclusion. The workaround is to enter your password each time you upload and never store it. This isn’t great. What if there was an option specifying a program to call to get the password? That way one could use clvault (command-line interface to python-keyring), maybe ssh-askpass, keepass, etc., but we wouldn’t have code subject to obsolescence in the stdlib. It would not be as nice as seamless password retrieval, and it would not be 100% secure (password is still in memory), but it would solve the storage problem. What do you think? [FYI the distutils2 project is stopped. I don’t have the time right now to go into details again, and there isn’t a single link I can give that explains things well.] -- components: +Distutils -Distutils2 versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17096 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17091] thread.lock.acquire docstring bug
Roundup Robot added the comment: New changeset 0cc51c04aa20 by R David Murray in branch '3.2': #17091: update docstring for _thread.Lock.acquire. http://hg.python.org/cpython/rev/0cc51c04aa20 New changeset b414b2dfd3d3 by R David Murray in branch '3.3': merge #17091: update docstring for _thread.Lock.acquire. http://hg.python.org/cpython/rev/b414b2dfd3d3 New changeset a80abb179ba1 by R David Murray in branch 'default': merge #17091: update docstring for _thread.Lock.acquire. http://hg.python.org/cpython/rev/a80abb179ba1 New changeset 20f0c5398e97 by R David Murray in branch '2.7': #17091: update docstring for _thread.Lock.acquire. http://hg.python.org/cpython/rev/20f0c5398e97 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17091 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13756] Python3.2.2 make fail on cygwin
Éric Araujo added the comment: I have no objection to the patch. I can’t test it on cygwin (unless snakebite provides it, I’ll ask) but I can check that a linux build still works. -- keywords: +needs review stage: - patch review versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13756 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17091] thread.lock.acquire docstring bug
R. David Murray added the comment: Thanks, Ian. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17091 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15485] CROSS: append gcc library search paths
Changes by Éric Araujo mer...@netwok.org: -- nosy: +doko, eric.araujo versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15485 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15298] _sysconfigdata is generated in srcdir, not builddir
Éric Araujo added the comment: Can this be closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Antoine Pitrou added the comment: PyPI *has* a proper cert, it's just not in the default trusted certs of most distributions and browsers (i.e., it uses CACert). It would be easy to bundle CACert's root cert with distutils, if we wanted to. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17069] HTTP result code in urllib2.urlopen() file object undocumented
Éric Araujo added the comment: Are these the addinfourl getters that Ezio wants to deprecate? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17069 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17077] Fix test_tools hangs
Serhiy Storchaka added the comment: Committed changeset 4be538a058a8. Thank you for the patch. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12779] Update packaging documentation
Changes by Ian Cordasco graffatcolmin...@gmail.com: -- nosy: +icordasc, larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12779 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12502] 100% cpu usage when using asyncore with UNIX socket
Benjamin Ash added the comment: Hi Charles-François, I am using a recent version of Python-2.7 that does in fact contains this patch http://hg.python.org/cpython/rev/16bc59d37866: python-2.7.3-4.fc16.x86_64 (Fedora 16) The CPU usage spikes after I make the initial client connection to the socket. I am able to reproduce the issue using the attached script 'asyncore_test.py', and any of the following: - simple asyncore.dispatcher_with_send client. - simple asyncore.dispatcher client. - a direct socket.socket() connection. Not sure what might be going wrong here. Any help would be most appreciated. Thanks, -ben -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6761] Class calling
Changes by Ian Cordasco graffatcolmin...@gmail.com: -- nosy: +icordasc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6761 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17123] Add OCSP support to ssl module
New submission from Christian Heimes: Python's ssl module doesn't support OCSP [1]. The example code at [2] doesn't look too complicated. We should consider OCSP at least for 3.4 and may want to backport it to older versions to prevent MITM attacks on PyPI downloads. [1]http://en.wikipedia.org/wiki/Online_Certificate_Status_Protocol) [2] http://etutorials.org/Programming/secure+programming/Chapter+10.+Public+Key+Infrastructure/10.12+Checking+Revocation+Status+via+OCSP+with+OpenSSL/ -- components: Extension Modules messages: 181341 nosy: christian.heimes, pitrou priority: high severity: normal stage: needs patch status: open title: Add OCSP support to ssl module type: security versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14940] Usage documentation for pysetup
Éric Araujo added the comment: pysetup is no more. -- resolution: - wont fix stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14940 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Donald Stufft added the comment: CACert is not *proper* irregardless of what that projects goals are. It is not trusted by default therefore it does not provide the same level of security in the browser (Very few people will bother to look at the difference between a CACert and a self signed cert). Further more I don't believe you'll be able to use HSTS with it at all making SSL Stripping a very easy avenue to a MITM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12779] Update packaging documentation
Éric Araujo added the comment: Packaging is removed from the stdlib and distutils2 is evolving into decoupled libs/tools. Closing this effort :( -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12779 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Christian Heimes added the comment: And there is OCSP. I'm getting sec_error_ocsp_invalid_signing_cert for https://pypi.python.org/pypi. I haven't been able to do a successful HTTPS request from Firefox to PyPI all day. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17089] Expat parser parses strings only when XML encoding is UTF-8
Roundup Robot added the comment: New changeset 3cc2a2de36e3 by Serhiy Storchaka in branch '3.2': Issue #17089: Expat parser now correctly works with string input not only when http://hg.python.org/cpython/rev/3cc2a2de36e3 New changeset 6c27b0e09c43 by Serhiy Storchaka in branch '3.3': Issue #17089: Expat parser now correctly works with string input not only when http://hg.python.org/cpython/rev/6c27b0e09c43 New changeset c4e6e560e6f5 by Serhiy Storchaka in branch 'default': Issue #17089: Expat parser now correctly works with string input not only when http://hg.python.org/cpython/rev/c4e6e560e6f5 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17089 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12502] 100% cpu usage when using asyncore with UNIX socket
Benjamin Ash added the comment: After doing a bit more testing, I was able to prevent the problem from occurring in asyncore_test.py with the following patch: --- /proc/self/fd/112013-02-04 11:24:41.298347199 -0500 +++ asyncore_test.py2013-02-04 11:24:40.393318513 -0500 @@ -19,10 +19,18 @@ self.bind(sock) self.listen(5) -def handle_accepted(self, sock, addr): -print('Incoming connection from %s' % repr(addr)) -handler = EchoHandler(sock) +def handle_accept(self): +pair = self.accept() +if pair is not None: +(sock, addr) = pair +print('Incoming connection from %s' % repr(addr)) +handler = EchoHandler(sock) Using handle_accept() in my code and remembering to call listen() in my asyncore.dispatcher server's constructor did the trick. I am not sure if we still have a bug here though, since if the subclass doesn't define a proper handle_accept() we get into the select() loop and 100% CPU utilization after the initial client connection. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17124] import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3, 2.6.6
New submission from Dave Jones: import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3, 2.6.6 I'm running this test from a LiveCD to make sure the environment is relatively clean. -- localhost Desktop # python --version Python 2.7.3 --- works fine here localhost Desktop # cat sp.py #!/usr/bin/python import subprocess print Done... --- localhost Desktop # ls -1 | wc -l 7 --- localhost Desktop # time python sp.py Done... real0m0.027s user0m0.023s sys 0m0.003s --- BUT--- This cannot be right localhost Desktop # mv sp.py .. mv: overwrite `../sp.py'? y localhost Desktop # cd .. localhost jonesda0 # cat sp.py #!/usr/bin/python import subprocess print Done... localhost jonesda0 # time python sp.py 1 Done... real0m25.336s user0m25.270s sys 0m0.014s localhost jonesda0 # ls -1 | wc -l 758 Only change is the number of files in the directory. I have tested this on several different LiveCDs but the results are the same. Is there some sort of flag I need to know about? FWIW, I do not see the problem when using python3.. localhost jonesda0 # yum -y install python3 Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit ... Installed: python3.i686 0:3.1.2-14.fc14 Dependency Installed: python3-libs.i686 0:3.1.2-14.fc14 Complete! localhost jonesda0 # time python3 sp.py ## (print function...duh) File sp.py, line 5 print Done... ^ SyntaxError: invalid syntax real0m0.048s user0m0.044s sys 0m0.004s localhost jonesda0 # vi sp.py localhost jonesda0 # time python3 sp.py Done... real0m0.091s user0m0.084s sys 0m0.006s localhost jonesda0 # python3 --version Python 3.1.2 -- messages: 181348 nosy: Dave.Jones priority: normal severity: normal status: open title: import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3, 2.6.6 versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17125] tokenizer.tokenize passes a bytes object to str.startswith
New submission from Tyler Crompton: Line 402 in lib/python3.3/tokenize.py, contains the following line: if first.startswith(BOM_UTF8): BOM_UTF8 is a bytes object. str.startswith does not accept bytes objects. I was able to use tokenize.tokenize only after making the following changes: Change line 402 to the following: if first.startswith(BOM_UTF8.decode()): Add these two lines at line 374: except AttributeError: line_string = line Change line 485 to the following: try: line = line.decode(encoding) except AttributeError: pass I do not know if these changes are correct as I have not fully tested this module after these changes, but it started working for me. This is the meat of my invokation of tokenize.tokenize: import tokenize with open('example.py') as file: # opening a file encoded as UTF-8 for token in tokenize.tokenize(file.readline): print(token) I am not suggesting that these changes are correct, but I do believe that the current implementation is incorrect. I am also unsure as to what other versions of Python are affected by this. -- components: Library (Lib) messages: 181349 nosy: Tyler.Crompton priority: normal severity: normal status: open title: tokenizer.tokenize passes a bytes object to str.startswith type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17125 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17124] import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3, 2.6.6
Dave Jones added the comment: That line (1) seems to pop up every time the subprocess call hangs -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17124] import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3, 2.6.6
Dave Jones added the comment: Distros tested with include Funduntu 2012-4, Fuduntu 2013-1, Fedora 17, Scientific Linux 6.3 OpenSUSE 12.2 (all 32-bit) on the same hardware. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17125] tokenizer.tokenize passes a bytes object to str.startswith
R. David Murray added the comment: The docs could certainly be more explicit...currently they state that tokenize is *detecting* the encoding of the file, which *implies* but does not make explicit that the input must be binary, not text. The doc problem will get fixed as part of the fix to issue 12486, so I'm closing this as a duplicate. If you want to help out with a patch review and doc patch suggestions on that issue, that would be great. -- nosy: +r.david.murray resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - tokenize module should have a unicode API ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17125 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17123] Add OCSP support to ssl module
Antoine Pitrou added the comment: Can you explain how OCSP helps prevent MITM attacks? - Mail original - De: Christian Heimes rep...@bugs.python.org À: pit...@free.fr Envoyé: Lundi 4 Février 2013 17:14:32 Objet: [issue17123] Add OCSP support to ssl module New submission from Christian Heimes: Python's ssl module doesn't support OCSP [1]. The example code at [2] doesn't look too complicated. We should consider OCSP at least for 3.4 and may want to backport it to older versions to prevent MITM attacks on PyPI downloads. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13156] _PyGILState_Reinit assumes auto thread state will always exist which is not true.
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13156 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17123] Add OCSP support to ssl module
Changes by Christian Heimes li...@cheimes.de: -- nosy: +barry, benjamin.peterson, georg.brandl, larry priority: high - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17123] Add OCSP support to ssl module
Christian Heimes added the comment: OCSP can prevent MITM attacks when the private server cert or CA cert got compromised or stolen somehow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16038] ftplib: unlimited readline() from connection
Changes by Christian Heimes li...@cheimes.de: -- nosy: +benjamin.peterson, georg.brandl priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12226] use HTTPS by default for uploading packages to pypi
Changes by Christian Heimes li...@cheimes.de: -- nosy: +benjamin.peterson, georg.brandl, larry priority: normal - release blocker versions: +Python 3.4 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12226 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16039] imaplib: unlimited readline() from connection
Changes by Christian Heimes li...@cheimes.de: -- nosy: +benjamin.peterson, georg.brandl, larry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16039 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Changes by Christian Heimes li...@cheimes.de: -- nosy: +barry, benjamin.peterson, georg.brandl, larry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16041] poplib: unlimited readline() from connection
Changes by Christian Heimes li...@cheimes.de: -- nosy: +benjamin.peterson, georg.brandl, larry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16040] nntplib: unlimited readline() from connection
Changes by Christian Heimes li...@cheimes.de: -- nosy: +benjamin.peterson, georg.brandl, larry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16042] smtplib: unlimited readline() from connection
Changes by Christian Heimes li...@cheimes.de: -- nosy: +benjamin.peterson, georg.brandl, larry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16037] httplib: header parsing is not delimited
Changes by Christian Heimes li...@cheimes.de: -- nosy: +benjamin.peterson, georg.brandl, larry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16037 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16043] xmlrpc: gzip_decode has unlimited read()
Changes by Christian Heimes li...@cheimes.de: -- nosy: +benjamin.peterson, georg.brandl, larry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15298] _sysconfigdata is generated in srcdir, not builddir
Ned Deily added the comment: On OS X, Trent's fixes solved the bootstrap issue and _sysconfigdata.py is now created in buildir. Closing. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()
Eric Snow added the comment: My vote is for making this a ValueError in both cases (and amending the doc appropriately as well). The error amounts to the same thing: the module did not have loader (implicitly or explicitly). If someone wants to distinguish between the two they can explicitly check __loader__ on the module. Incidently, _find_and_load_unlocked() has similar code to find_loader() (Lib/importlib/_bootstrap:1523) and raises ImportError instead of ValueError. That's actually fine since it's a different situation. However, _find_module() does not handle when __loader__ does not exist, so you would get neither ValueError nor ImportError. I expect we'd want it or _find_and_load_unlocked() to convert the AttributeError into ImportError to be consistent both with the fix for this issue and with how we handle the __loader__ == None case there. --- For reference, here is the original python-dev thread: http://mail.python.org/pipermail/python-dev/2013-January/123777.html The reference to ValueError is in the importlib docs: http://docs.python.org/dev/library/importlib.html#importlib.find_loader -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17117] Update importlib.util.module_for_loader/set_loader to set when __loader__ = None
Eric Snow added the comment: +1 -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17117 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17115] __loader__ = None should be fine
Eric Snow added the comment: In all honesty I would like to tweak imp.new_module()/PyModule_Create()... +1 -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17115 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17115] __loader__ = None should be fine
Eric Snow added the comment: [document that] the language reference and importlib docs now supersede the PEP Agreed. PEP 302 is even crustier now than it was a year ago and Barry's new import page in the language reference obviates the need for 302 as the de facto spec. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17115 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17092] Disable TIPC in configure
ddve...@ucar.edu added the comment: Ok, I'm closing this ticket, since it does not seem there is interested in fixing it. I still believe it would be a nice feature, but life is short, let's concentrate efforts on more useful things. Moreover (see Issue17085 for details) TIPC was not the root cause of the that other issue. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17092 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17085] test_socket crashes the whole test suite
ddve...@ucar.edu added the comment: So I rebuild python withou tipc (basically deleting it from configure, since it cannot be cleanly avoided, see Issue17092). The 'sudo modprobe tipc' message of course disappears, but the uncaught alarm is still there, see below: ./python Lib/test/regrtest.py -v test_socket == CPython 2.7.3 (default, Feb 2 2013, 11:27:13) [GCC 4.7.2] == Linux-2.6.32-220.13.1.el6.x86_64-x86_64-with-redhat-6.2-Santiago little-endian == /glade/scratch/ddvento/build/Python-2.7.3-westmere-gdb-without-tipc/build/test_python_9390 Testing with flags: sys.flags(debug=0, py3k_warning=0, division_warning=0, division_new=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, tabcheck=0, verbose=0, unicode=0, bytes_warning=0, hash_randomization=0) test_socket testCrucialConstants (test.test_socket.GeneralModuleTests) ... ok testDefaultTimeout (test.test_socket.GeneralModuleTests) ... ok testGetServBy (test.test_socket.GeneralModuleTests) ... ok testGetSockOpt (test.test_socket.GeneralModuleTests) ... ok testGetaddrinfo (test.test_socket.GeneralModuleTests) ... ok testHostnameRes (test.test_socket.GeneralModuleTests) ... ok testIPv4_inet_aton_fourbytes (test.test_socket.GeneralModuleTests) ... ok testIPv4toString (test.test_socket.GeneralModuleTests) ... ok testIPv6toString (test.test_socket.GeneralModuleTests) ... ok testInterpreterCrash (test.test_socket.GeneralModuleTests) ... ok testListenBacklog0 (test.test_socket.GeneralModuleTests) ... ok testNewAttributes (test.test_socket.GeneralModuleTests) ... ok testNtoH (test.test_socket.GeneralModuleTests) ... ok testNtoHErrors (test.test_socket.GeneralModuleTests) ... ok testRefCountGetNameInfo (test.test_socket.GeneralModuleTests) ... ok testSendAfterClose (test.test_socket.GeneralModuleTests) ... ok testSendtoErrors (test.test_socket.GeneralModuleTests) ... ok testSetSockOpt (test.test_socket.GeneralModuleTests) ... ok testSockName (test.test_socket.GeneralModuleTests) ... ok testSocketError (test.test_socket.GeneralModuleTests) ... ok testStringToIPv4 (test.test_socket.GeneralModuleTests) ... ok testStringToIPv6 (test.test_socket.GeneralModuleTests) ... ok test_flowinfo (test.test_socket.GeneralModuleTests) ... ok test_getsockaddrarg (test.test_socket.GeneralModuleTests) ... ok test_sendall_interrupted (test.test_socket.GeneralModuleTests) ... FAIL test_sendall_interrupted_with_timeout (test.test_socket.GeneralModuleTests) ... FAIL test_sock_ioctl (test.test_socket.GeneralModuleTests) ... skipped 'Windows specific' test_weakref (test.test_socket.GeneralModuleTests) ... ok testDup (test.test_socket.BasicTCPTest) ... ok testFromFd (test.test_socket.BasicTCPTest) ... ok testOverFlowRecv (test.test_socket.BasicTCPTest) ... ok testOverFlowRecvFrom (test.test_socket.BasicTCPTest) ... ok testRecv (test.test_socket.BasicTCPTest) ... ok testRecvFrom (test.test_socket.BasicTCPTest) ... ok testSendAll (test.test_socket.BasicTCPTest) ... ok testShutdown (test.test_socket.BasicTCPTest) ... ok testClose (test.test_socket.TCPCloserTest) ... Alarm clock -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17085] test_socket crashes the whole test suite
ddve...@ucar.edu added the comment: Just to see this test running to completion, I applied the following (ugly) patch: --- Lib/test/test_socket.py.orig2012-04-09 17:07:32.0 -0600 +++ Lib/test/test_socket.py 2013-02-03 06:56:11.778118985 -0700 @@ -14,7 +14,7 @@ import array import contextlib from weakref import proxy -import signal +#import signal import math def try_address(host, port=0, family=socket.AF_INET): @@ -33,6 +33,12 @@ MSG = b'Michael Gilfix was here\n' SUPPORTS_IPV6 = socket.has_ipv6 and try_address('::1', family=socket.AF_INET6) +signal = not a signal + try: import thread With it, the test case completed as follows, which at least confirmed that the only broken part is sendall_interrupted. I'll live with it for now, but I'll be happy to work with the maintainer of these tests to understand what are they trying to accomplish, how to make them fail more gracefully (I tried installing a signal handler without success), and how to tell what to do to users of systems affected by the issue. ./python Lib/test/regrtest.py -v test_socket == CPython 2.7.3 (default, Feb 2 2013, 11:27:13) [GCC 4.7.2] == Linux-2.6.32-220.13.1.el6.x86_64-x86_64-with-redhat-6.2-Santiago little-endian == /glade/scratch/ddvento/build/Python-2.7.3-westmere-gdb-without-tipc/build/test_python_16005 Testing with flags: sys.flags(debug=0, py3k_warning=0, division_warning=0, division_new=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, tabcheck=0, verbose=0, unicode=0, bytes_warning=0, hash_randomization=0) test_socket testCrucialConstants (test.test_socket.GeneralModuleTests) ... ok testDefaultTimeout (test.test_socket.GeneralModuleTests) ... ok testGetServBy (test.test_socket.GeneralModuleTests) ... ok testGetSockOpt (test.test_socket.GeneralModuleTests) ... ok testGetaddrinfo (test.test_socket.GeneralModuleTests) ... ok testHostnameRes (test.test_socket.GeneralModuleTests) ... ok testIPv4_inet_aton_fourbytes (test.test_socket.GeneralModuleTests) ... ok testIPv4toString (test.test_socket.GeneralModuleTests) ... ok testIPv6toString (test.test_socket.GeneralModuleTests) ... ok testInterpreterCrash (test.test_socket.GeneralModuleTests) ... ok testListenBacklog0 (test.test_socket.GeneralModuleTests) ... ok testNewAttributes (test.test_socket.GeneralModuleTests) ... ok testNtoH (test.test_socket.GeneralModuleTests) ... ok testNtoHErrors (test.test_socket.GeneralModuleTests) ... ok testRefCountGetNameInfo (test.test_socket.GeneralModuleTests) ... ok testSendAfterClose (test.test_socket.GeneralModuleTests) ... ok testSendtoErrors (test.test_socket.GeneralModuleTests) ... ok testSetSockOpt (test.test_socket.GeneralModuleTests) ... ok testSockName (test.test_socket.GeneralModuleTests) ... ok testSocketError (test.test_socket.GeneralModuleTests) ... ok testStringToIPv4 (test.test_socket.GeneralModuleTests) ... ok testStringToIPv6 (test.test_socket.GeneralModuleTests) ... ok test_flowinfo (test.test_socket.GeneralModuleTests) ... ok test_getsockaddrarg (test.test_socket.GeneralModuleTests) ... ok test_sendall_interrupted (test.test_socket.GeneralModuleTests) ... skipped 'signal.alarm and socket.socketpair required for this test' test_sendall_interrupted_with_timeout (test.test_socket.GeneralModuleTests) ... skipped 'signal.alarm and socket.socketpair required for this test' test_sock_ioctl (test.test_socket.GeneralModuleTests) ... skipped 'Windows specific' test_weakref (test.test_socket.GeneralModuleTests) ... ok testDup (test.test_socket.BasicTCPTest) ... ok testFromFd (test.test_socket.BasicTCPTest) ... ok testOverFlowRecv (test.test_socket.BasicTCPTest) ... ok testOverFlowRecvFrom (test.test_socket.BasicTCPTest) ... ok testRecv (test.test_socket.BasicTCPTest) ... ok testRecvFrom (test.test_socket.BasicTCPTest) ... ok testSendAll (test.test_socket.BasicTCPTest) ... ok testShutdown (test.test_socket.BasicTCPTest) ... ok testClose (test.test_socket.TCPCloserTest) ... ok testInterruptedTimeout (test.test_socket.TCPTimeoutTest) ... ok testTCPTimeout (test.test_socket.TCPTimeoutTest) ... ok testTimeoutZero (test.test_socket.TCPTimeoutTest) ... ok testExceptionTree (test.test_socket.TestExceptions) ... ok testRecvFromIntoArray (test.test_socket.BufferIOTest) ... ok testRecvFromIntoBytearray (test.test_socket.BufferIOTest) ... ok testRecvFromIntoMemoryview (test.test_socket.BufferIOTest) ... ok testRecvIntoArray (test.test_socket.BufferIOTest) ... ok testRecvIntoBytearray (test.test_socket.BufferIOTest) ... ok testRecvIntoMemoryview (test.test_socket.BufferIOTest) ... ok testDup (test.test_socket.BasicTCPTest2) ... ok testFromFd (test.test_socket.BasicTCPTest2) ... ok testOverFlowRecv (test.test_socket.BasicTCPTest2) ... ok testOverFlowRecvFrom (test.test_socket.BasicTCPTest2) ... ok testRecv (test.test_socket.BasicTCPTest2) ... ok testRecvFrom (test.test_socket.BasicTCPTest2) ... ok testSendAll
[issue17123] Add OCSP support to ssl module
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12502] 100% cpu usage when using asyncore with UNIX socket
Charles-François Natali added the comment: Using handle_accept() in my code and remembering to call listen() in my asyncore.dispatcher server's constructor did the trick. I am not sure if we still have a bug here though, since if the subclass doesn't define a proper handle_accept() we get into the select() loop and 100% CPU utilization after the initial client connection. No, it's not a bug. The attached test case was for Python 3: Python 2 doesn't have handle_accepted(), and since the default implementation of handle_accept() doesn't nothing, the handler is called in a loop, because the socket is effectively always ready for accept. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17127] multiprocessing.dummy.Pool does not accept maxtasksperchild argument
New submission from Noah Yetter: Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. The docs claim that multiprocessing.dummy replicates the API of multiprocessing but is no more than a wrapper around the threading module. however dummy's Pool method does not replicate the API of multiprocessing's Pool method: import inspect import multiprocessing inspect.getargspec(multiprocessing.Pool) ArgSpec(args=['processes', 'initializer', 'initargs', 'maxtasksperchild'], varargs=None, keywords=None, defaults=(None, None, (), None)) import multiprocessing.dummy inspect.getargspec(multiprocessing.dummy.Pool) ArgSpec(args=['processes', 'initializer', 'initargs'], varargs=None, keywords=None, defaults=(None, None, ())) Thus when attempting to downshift from multiprocessing to threading like so... import multiprocessing.dummy as multiprocessing ...code that supplies the maxtasksperchild argument to Pool() will not run. -- components: Library (Lib) messages: 181365 nosy: Noah.Yetter priority: normal severity: normal status: open title: multiprocessing.dummy.Pool does not accept maxtasksperchild argument type: behavior versions: Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17127 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17128] OS X system openssl deprecated - installer should build local libssl
New submission from Ned Deily: Apple has deprecated use of openssl in OS X due to its unstable API between versions: If your app depends on OpenSSL, you should compile OpenSSL yourself and statically link a known version of OpenSSL into your app https://developer.apple.com/library/mac/#documentation/security/Conceptual/cryptoservices/GeneralPurposeCrypto/GeneralPurposeCrypto.html Currently OS X ships with patched versions of libssl 0.9.7 and 0.9.8. The 32-bit python.org installer links with and dynamically loads 0.9.7 and the 64-/32-bit installer with 0.9.8. build-installer.py should be enhanced to build and link with its own universal more up-to-date static libssl, as is done for several other OS X-supplied libraries. Since apparently the openssl upstream builds do not support OS X universal builds, build-installer.py will need to learn how to build each arch separately and lipo them together. With the current discussion around security issues, are there features in openssl 1.x.x that warrant making this a release blocker for 2.7.4 and 3.2.4? I should be able to implement and test this over the next few days if so. Setting to release blocker for release managers' decision. -- assignee: ned.deily components: Build, Macintosh messages: 181366 nosy: benjamin.peterson, georg.brandl, larry, ned.deily, ronaldoussoren priority: release blocker severity: normal stage: needs patch status: open title: OS X system openssl deprecated - installer should build local libssl versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13994] incomplete revert in 2.7 Distutils left two copies of customize_compiler
Marc-Andre Lemburg added the comment: Thanks for getting this in, Eric ! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13994 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1326841] SIGALRM alarm signal kills interpreter
ddve...@ucar.edu added the comment: Paul, I agree with you, this default behavior is painful. And in fact even the author of the test_socket case for the python regression suite agree with us (maybe even implicitly and by mistake, but regardless...) See Issue17085 for details -- nosy: +ddve...@ucar.edu ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1326841 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17126] test_gdb fails
R. David Murray added the comment: The autoloading error will be fixed in 2.7.4 (due out Real Soon Now, but not immediately). I've nosied the author, Dave Malcolm, to address the other issues. -- nosy: +dmalcolm, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17126 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17124] import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3, 2.6.6
Dave Jones added the comment: I think I found something but I do not know what it means. Everytime the import hangs, it seems to leave behind a time.pyc There are only 29 files in this directory. [jonesda0@linux-2py2 pycode]$ ls -1tr py5.py* py4.py* py3.py* py2.py* py1.py* print_func.py test.py ex3-4.py time.py time2.py sample.py os_test.py params.py changeparam.py parity.py remove_vowels.py sqlite_version.py sqlite_version_with.py sqlite_insert.py sqlite_insert2.py sqlite_friends_last.py sqlite_getall.py dc4g2-report.rpt out_dc4g2-report.rpt num_guess.py report_db_import.py* test-sp.py sp.py test/ [jonesda0@linux-2py2 pycode]$ python sp.py 1 Done... [jonesda0@linux-2py2 pycode]$ ls -1tr py5.py* py4.py* py3.py* py2.py* py1.py* print_func.py test.py ex3-4.py time.py time2.py sample.py os_test.py params.py changeparam.py parity.py remove_vowels.py sqlite_version.py sqlite_version_with.py sqlite_insert.py sqlite_insert2.py sqlite_friends_last.py sqlite_getall.py dc4g2-report.rpt out_dc4g2-report.rpt num_guess.py report_db_import.py* test-sp.py sp.py test/ time.pyc -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17123] Add OCSP support to ssl module
Antoine Pitrou added the comment: Christian, I really don't agree this should be a release blocker, and especially not for bugfix branches. -- priority: release blocker - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17124] import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3, 2.6.6
Ian Cordasco added the comment: As a further note, on python 2.6, I just touched a file called time.py, and in the interpreter imported subprocess. It didn't hang because the file was empty but it did generate a pyc file. This is almost certainly the root of your problem. I doubt this is a core python problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17124] import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3, 2.6.6
Ian Cordasco added the comment: Could you give us the contents of your time.py file? I wonder if there's something in that file that is causing the import to hang. It's the only reason I can think of as to why the time.pyc file shows up. Also, if you want to check before-hand, make a new directory with just those two files and see what happens. -- nosy: +icordasc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Antoine Pitrou added the comment: Wow. Can we calm down? Setting many feature requests as release blockers certainly won't magically solve issues. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17107] test_sni in test_urllib2net could be enabled
Antoine Pitrou added the comment: Thanks for the patch :) Since the test doesn't access a remote host (the version before it was skipped used to), I think it could be moved to test_urllib2_localnet. Also, the transient_internet() shouldn't be necessary. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17107 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17069] HTTP result code in urllib2.urlopen() file object undocumented
Senthil Kumaran added the comment: Éric, thanks for the comment. URLopener and FancyURLopener is deprecated, so that reference to that can be removed from 3.4 (after removing the URLopener and FancyURLopener class). Rest of the patch can stay the same. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17069 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10517] test_concurrent_futures crashes with --with-pydebug on RHEL5 with Fatal Python error: Invalid thread state for this thread
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10517 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Christian Heimes added the comment: Benjamin requested that I should set the priority of all tickets to 'release blocker' that needs be be addressed, discussed and possibly fixed for the upcoming releases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Antoine Pitrou added the comment: Yes, and why do you think this should be addressed in the next bugfix release? If HTTPS is so broken that you can't upload important data with it, then perhaps patching Python is not the most important thing to do? In other words: don't you think you're overreacting? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17129] Include CA bundle and provide access to system's CA
New submission from Christian Heimes: For effective SSL server cert validation a bundle of trustworthy CA certs is required. Most system ship such a bundle but it's not always possible to access the bundle from Python / OpenSSL. Windows and Mac OS X come into my mind. wget and curl ship a copy of Mozilla's CA cert bundle. The site http://curl.haxx.se/docs/caextract.html explains how to extract the CA certs in PEM format. I suggest that we ship the CA bundle with Python and use a lookup chain: - user defined path to a cacert directory or cacert.pem file - cacert directory or PEM file in the user's home directory: cacertdir = os.path.join(site.USER_SITE, os.pardir, cacert) cacertfile = os.path.join(site.USER_SITE, os.pardir, cacert.pem) - system's ca cert directory (/etc/ssl/certs on Linux) - CA cert bundle shipped with the Python installation. -- components: Library (Lib) messages: 181379 nosy: christian.heimes priority: high severity: normal status: open title: Include CA bundle and provide access to system's CA type: security versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17129 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12502] 100% cpu usage when using asyncore with UNIX socket
Benjamin Ash added the comment: Ok, thanks for quick followup. I didn't realize that the patch for Python-3, sorry about that. The issue I had was due to never calling self.listen() in the constructor of my server (asyncore.dispatcher). If this is not done the CPU spikes to 100%. Thanks again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12226] use HTTPS by default for uploading packages to pypi
Changes by Christian Heimes li...@cheimes.de: -- dependencies: +Include CA bundle and provide access to system's CA ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12226 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Christian Heimes added the comment: Perhaps a tiny bit. ;) My brain is in paranoid mode ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17129] Include CA bundle and provide access to system's CA
Antoine Pitrou added the comment: Shouldn't it be a duplicate of issue13655? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17129 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2175] Expat sax parser silently ignores the InputSource protocol
Serhiy Storchaka added the comment: Here is a patch, which made xml.sax.xmlreader and related utilities to support character stream. A lot of new tests added (including Yitz Gale's tests from issue1483). Some old tests fixed (they were used text stream as byte stream, this doesn't work in general case). -- components: -Documentation, Extension Modules keywords: +patch nosy: +ezio.melotti stage: - patch review versions: +Python 3.4 Added file: http://bugs.python.org/file28954/sax_character_stream.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Benjamin Peterson added the comment: Too much of a new feature IMO. -- priority: release blocker - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16811] email.message.Message flatten dies of list index out of range
Roundup Robot added the comment: New changeset e64b74227198 by R David Murray in branch '3.3': #16811: Fix folding of headers with no value in provisional policies. http://hg.python.org/cpython/rev/e64b74227198 New changeset fe7f3e2e49ce by R David Murray in branch 'default': Merge #16811: Fix folding of headers with no value in provisional policies. http://hg.python.org/cpython/rev/fe7f3e2e49ce -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16811 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16811] email.message.Message flatten dies of list index out of range
R. David Murray added the comment: Fixed, thanks. There are some other issues with folding values consisting of only blanks, but I'll deal with that in the context of other issues. With this fix the new folding algorithm works at least as well as the old folding algorithm on blank values. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16811 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17124] import subprocess hangs for ~25 seconds, time.py file in dir - py 2.7.3, 2.6.6
Dave Jones added the comment: Tried to edit subject to make it easier to search -- title: import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3, 2.6.6 - import subprocess hangs for ~25 seconds, time.py file in dir - py 2.7.3, 2.6.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17124] import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3, 2.6.6
Dave Jones added the comment: Hello Ian. Thank you for the reply. As I imagine you understand, I delete the time.pyc file every time it comes back. That being said, there *is* a time.py script in there from some testing I was doing: [jonesda0@toshiba pycode]$ ls -1tr *.py* | egrep sp|time time.py time2.py test-sp.py sp.py [jonesda0@toshiba pycode]$ cat time.py i = 0 j = 0 while (i 1): # i = i + 1 i+=1 # j = j + 1 j+=1 print j -- [jonesda0@toshiba pycode]$ python sp.py 1 Done... [jonesda0@toshiba pycode]$ ls -1tr *.py* | egrep sp|time time.py time2.py test-sp.py sp.py time.pyc -- I am not calling any sort of time.py anywhere: [jonesda0@toshiba pycode]$ cat sp.py ## still took about 25 seconds import subprocess print (Done...) -- So where does this behavior come from? [jonesda0@toshiba pycode]$ cat time.pyc ## There is all sorts of Escape code in the file, obviously. ���Pc@sdZdZx$edkr2ed7Zed7ZqWeGHdS(ii��iN(titj(((s/home/jonesda0/pycode/time.pymodules [jonesda0@toshiba pycode]$ file time.pyc time.pyc: python 2.7 byte-compiled [jonesda0@toshiba pycode]$ - [jonesda0@toshiba pycode]$ rm -f time.pyc [jonesda0@toshiba pycode]$ mv time.py time.py.bad [jonesda0@toshiba pycode]$ time python sp.py Done... real0m0.027s user0m0.021s sys 0m0.005s [jonesda0@toshiba pycode]$ ls -1tr *.py* | egrep sp|time time.py.bad time2.py test-sp.py sp.py -- Your hypothesis is clearly accurate, but my question is now *WHY*? I was in no way calling a python time function or time.py, it just happened to be in the directory! Thanks -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17128] OS X system openssl deprecated - installer should build local libssl
Changes by Ed Campbell drescampb...@gmail.com: -- nosy: +esc24 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17128] OS X system openssl deprecated - installer should build local libssl
Benjamin Peterson added the comment: As you are the MacOSX expert, I'm going to defer your judgement (and/or Ronald's). I don't think the release will be for several days at least, so you should have time to test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Changes by Gregory P. Smith g...@krypto.org: -- nosy: -gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17124] import subprocess hangs for ~25 seconds, time.py file in dir - py 2.7.3, 2.6.6
Charles-François Natali added the comment: You happen to have a script named time.py, so when the subprocess module is imported, it imports this script instead of the correct time module. Nothing is wrong, closing. -- nosy: +neologix resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com