[issue21045] fix layout to generate documentation for Qt Assistant

2014-03-26 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the report! -- nosy: +georg.brandl resolution: fixed - stage: committed/rejected - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21045

[issue21045] fix layout to generate documentation for Qt Assistant

2014-03-26 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21045 ___

[issue21067] Support Multiple finally clauses.

2014-03-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: If you think this should go forward please discuss it on the python-ideas list. For it to go forward a PEP will likely need to be written. I concur with this assessment. Marking this as closed. -- nosy: +rhettinger resolution: - rejected

[issue21069] urllib unit tests failing without ssl module

2014-03-26 Thread Daniel Farrell
New submission from Daniel Farrell: I'm seeing quite a few unit test failures in urllib (urlopen error unknown url type: https). From what I've gathered on IRC, this seems to be because I'm missing the ssl module. I'm seeing these errors in 3.4.0, after a simple `./configure; make; make

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-03-26 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: If it is planned to support BSD make, then partial rewrite of patches will be needed. Example of syntax of GNU make: ifeq (something,something) … endif Example of syntax of FreeBSD make: .if ${variable}==something … .endif --

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-03-26 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: According to koobs, building of CPython with FreeBSD make works at least with -j1 (and sporadically fails with higher value). -- ___ Python tracker rep...@bugs.python.org

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-03-26 Thread koobs
koobs added the comment: More precisely: Python 3.3 fails at anything -j1 (switching to gmake makes this go away) Python 3.4 has not failed up to -j8 (with bsd make) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If someone is willing to do the work (and I am), is there a reason *not* to allow TextIOWrapper to accept bytes-like objects? Yes, there are. The code which works only with bytes is much simpler. Not only TextIOWrapper, but many other classes in the stdlib

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)-gc.gc_refs (1)) != 0' failed.

2014-03-26 Thread STINNER Victor
STINNER Victor added the comment: I encounter a quite similar issue with python 3.4.0 and cx_Oracle. Your issue is different, compare the top frames: My trace: #0 0x003f3a835c59 in raise () from /lib64/libc.so.6 #1 0x003f3a837368 in abort () from /lib64/libc.so.6 #2

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-03-26 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou wrote: I don't really like the idea of complicating our build tools even more. Can't you simply prune the install tree yourself? In the embedded world, the (cross) compilation process is very complex and slow. Being able to disable features

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

2014-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I vote -1 to adding a new flag to control whether it returns zero or raises and +0 to just fixing it in Python 3.5 (I don't think returning zero is an unreasonable thing to do; it's not obvious to me from send(2) that it is guaranteed to never return zero

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)-gc.gc_refs (1)) != 0' failed.

2014-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: In cx_Oracle trace, visit_decref() is called on a NULL pointer which comes from an Exception. Unless C conventions changed, 0xb is not a NULL pointer :-) -- ___ Python tracker rep...@bugs.python.org

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-03-26 Thread STINNER Victor
STINNER Victor added the comment: 2014-03-26 0:35 GMT+01:00 Antoine Pitrou rep...@bugs.python.org: - they are immutable: you can keep an internal reference to a bytes object and be sure it won't change under your feet Is it possible to request this feature using PyObject_GetBuffer()? I don't

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Antoine Pitrou wrote: I don't really like the idea of complicating our build tools even more. Can't you simply prune the install tree yourself? In the embedded world, the (cross) compilation process is very complex and slow. Being able to disable features

[issue20210] Provide configure options to enable/disable Python modules and extensions

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

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-03-26 Thread STINNER Victor
STINNER Victor added the comment: class MyByteStream(BytesIO): def read1(self, len_): return memoryview(super().read(len_)) bs = MyByteStream(b'some data in ascii\n') I guess that you are trying to implement a zero-copy I/O. The problem is that BytesIO does copy data. Example:

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)-gc.gc_refs (1)) != 0' failed.

2014-03-26 Thread STINNER Victor
STINNER Victor added the comment: Unless C conventions changed, 0xb is not a NULL pointer :-) Ooops, I missed the B :-) By the way, my gdb example is wrong: you should pass self :-) #1 0x0048193a in BaseException_traverse (self=0x70f645f8, visit=0x43ab64 visit_decref,

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-26 Thread Larry Hastings
Larry Hastings added the comment: (And hooray for that, given the meteoric rise of AtheOS. :| ) I'm going to go way out on a limb and say that Guido hasn't made a pronouncement here. Also, the discussions cited by Martin are about entire new platforms (AtheOS, Haiku), whereas what we're

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-03-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm +1 on the general idea, but -1 on the implementation strategy used. Instead of coming up with configure options for selected (apparently problematic) modules, I'd like to see a solution that covers *all* extension modules. One approach could be to

[issue21069] urllib unit tests failing without ssl module

2014-03-26 Thread R. David Murray
R. David Murray added the comment: What makes you think this is a different issue? It sounds like a duplicate to me. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21069

[issue21069] urllib unit tests failing without ssl module

2014-03-26 Thread R. David Murray
R. David Murray added the comment: Ah, in case I wasn't clear: what unittest failures that you are seeing are not covered by issue 20939? In order to diagnose this issue, we'll need to know that :) -- ___ Python tracker rep...@bugs.python.org

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-03-26 Thread Nikolaus Rath
Nikolaus Rath added the comment: On 03/26/2014 03:43 AM, STINNER Victor wrote: class MyByteStream(BytesIO): def read1(self, len_): return memoryview(super().read(len_)) bs = MyByteStream(b'some data in ascii\n') I guess that you are trying to implement a zero-copy I/O. The

[issue20062] Remove emacs page from devguide

2014-03-26 Thread Albert Looney
Changes by Albert Looney aloo...@capital.edu: Removed file: http://bugs.python.org/file34503/index.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20062 ___

[issue16043] xmlrpc: gzip_decode has unlimited read()

2014-03-26 Thread jan matejek
Changes by jan matejek jmate...@suse.cz: -- nosy: +matejcik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___ ___ Python-bugs-list mailing

[issue21069] urllib unit tests failing without ssl module

2014-03-26 Thread Daniel Farrell
Daniel Farrell added the comment: Ah, in case I wasn't clear: what unittest failures that you are seeing are not covered by issue 20939? The unit test failures I'm seeing are different in at least two ways: 1) A larger set of tests failing than mentioned in Issue 20939; 2) Their failure was

[issue21069] urllib unit tests failing without ssl module

2014-03-26 Thread R. David Murray
R. David Murray added the comment: Well, I just looked at one of those tests at random, and it is using an http://www.python.org url, so it would be covered by 20939. Can you re-run your tests after applying the patches from that issue? -- ___

[issue21070] test_xmlrpc waits forever instead of reporting failure

2014-03-26 Thread jan matejek
New submission from jan matejek: Testcases derived from BaseServerTestCase will launch a server process in a separate thread. This server will shut itself down after handling a specified number of requests. If the test case fails before performing enough requests, the server thread will

[issue21070] test_xmlrpc waits forever instead of reporting failure

2014-03-26 Thread jan matejek
Changes by jan matejek jmate...@suse.cz: -- versions: -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21070 ___ ___

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

2014-03-26 Thread Zbyszek Jędrzejewski-Szmek
New submission from Zbyszek Jędrzejewski-Szmek: In Python 2, Struct.format used to be a str. In Python 3 it is bytes, which is unexpected. Why do I expect .format to be a string: - This format is pretty much the same as a {}-format - plain text - according to documentation it is composed of

[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