[issue17621] Create a lazy import loader mixin

2014-03-26 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: -- nosy: +twouters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17621 ___ ___ Python-bugs-list

[issue21070] test_xmlrpc waits forever instead of reporting failure

2014-03-26 Thread R. David Murray
R. David Murray added the comment: It hung before the changes as well. On the other hand, before the removal of the timeout value, it at least displayed an error *before* hanging, so I think absent a proper fix the timeout at least should be restored. -- nosy: +r.david.murray

[issue21071] struct.Struct.format is bytes, but should be str

2014-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: I agree that's rather unfortunate. It would be backwards incompatible to change, though. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21071

[issue21071] struct.Struct.format is bytes, but should be str

2014-03-26 Thread Zbyszek Jędrzejewski-Szmek
Zbyszek Jędrzejewski-Szmek added the comment: Maybe a flag param for the constructor? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21071 ___

[issue21071] struct.Struct.format is bytes, but should be str

2014-03-26 Thread R. David Murray
R. David Murray added the comment: I agree that the implementation does not match the documentation in this case. Especially the part about the format string used to create this Struct object. I don't see what having a flag would buy you: it doesn't help you in writing 2/3 shared code. I

[issue17621] Create a lazy import loader mixin

2014-03-26 Thread Augie Fackler
Changes by Augie Fackler li...@durin42.com: -- nosy: +durin42 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17621 ___ ___ Python-bugs-list mailing

[issue16038] ftplib: unlimited readline() from connection

2014-03-26 Thread A.M. Kuchling
A.M. Kuchling added the comment: Are we likely to actually apply this change to the 3.1 and 3.2 branches, given that even the later 3.3 branch is now in security-fix mode? If we're not going to change 3.1 or 3.2, this issue can just be closed. --

[issue16042] smtplib: unlimited readline() from connection

2014-03-26 Thread A.M. Kuchling
A.M. Kuchling added the comment: Are we going to apply a fix for this to 2.7? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___ ___

[issue21035] Python's HTTP server implementations hangs after 16.343 requests on MacOSX

2014-03-26 Thread Parto Chobeiry
Parto Chobeiry added the comment: @neologix: I tried to patch socketserver.py from versions 2.7, 3.3 and 3.4 -- it fails all the time, slightly differing error messages but similar to this: u1@~/Projects$ patch ../Downloads/socketserver_use_selectors-1.diff can't find file to patch at input

[issue21035] Python's HTTP server implementations hangs after 16.343 requests on MacOSX

2014-03-26 Thread Parto Chobeiry
Parto Chobeiry added the comment: Got feedback from Apple :-( Engineering has determined that this is an issue for a third party to resolve based on the following: This happens in stock python, it's a python issue. We are now closing this bug report. If you have questions regarding the

[issue20903] smtplib.SMTP raises socket.timeout

2014-03-26 Thread Vyacheslav Rafalskiy
Vyacheslav Rafalskiy added the comment: Take look at this one too: http://bugs.python.org/issue2118 It is supposed to be fixed. -- nosy: +Vyacheslav.Rafalskiy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20903

[issue12933] Update or remove claims that distutils requires external programs

2014-03-26 Thread Vishal Lal
Changes by Vishal Lal vis...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file34627/issue12933-py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12933 ___

[issue12933] Update or remove claims that distutils requires external programs

2014-03-26 Thread Vishal Lal
Changes by Vishal Lal vis...@gmail.com: Added file: http://bugs.python.org/file34628/issue12933-py33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12933 ___

[issue12933] Update or remove claims that distutils requires external programs

2014-03-26 Thread Vishal Lal
Changes by Vishal Lal vis...@gmail.com: Added file: http://bugs.python.org/file34629/issue12933-py34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12933 ___

[issue12933] Update or remove claims that distutils requires external programs

2014-03-26 Thread Vishal Lal
Vishal Lal added the comment: Attached patch for 2.7, 3.3, 3.4. -- nosy: +Vishal.Lal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12933 ___ ___

[issue19610] setup.py does not allow a tuple for classifiers

2014-03-26 Thread Éric Araujo
Éric Araujo added the comment: You seem to misunderstand me Victor: There is no bug here, classifiers should be a list and are documented as such. It is possible to make this clearer in the docs for all versions. In addition, we could make this easier for users who don’t see that part of

[issue21035] Python's HTTP server implementations hangs after 16.343 requests on MacOSX

2014-03-26 Thread Ned Deily
Ned Deily added the comment: I believe Ronald's suggestion to disable calls to _scproxy doesn't quite work. Please try this instead: env no_proxy='*' python -m SimpleHTTPServer -- ___ Python tracker rep...@bugs.python.org

[issue21072] Python docs and downloads not available for Egypt

2014-03-26 Thread Leo Butcher
New submission from Leo Butcher: I can't seem to access docs.python.org, mail.python.org, or even legacy.python.org from my ISP in Egypt LinkDotNet the usual dynamic IP range is 41.130.xx.xx please tell me if you need any further info -- assignee: docs@python components: Documentation

[issue21069] urllib unit tests failing without ssl module

2014-03-26 Thread Daniel Farrell
Daniel Farrell added the comment: Interestingly, using the configure/make/test options given in the devguide doesn't show these failures, but running on the exact same codebase (`hg checkout v3.4.0`) with the configure/make/test options in the README consistently shows them. That seems...not

[issue21069] urllib unit tests failing without ssl module

2014-03-26 Thread R. David Murray
R. David Murray added the comment: Network tests are only run if the 'network' resource is enabled. The devguide does not suggest setting network, but make test does do so. (I personally always use -uall when running the tests). -- ___ Python

[issue21073] Py_ReprEnter potentially misbehaves during malformed thread states

2014-03-26 Thread Itai Bar-Natan
New submission from Itai Bar-Natan: While browsing the Python source code, I found this suspicious snippet in Py_ReprEnter: dict = PyThreadState_GetDict(); if (dict == NULL) return 0; It seems to me like the last line should be return -1;. The way the program currently

[issue17621] Create a lazy import loader mixin

2014-03-26 Thread Eric Snow
Eric Snow added the comment: I wonder if there would be any benefit to using this for some of the modules that get loaded during startup. I seem to remember there being a few for which lazy loading would have an effect. -- ___ Python tracker

[issue17621] Create a lazy import loader mixin

2014-03-26 Thread Eric Snow
Eric Snow added the comment: New review posted. Basically LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17621 ___ ___ Python-bugs-list

[issue21072] Python docs and downloads not available for Egypt

2014-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: What is the mode of failure? (what does traceroute give?) -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21072 ___

[issue21069] urllib unit tests failing without ssl module

2014-03-26 Thread Daniel Farrell
Daniel Farrell added the comment: Running the unit tests against the latest code (`hg clone url; ./configure; make; make test`) shows the same errors I described earlier. Patching the code with issue20939_all_3x.patch fixes all related errors except one.

[issue21069] urllib unit tests failing without ssl module

2014-03-26 Thread Daniel Farrell
Daniel Farrell added the comment: Note that issue21069.patch depends on issue20939_all_3x.patch (if that wasn't clear). [~/cpython]$ hg import issue20939_all_3x.patch applying issue20939_all_3x.patch patching file Lib/test/test_urllib2.py Hunk #1 succeeded at 1447 with fuzz 1 (offset 6 lines).

[issue20942] _frozen_importlib should not have a __file__ attribute

2014-03-26 Thread Eric Snow
Eric Snow added the comment: Review posted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20942 ___ ___ Python-bugs-list mailing list

[issue21072] Python docs and downloads not available for Egypt

2014-03-26 Thread Leo Butcher
Leo Butcher added the comment: Here is traceroute docs.python.org output traceroute to docs.python.org (82.94.164.162), 30 hops max, 60 byte packets 1 192.168.1.1 (192.168.1.1) 0.599 ms 0.955 ms 1.306 ms 2 * * * 3 172.18.1.157 (172.18.1.157) 10.235 ms 11.689 ms 12.875 ms 4

[issue21074] Too aggressive constant folding

2014-03-26 Thread INADA Naoki
New submission from INADA Naoki: When I run following script: def uncalled(): x = b'x' * (2**32) print('Hello') Python 3.4 consumes huge memory in spite of uncalled() function isn't called. $ /usr/bin/time -l /usr/local/bin/python2 constant_folding.py Hello 0.02 real 0.01

[issue21072] Python docs and downloads not available for Egypt

2014-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: I guess that means the IP traffic is getting out. How do you know its failing? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21072 ___

[issue21074] Too aggressive constant folding

2014-03-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21074 ___ ___ Python-bugs-list mailing

[issue20578] BufferedIOBase.readinto1 is missing

2014-03-26 Thread Nikolaus Rath
Nikolaus Rath added the comment: I have attached a patch that adds readinto1() to BufferedReader and BufferedRWPair. An example use case for this method is receiving a large stream over a protocol like HTTP. You want to use a buffered reader so you can efficiently parse the header, but after

[issue20578] BufferedIOBase.readinto1 is missing

2014-03-26 Thread Nikolaus Rath
Changes by Nikolaus Rath nikol...@rath.org: -- nosy: +benjamin.peterson, hynek, stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20578 ___

[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-26 Thread Nikolaus Rath
Nikolaus Rath added the comment: As an alternative, I have attached a pure docpatch that just documents the future behavior. Someone with commit privileges: please take your pick :-). -- Added file: http://bugs.python.org/file34633/docpatch.diff

[issue21074] Too aggressive constant folding

2014-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Note the memory is allocated but is immediately thrown away. -- nosy: +benjamin.peterson priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21074

[issue21072] Python docs and downloads not available for Egypt

2014-03-26 Thread Leo Butcher
Leo Butcher added the comment: I tried different browsers/systems I can just get in with abroad VPN connection -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21072 ___

[issue21074] Too aggressive constant folding

2014-03-26 Thread eryksun
eryksun added the comment: The redesigned peephole optimizer in PY3 improves constant folding. Limiting this would be a step back. Plus you can get the same behavior in PY2 if you first expand the power. For example: # using 2**30, for a 32-bit process def uncalled(): x =

[issue21072] Python docs and downloads not available for Egypt

2014-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: It's hard for me to do anything without more specific information. Maybe you can try the devtools on your browser. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21072

[issue8297] AttributeError message text should include module name

2014-03-26 Thread Ethan Furman
Ethan Furman added the comment: Mostly new patch against 3.5 -- Added file: http://bugs.python.org/file34634/issue8297.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8297

<    1   2