[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x
Serhiy Storchaka added the comment: It looks as bz2 in Python 3.3 has bad buffering. Reading by larger chunks shows the same speed in 2.7 and 3.3. -- components: +Library (Lib) -None nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16034 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x
Serhiy Storchaka added the comment: Well, I was able to restore performance (using same code as in zipfile). The patch will be later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16034 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x
Victor Hooi added the comment: Hi, I didn't have any buffering size set before, so I believe it defaults to 0 (no buffering), right? Wouldn't this be the behaviour on both 2.x and 3.x? I'm using a 1.5 Mb bzip2 file - I just tried setting buffering to 1000 and 100, and it didn't seem to make any noticeable difference to the speed of reading in the file. E.g.: f = bz2.BZ2File(filename, 'rb', buffering=100) What sort of values did you use in relation to your compressed file size to get the improvements? Cheers, Victor -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16034 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x
Victor Hooi added the comment: Hi, Aha, whoops, sorry Serhiy, didn't see your second message - I think you and I posted our last messages at nearly the same time... Cool, looking forward to your patch =). Also, is there any chance you could provide a more detailed explanation of what's going on? This is just me being curious about how it all works under the hood... Cheers, Victor -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16034 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16032] IDLE 3.2 is crashing multiple times
Omanand Jha Vatsa added the comment: I have tried re-installing to 8.5.11.1. Still same issue. I am on Mac OSX 10.7.4 version. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16032] IDLE 3.2 is crashing multiple times
Ned Deily added the comment: Odd, it works for me. Check to make sure it really got installed: $ cd /Library/Frameworks/Tk.framework/ $ grep PATCH tkConfig.sh TK_PATCH_LEVEL='.11' You could manually delete the frameworks and try installing again: $ cd /Library/Frameworks $ sudo rm -r ./Tcl.framework $ sudo rm -r ./Tk.framework -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)
Mark Dickinson added the comment: Updated patch, which also fixes issue 16030. It needs more tests. -- Added file: http://bugs.python.org/file27289/xrange_reduce_repr.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16029 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16013] small csv reader bug
Serhiy Storchaka added the comment: Here is a test. -- Added file: http://bugs.python.org/file27290/csv_eof_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16023] IDLE froze when typing ctrl-shift-5
Zellmeyer added the comment: I used OSX 10.8.2 build 12C54 on both Macbookair and iMac I have ActiveState TCL installed 8.5 Ctrl-shift-5 does not correspond to a special character on my keyboard layout. But i discovered that this combination open a window called tab width in the IDLE shell and the crash appears then the combination is done in a script window of IDLE -- Added file: http://bugs.python.org/file27291/Capture d’écran 2012-09-25 à 09.24.35.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16023 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x
Serhiy Storchaka added the comment: Cool, looking forward to your patch =). It will take some time to make a completed patch. I don't have much time *right* now. Wait for a few hours. Also, is there any chance you could provide a more detailed explanation of what's going on? This is just me being curious about how it all works under the hood... When reading from the buffer bz2 does: result = buffer[:size] buffer = buffer[size:] # copy a thousands bytes zipfile does: result = buffer[offset:offset+size] offset += size # buffer untouched -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16034 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8425] a -= b should be fast if a is a small set and b is a large set
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file27293/bench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8425] a -= b should be fast if a is a small set and b is a large set
Michele Orrù added the comment: Updated. tumbolandia:cpython maker$ hg import --no-commit -f issue8425.2.patch make -j3 /dev/null 2/dev/null sto applicando issue8425.2.patch tumbolandia:cpython maker$ ./python.exe bench.py starting... setting up tests... testing... big_timer_no_intersection 0.000546158852762 big_timer_subtraction 382.0618862710003 small_timer 0.0034195990001535392 big_timer 603.510513244 std_timer_subtraction 0.000686513778934 big_timer_reversed 292.4404268074 std_timer 8.092500047496287e-05 [44705 refs] tumbolandia:cpython maker$ hg co -C make -j3 /dev/null 2/dev/null1 files updated, 0 files merged, 0 files removed, 0 files unresolved tumbolandia:cpython maker$ ./python.exe bench.py starting... setting up tests... testing... big_timer_subtraction 611.292889542 big_timer 465.6846392586 small_timer 0.00261835360109 big_timer_reversed 256.5112134430001 std_timer 0.00011092699969594833 big_timer_no_intersection 0.0005648139995173551 std_timer_subtraction 2.861284273945e-05 [44705 refs] -- Added file: http://bugs.python.org/file27292/issue8425.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16013] small csv reader bug
Senthil Kumaran added the comment: The patch looks good and is doing the right thing, that is, when the, strict mode is passed, it fails and without strict mode, it is printing the parsed list. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16015] Incorrect startup header in tutorial
Ezio Melotti added the comment: OK. If you change the date also change s/py3k/default/, py3k was used on the SVN days. Here is what my header looks like: $ python3 Python 3.2.3 (default, May 3 2012, 15:54:42) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. While you are at it, you could also add .. code-block:: sh. -- stage: needs patch - type: enhancement - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16035] Segmentation fault in test suite of apsw
New submission from Arfrever Frehtes Taifersar Arahesis: The fix for issue #13992 introduced segmentation fault in test suite of apsw (http://code.google.com/p/apsw/) (with Python 2.7, 3.2 and 3.3). $ python2.7 setup.py build running build running build_ext SQLite: Using system sqlite include/libraries building 'apsw' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src x86_64-pc-linux-gnu-gcc -pthread -DNDEBUG -O2 -fPIC -DEXPERIMENTAL=1 -DNDEBUG=1 -DAPSW_FORK_CHECKER=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -Isrc -I/usr/include/python2.7 -c src/apsw.c -o build/temp.linux-x86_64-2.7/src/apsw.o In file included from /usr/include/python2.7/Python.h:8:0, from src/apsw.c:73: /usr/include/python2.7/pyconfig.h:1161:0: warning: _POSIX_C_SOURCE redefined [enabled by default] /usr/include/features.h:215:0: note: this is the location of the previous definition creating build/lib.linux-x86_64-2.7 x86_64-pc-linux-gnu-gcc -pthread -shared -O2 build/temp.linux-x86_64-2.7/src/apsw.o -L/usr/lib64 -lsqlite3 -lpython2.7 -o build/lib.linux-x86_64-2.7/apsw.so $ PYTHONPATH=build/lib.linux-x86_64-2.7 python2.7 tests.py -v Python /usr/bin/python2.7 sys.version_info(major=2, minor=7, micro=4, releaselevel='alpha', serial=0) Testing with APSW file /tmp/apsw-3.7.14-r1/build/lib.linux-x86_64-2.7/apsw.so APSW version 3.7.14-r1 SQLite lib version 3.7.14 SQLite headers version 3007014 Using amalgamation False testAggregateFunctions (__main__.APSW) Verify aggregate functions ... Segmentation fault -- messages: 171236 nosy: Arfrever, benjamin.peterson, georg.brandl, pitrou priority: release blocker severity: normal status: open title: Segmentation fault in test suite of apsw versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16013] small csv reader bug
Roundup Robot added the comment: New changeset e9c005676d6e by Senthil Kumaran in branch '3.2': Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/e9c005676d6e New changeset 25f0756deeae by Senthil Kumaran in branch 'default': merge 3.2: Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/25f0756deeae -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16013] small csv reader bug
Roundup Robot added the comment: New changeset 5f0465d0e91e by Senthil Kumaran in branch '2.7': 2.7 : Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/5f0465d0e91e -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16036] simplify int() signature docs
New submission from Chris Jerdonek: This issue is to simplify the documentation of the built-in function int()'s signature: int([number | string[, base]]) and to make any needed changes to the text of the docs as a consequence. Discussion around this issue began in the comments to issue 14783 about int() and str()'s docstrings. [I copied the nosy list from that issue.] -- assignee: docs@python components: Documentation keywords: easy messages: 171238 nosy: chris.jerdonek, cvrebert, docs@python, eric.araujo, ezio.melotti, georg.brandl, rhettinger, storchaka, terry.reedy, tshepang priority: normal severity: normal status: open title: simplify int() signature docs type: enhancement versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16036 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14783] Make int() and str() docstrings correct
Chris Jerdonek added the comment: To make it easier to make progress on this docstring issue, I created issue 16036 to focus on int()'s reST documentation. (I have a comment on that aspect.) This will allow the current issue to focus on the docstring aspect. -- nosy: +chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14783 ___ ___ 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
New submission from Christian Heimes: The httplib module / package can read arbitrary amounts of data from its socket when it's parsing the HTTP header. This may lead to issues when a user connects to a broken HTTP server or something that isn't a HTTP at all. The issue can be broken up into two parts: parsing the HTTP status line parsing and parsing the remaining HTTP headers. Reading and parsing of the HTTP status line is already limited in Python 3.x. Python 2.7 and lower may read arbitrary amounts of bytes from the socket until it finds a newline char. The small patch below is a backport of the Python 3.x behavior to 2.7: --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -362,7 +362,9 @@ def _read_status(self): # Initialize with Simple-Response defaults -line = self.fp.readline() +line = self.fp.readline(_MAXLINE + 1) +if len(line) _MAXLINE: +raise LineTooLong(header line) if self.debuglevel 0: print reply:, repr(line) if not line: Both Python 2 and Python 3 accept an unlimited count of HTTP headers with a maximum length of 64k each. As headers are accumulated in an list it may consume lots of memory. I suggest that we limit the maximum amount of HTTP header lines to a sane value. How does 100 sound to you? -- components: Library (Lib) messages: 171240 nosy: christian.heimes priority: normal severity: normal status: open title: httplib: header parsing is not delimited type: resource usage versions: Python 2.7, Python 3.2, Python 3.3 ___ 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
[issue16038] ftplib: unlimited readline() from connection
New submission from Christian Heimes: This bug is similar to #16037. The ftplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious FTP server can trick the ftplib module to consume large amounts of memory. Suggestion: The ftplib module should be modified to use limited readline() with _MAXLINE like the httplib module. -- components: Library (Lib) messages: 171241 nosy: christian.heimes priority: normal severity: normal status: open title: ftplib: unlimited readline() from connection type: resource usage versions: Python 2.7, Python 3.2, Python 3.3 ___ 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
[issue16039] imaplib: unlimited readline() from connection
New submission from Christian Heimes: This bug is similar to #16037 and a modified copy of #16038. The imaplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious IMAP server can trick the imaplib module to consume large amounts of memory. Suggestion: The imaplib module should be modified to use limited readline() with _MAXLINE like the httplib module. -- components: Library (Lib) messages: 171242 nosy: christian.heimes priority: normal severity: normal status: open title: imaplib: unlimited readline() from connection type: resource usage ___ 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
[issue16040] nntplib: unlimited readline() from connection
New submission from Christian Heimes: This bug is similar to #16037 and a modified copy of #16038. The nntplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious news server can trick the nntplib module to consume large amounts of memory. Suggestion: The nntplib module should be modified to use limited readline() with _MAXLINE like the httplib module. -- components: Library (Lib) messages: 171243 nosy: christian.heimes priority: normal severity: normal status: open title: nntplib: unlimited readline() from connection type: resource usage versions: Python 2.7, Python 3.2, Python 3.3 ___ 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
[issue16041] poplib: unlimited readline() from connection
New submission from Christian Heimes: This bug is similar to #16037 and a modified copy of #16038. The poplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious POP3 server can trick the poplib module to consume large amounts of memory. Suggestion: The poplib module should be modified to use limited readline() with _MAXLINE like the httplib module. -- components: Library (Lib) messages: 171244 nosy: christian.heimes priority: normal severity: normal status: open title: poplib: unlimited readline() from connection type: resource usage versions: Python 2.7, Python 3.2, Python 3.3 ___ 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
[issue16042] smtplib: unlimited readline() from connection
New submission from Christian Heimes: This bug is similar to #16037 and a modified copy of #16038. The smtplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious SMTP server can trick the smtplib module to consume large amounts of memory. Suggestion: The smtplib module should be modified to use limited readline() with _MAXLINE like the httplib module. -- components: Library (Lib) messages: 171245 nosy: christian.heimes priority: normal severity: normal status: open title: smtplib: unlimited readline() from connection type: resource usage versions: Python 2.7, Python 3.2, Python 3.3 ___ 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
[issue16043] xmlrpc: gzip_decode has unlimited read()
New submission from Christian Heimes: The xmlrpc client library is the only stdlib module that has a gzip decompression handler for compressed HTTP streams. The gzip_decode() function decompresses HTTP bodies that are compressed and sent with Accept-Encoding: x-gzip. A malicious server can send a specially prepared HTTP request that can consume lots of memory. For example 1 GB of \0 bytes is less than 1 MB of gzip data. Suggestion: The gzip_decode() should only decode a sane amount of bytes (for example 50 MB) and raise an exception when more data is to be read. -- components: Library (Lib) messages: 171246 nosy: christian.heimes priority: normal severity: normal status: open title: xmlrpc: gzip_decode has unlimited read() type: resource usage versions: Python 2.7, Python 3.2, Python 3.3 ___ 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
[issue16043] xmlrpc: gzip_decode has unlimited read()
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ 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
[issue16043] xmlrpc: gzip_decode has unlimited read()
Christian Heimes added the comment: Also see #15955 According to Nadeem it's not (easily) possible to detect how large the output is going to be. -- dependencies: +gzip, bz2, lzma: add method to get decompressed size ___ 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
[issue15955] gzip, bz2, lzma: add method to get decompressed size
Christian Heimes added the comment: I've checked the implementation of the gzip command. It uses some tricks to get the result size of a compressed file. The bzip2 command doesn't have the ability. lzmainfo can print the actual size of the file but it says Unknown for my test file. Also see #16043 why this would be a useful feature. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16035] Segmentation fault in test suite of apsw
Changes by Georg Brandl ge...@python.org: -- assignee: - pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16035] Segmentation fault in test suite of apsw
Georg Brandl added the comment: Can you provide a stacktrace? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035 ___ ___ 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
Roundup Robot added the comment: New changeset 8a22a2804a66 by Christian Heimes in branch '2.7': Issue #16037: Limit httplib's _read_status() function to work around broken http://hg.python.org/cpython/rev/8a22a2804a66 -- nosy: +python-dev ___ 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
[issue16037] httplib: header parsing is not delimited
Christian Heimes added the comment: The readline() limitation in _read_status() was added at some point in the 3.2 line. Python 3.1 has an unlimited readline(). -- ___ 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
[issue16015] Incorrect startup header in tutorial
Roundup Robot added the comment: New changeset d2df5bc89fc9 by Chris Jerdonek in branch '3.2': Issue #16015: Make welcome message more realistic in tutorial example. http://hg.python.org/cpython/rev/d2df5bc89fc9 New changeset fcb5bc824e3e by Chris Jerdonek in branch 'default': Issue #16015: Merge and update from 3.2. http://hg.python.org/cpython/rev/fcb5bc824e3e -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16015] Incorrect startup header in tutorial
Chris Jerdonek added the comment: Fixed, and thanks for the report! (Ezio, I didn't add code-block:: sh because it resulted in some undesired highlighting in the interpreter portion when I tried it.) -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16035] Segmentation fault in test suite of apsw
Antoine Pitrou added the comment: I can't build apsw here: gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DEXPERIMENTAL=1 -DNDEBUG=1 -DAPSW_FORK_CHECKER=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -Isrc -I/home/antoine/opt/include/python3.3m -c src/apsw.c -o build/temp.linux-x86_64-3.3/src/apsw.o src/apsw.c:62:2: erreur: #error Your SQLite version is too old. It must be at least 3.7.13 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken
New submission from kirpit: xml.etree.ElementTree.Element's append method doesn't support iterator/sequence parameters as it's supposed to, for the version 1.3.0. Python 2.7.3 (default, Sep 14 2012, 09:52:31) [GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on darwin Type help, copyright, credits or license for more information. import xml.etree.ElementTree as et et.VERSION '1.3.0' root = et.Element('root') sublist = [et.Element('sub'), et.Element('sub')] root.append(sublist) et.tostring(root) Traceback (most recent call last): File stdin, line 1, in module File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py, line 1127, in tostring ElementTree(element).write(file, encoding, method=method) File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py, line 818, in write self._root, encoding, default_namespace File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py, line 878, in _namespaces for elem in iterate(): File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py, line 477, in iter for e in e.iter(tag): AttributeError: 'list' object has no attribute 'iter' root = et.Element('root') root.append(iter(sublist)) et.tostring(root) Traceback (most recent call last): File stdin, line 1, in module File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py, line 1127, in tostring ElementTree(element).write(file, encoding, method=method) File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py, line 818, in write self._root, encoding, default_namespace File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py, line 878, in _namespaces for elem in iterate(): File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py, line 477, in iter for e in e.iter(tag): AttributeError: 'listiterator' object has no attribute 'iter' -- assignee: ronaldoussoren components: Macintosh, XML messages: 171255 nosy: kirpit, ronaldoussoren priority: normal severity: normal status: open title: xml.etree.ElementTree.Element: append method iterator param is broken type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16044 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken
Ronald Oussoren added the comment: (unassigning as this is not a mac-specific issue) BTW. Is this really a bug, the documentation says that append appends a single element http://docs.python.org/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.append: quote append(subelement) Adds the element subelement to the end of this elements internal list of subelements. /quote -- assignee: ronaldoussoren - nobody nosy: +nobody ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16044 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15955] gzip, bz2, lzma: add option to limit output size
Antoine Pitrou added the comment: You don't need to know the final size. You just need to be able to pass an output size limit. This would be an easy feature to add to functions like zlib.decompress(), since they already handle sizing of the output buffer. -- nosy: +pitrou title: gzip, bz2, lzma: add method to get decompressed size - gzip, bz2, lzma: add option to limit output size ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___ ___ 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
Antoine Pitrou added the comment: 100 headers sounds more than enough for everybody. -- nosy: +pitrou ___ 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
[issue16036] simplify int() signature docs
Chris Jerdonek added the comment: [Continuing the issue 14783 discussion] That said, I don't have a strong opinion about this, so if people think that x should be used, it's fine with me. I also feel that *x* should be used, since that is what the code enforces. I'm attaching a revised patch. This patch also makes related adjustments to the corresponding text. -- keywords: +needs review, patch stage: - patch review Added file: http://bugs.python.org/file27294/issue-16036-1-default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16036 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken
kirpit added the comment: well, i've just followed the source code regardless to documentation so you may be right about appending a single element. (kind of newbie around here.) but then, append method is misbehaving about asserting the parameter, isn't it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16044 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10980] http.server Header Unicode Bug
Changes by Antoine Pitrou pit...@free.fr: -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10980 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken
Ronald Oussoren added the comment: Use the extend method to add multiple elements. Both the source and documentation indicate that 'append' is used for appending a single item and 'extend' for appending multiple items (just like with list). IMHO this is not a bug. As an aside: when you import xml.etree.cElementTree you get a faster implementation of the same interface, and this (C-based) implementation does validate arguments. -- resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16044 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2126] BaseHTTPServer.py fails long POST from IE
Antoine Pitrou added the comment: Reading the original issue: it appears that IE is sending 2 extra bytes ('\r\n') after the request data. and if you don't read those two extra bytes off, the window's socket handling gets messed up. the result is that a partial response is returned and the socket closed. IE tries to recover by re-POST'ing (which is behavior specified in the HTTP/1.1 RFC)... only they seem to add an embedded NULL the second time through, and the original socket problem happens again anyway. ... I have a hard time believing IE is still broken today. I'd rather close this issue, please re-open if you can reproduce with a recent IE. -- nosy: +pitrou resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2126 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl
Antoine Pitrou added the comment: The example URL doesn't seem to work anymore. Do you have another example to test with? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14044 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14414] xmlrpclib leaves connection in broken state if server returns error without content-length
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +flox, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13403] Option for XMLPRC Server to support HTTPS
Antoine Pitrou added the comment: Note there's already a couple of HTTPS servers in Lib/test/ssl_servers.py. I'm not sure there's anything special to do for XMLRPC except to take the core instantiation code and put it in xmlrpclib. -- nosy: +flox, loewis, pitrou stage: - needs patch versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13403 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)
Mark Dickinson added the comment: Patch with tests. -- components: +Interpreter Core -Library (Lib) stage: needs patch - commit review Added file: http://bugs.python.org/file27295/xrange_reduce_repr_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16029 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16030] xrange repr broken for large arguments
Mark Dickinson added the comment: The patch for issue #16029 fixes this issue, too. -- components: +Interpreter Core -Library (Lib) dependencies: +pickle.dumps(xrange(sys.maxsize)) produces xrange(0) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16030 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16025] Minor corrections to the zipfile documentation
Chris Jerdonek added the comment: - :meth:`close`\ d without adding any files to the archive, the appropriate + :meth:`close close`\ d without adding any files to the archive, the appropriate This formatting looks odd to me when rendered (both cases). I would perhaps suggest something like, ... and then close() is called without -- nosy: +chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data
Antoine Pitrou added the comment: We had support for chunked transfer encoding for POST method recently, which is exposed via urllib2 wrapper function. I couldn't find what you're talking about. If I look at AbstractHTTPHandler.do_request_, it actually mandates a Content-Length header for POST data (hence no chunked encoding). -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12319 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)
Mark Dickinson added the comment: Whoops; there's no need to iterate over pickle protocols in test_repr. New patch. -- Added file: http://bugs.python.org/file27296/xrange_reduce_repr_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16029 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16045] create some unit tests for built-in int()
New submission from Chris Jerdonek: The built-in function int() does not seem to have any basic unit tests (e.g. in test_builtin). It would be good to add some. Some cases (including edge cases) for possible inclusion: int() int(base='foo') # no exception; returns 0 int(x=5) int(x=5, base=10) # raises TypeError int(5.8) # test truncation towards zero int(-5.8) # ditto int('5.8') # raises ValueError Both positional and keyword argument combinations should be tested. -- components: Library (Lib) keywords: easy messages: 171270 nosy: chris.jerdonek, ezio.melotti priority: normal severity: normal status: open title: create some unit tests for built-in int() type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16045 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2600] BindingHTTPConnectionWithTimeout and BindingHTTPHandlerWithTimeout
Antoine Pitrou added the comment: HTTPConnection now supports timeout and source_address parameters, so this is really out of date. Thanks for reporting, though! (see http://docs.python.org/dev/library/http.client.html#http.client.HTTPConnection) -- nosy: +pitrou resolution: - out of date stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2600 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16027] pkgutil doesn't support frozen modules
Changes by Brett Cannon br...@python.org: -- versions: +Python 3.4 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16045] create some unit tests for built-in int()
Antoine Pitrou added the comment: Well, have you looked at test_int? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16045 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16027] pkgutil doesn't support frozen modules
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16045] create some unit tests for built-in int()
Chris Jerdonek added the comment: Thanks for the pointer. That should do it. :) Searching for test_int( completely missed test_int.py. -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16045 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16045] add more unit tests for built-in int()
Chris Jerdonek added the comment: [Reopening] Actually, there may still be value in this. Not all of the edge cases I mentioned are covered (e.g. calling using keyword arguments). -- resolution: invalid - stage: committed/rejected - test needed status: closed - open title: create some unit tests for built-in int() - add more unit tests for built-in int() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16045 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16045] add more unit tests for built-in int()
Chris Jerdonek added the comment: We should also add a code-comment pointer in test_builtin to test_int (where test_int() would be located). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16045 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16046] python -O does not find *.pyo files
New submission from Marco Buttu: $ echo print(__file__) foo.py $ python3.3 -O -m foo /home/marco/temp/foo.py $ ls foo.py __pycache__ $ rm foo.py $ mv __pycache__/foo.cpython-33.pyo foo.pyo $ rm __pycache__ -r $ ls foo.pyo # The following works in Python3.2, but not in Python 3.3.0rc3 $ python3.3 -O -m foo /usr/local/bin/python3.3: No module named foo -- components: Interpreter Core messages: 171276 nosy: mbuttu priority: normal severity: normal status: open title: python -O does not find *.pyo files versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16046] python -O does not find *.pyo files
Changes by Marco Buttu marco.bu...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16027] pkgutil doesn't support frozen modules
Marc-Andre Lemburg added the comment: Here's the fix we're applying in pyrun to make -m imports work at least for top-level modules: --- /home/lemburg/orig/Python-2.7.3/Lib/pkgutil.py 2012-04-10 01:07:30.0 +0200 +++ pkgutil.py 2012-09-24 22:53:30.982526065 +0200 @@ -273,10 +273,21 @@ class ImpLoader: def is_package(self, fullname): fullname = self._fix_name(fullname) return self.etc[2]==imp.PKG_DIRECTORY def get_code(self, fullname=None): +if self.code is not None: +return self.code +fullname = self._fix_name(fullname) +mod_type = self.etc[2] +if mod_type == imp.PY_FROZEN: +self.code = imp.get_frozen_object(fullname) +return self.code +else: +return self._get_code(fullname) + +def _get_code(self, fullname=None): fullname = self._fix_name(fullname) if self.code is None: mod_type = self.etc[2] if mod_type==imp.PY_SOURCE: source = self.get_source(fullname) This makes runpy work for top-level frozen modules, but it's really only partial solution, since pkgutil would need to get such support in more places. We also found that for some reason, runpy/pkgutil does not work for frozen package imports, e.g. wsgiref.util. The reasons for this appear to be deeper than just in the pkgutil module. We don't have a solution for this yet. It is also not clear whether the problem still exists in Python 3.x. The __path__ attribute of frozen modules was changed in 3.0 to be a list like for all other modules, however, applying that change to 2.x lets runpy/pkgutil fail altogether (not even the above fix works anymore). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16046] python -O does not find *.pyo files
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +3.3regression nosy: +brett.cannon, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16035] Segmentation fault in test suite of apsw
Stefan Krah added the comment: I don't get a segfault, but a fatal error. Here's the back trace (unfortunately I've no time to debug this further today; sqlite is the latest version compiled from source): #0 0x771e6a75 in *__GI_raise (sig=value optimized out) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x771ea5c0 in *__GI_abort () at abort.c:92 #2 0x005076a0 in Py_FatalError (msg=0x652a88 PyThreadState_Get: no current thread) at Python/pythonrun.c:2360 #3 0x00500a67 in PyThreadState_Get () at Python/pystate.c:423 #4 0x0043211f in tupledealloc (op=0x762ce4c0) at Objects/tupleobject.c:236 #5 0x0041fb5a in _Py_Dealloc (op=0x762ce4c0) at Objects/object.c:1764 #6 0x005d6867 in func_dealloc (op=0x76b8eea0) at Objects/funcobject.c:564 #7 0x0041fb5a in _Py_Dealloc (op=0x76b8eea0) at Objects/object.c:1764 #8 0x768754e2 in FunctionCBInfo_dealloc (self=0x76317bf0) at src/connection.c:119 #9 0x0041fb5a in _Py_Dealloc (op=0x76317bf0) at Objects/object.c:1764 #10 0x7687b4f4 in apsw_free_func (funcinfo=0x76317bf0) at src/connection.c:2221 #11 0x765d03f7 in functionDestroy (db=0xd0cb08, p=0x26f4) at sqlite3.c:112342 #12 0x765eb7e0 in sqlite3CreateFunc (db=0x8, zFunctionName=value optimized out, nArg=-1, enc=1, pUserData=value optimized out, xFunc=0, xStep=0x7687ae90 cbdispatch_step, xFinal=0x7687b0a4 cbdispatch_final, pDestructor=0xd05448) at sqlite3.c:112858 #13 0x765ebb9c in sqlite3_create_function_v2 (db=0xd0cb08, zFunc=value optimized out, nArg=-1, enc=1, p=0x76ba3988, xFunc=value optimized out, xStep=0x7687ae90 cbdispatch_step, xFinal=0x7687b0a4 cbdispatch_final, xDestroy=0x7687b47d apsw_free_func) at sqlite3.c:112913 #14 0x7687ba30 in Connection_createaggregatefunction (self=0x76b2cdd8, args=0x762f29c0) at src/connection.c:2395 #15 0x005ffee7 in PyCFunction_Call (func=0x76bab768, arg=0x762f29c0, kw=0x0) at Objects/methodobject.c:81 #16 0x004d0ea1 in call_function (pp_stack=0x7fff3b78, oparg=2) at Python/ceval.c:4062 #17 0x004cab06 in PyEval_EvalFrameEx (f=0xd0d720, throwflag=0) at Python/ceval.c:2679 #18 0x004cea43 in PyEval_EvalCodeEx (_co=0x76078940, globals=0x77eae330, locals=0x0, args=0xd0c598, argcount=1, kws=0xd0c5a0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3433 #19 0x004d14cb in fast_function (func=0x763597e0, pp_stack=0x7fff47e8, n=1, na=1, nk=0) at Python/ceval.c:4160 #20 0x004d1074 in call_function (pp_stack=0x7fff47e8, oparg=0) at Python/ceval.c:4083 #21 0x004cab06 in PyEval_EvalFrameEx (f=0xd0c3e0, throwflag=0) at Python/ceval.c:2679 #22 0x004cea43 in PyEval_EvalCodeEx (_co=0x76ae3580, globals=0x76bf1ba0, locals=0x0, args=0xd0c2e0, argcount=3, kws=0xd0c2f8, kwcount=1, defs=0x76ad6168, defcount=1, kwdefs=0x0, closure=0x0) at Python/ceval.c:3433 #23 0x004d14cb in fast_function (func=0x76c0d420, pp_stack=0x7fff5458, n=5, na=3, nk=1) at Python/ceval.c:4160 #24 0x004d1074 in call_function (pp_stack=0x7fff5458, oparg=258) at Python/ceval.c:4083 #25 0x004cab06 in PyEval_EvalFrameEx (f=0xd0c100, throwflag=0) at Python/ceval.c:2679 #26 0x004cea43 in PyEval_EvalCodeEx (_co=0x76ae3700, globals=0x76bf1ba0, locals=0x0, ---Type return to continue, or q return to quit--- args=0x76368628, argcount=2, kws=0x77fa9088, kwcount=0, defs=0x76c14da8, defcount=1, kwdefs=0x0, closure=0x0) at Python/ceval.c:3433 #27 0x005d6e1f in function_call (func=0x76c0d4e0, arg=0x76368600, kw=0x762b8c18) at Objects/funcobject.c:633 #28 0x0059969b in PyObject_Call (func=0x76c0d4e0, arg=0x76368600, kw=0x762b8c18) at Objects/abstract.c:2083 #29 0x004d239b in ext_do_call (func=0x76c0d4e0, pp_stack=0x7fff60f8, flags=3, na=1, nk=0) at Python/ceval.c:4377 #30 0x004caf3c in PyEval_EvalFrameEx (f=0x762ef460, throwflag=0) at Python/ceval.c:2720 #31 0x004cea43 in PyEval_EvalCodeEx (_co=0x76ae3a00, globals=0x76bf1ba0, locals=0x0, args=0x75acb1f0, argcount=2, kws=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3433 #32 0x005d6e1f in function_call (func=0x76c0d660, arg=0x75acb1c8, kw=0x0) at Objects/funcobject.c:633 #33 0x0059969b in PyObject_Call (func=0x76c0d660, arg=0x75acb1c8, kw=0x0) at Objects/abstract.c:2083 #34 0x005b7cc4 in method_call (func=0x76c0d660, arg=0x75acb1c8, kw=0x0) at Objects/classobject.c:323 #35 0x0059969b in PyObject_Call (func=0x7635c7e0, arg=0x763257d0, kw=0x0) at Objects/abstract.c:2083 #36 0x004462c2 in
[issue16025] Minor corrections to the zipfile documentation
Ezio Melotti added the comment: :meth:`closed close` works too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16035] Segmentation fault in test suite of apsw
Benjamin Peterson added the comment: My guess is an extension problem (failing to aqcuire locks?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15935] clarify argparse docs re: add_argument() type and default arguments
Barry A. Warsaw added the comment: Looks good to me too! Thanks; I'll apply the patch. -- assignee: docs@python - barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15935 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16027] pkgutil doesn't support frozen modules
Nick Coghlan added the comment: Can you confirm this problem still exists on 3.3? The pkgutil emulation isn't used by runpy any more - with the migration to importlib, the interface that runpy invokes fails outright if no loader is found rather than falling back to the emulation (we only retained the emulation for backwards compatibility - it's a public API, so others may be using it directly). I have a feeling that there may still be a couple of checks which are restricted to PY_SOURCE and PY_COMPILED that really should be allowing PY_FROZEN as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16035] Segmentation fault in test suite of apsw
Antoine Pitrou added the comment: The cause for Stefan's traceback looks quite clear: Connection_createaggregatefunction() release the GIL (through the PYSQLITE_CON_CALL macro) before calling into sqlite3_create_function_v2, which itself calls the destructor for the old aggregate function, aka. apsw_free_func(), which calls Py_DECREF without re-acquiring the GIL. So apsw needs to sanitize its callbacks implementation here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15935] clarify argparse docs re: add_argument() type and default arguments
Roundup Robot added the comment: New changeset b624059a8dac by Barry Warsaw in branch '2.7': - Issue #15935: Clarification of argparse docs, re: add_argument() type and http://hg.python.org/cpython/rev/b624059a8dac New changeset b738e42e664a by Barry Warsaw in branch '3.2': - Issue #15935: Clarification of argparse docs, re: add_argument() type and http://hg.python.org/cpython/rev/b738e42e664a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15935 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15935] clarify argparse docs re: add_argument() type and default arguments
Changes by Barry A. Warsaw ba...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15935 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15935] clarify argparse docs re: add_argument() type and default arguments
R. David Murray added the comment: FTR, the 3.3 commit is cce2bfe03dc5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15935 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16035] Segmentation fault in test suite of apsw
Georg Brandl added the comment: Not a blocker then. -- priority: release blocker - normal resolution: - invalid status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16046] python -O does not find *.pyo files
Benjamin Peterson added the comment: Georg, do you want to take this for 3.3, final? -- assignee: - georg.brandl nosy: +georg.brandl priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16046] python -O does not find *.pyo files
Georg Brandl added the comment: Looks serious enough, yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16046] python -O does not find *.pyo files
Roundup Robot added the comment: New changeset 4de5e4ec3cff by Benjamin Peterson in branch 'default': don't depend on __debug__ because it's baked in at freeze time (issue #16046) http://hg.python.org/cpython/rev/4de5e4ec3cff -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16046] python -O does not find *.pyo files
Benjamin Peterson added the comment: This tested in the sense if you run test_import with -O, it fails. We ought to have a buildbot running with -O. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16046] python -O does not find *.pyo files
Georg Brandl added the comment: Transplanted to ff50579241cd. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16027] pkgutil doesn't support frozen modules
Marc-Andre Lemburg added the comment: Nick Coghlan wrote: Nick Coghlan added the comment: Can you confirm this problem still exists on 3.3? The pkgutil emulation isn't used by runpy any more - with the migration to importlib, the interface that runpy invokes fails outright if no loader is found rather than falling back to the emulation (we only retained the emulation for backwards compatibility - it's a public API, so others may be using it directly). That's difficult to test, since the Tools/freeze/ tool no longer works in Python 3.3. I'll open a separate issue for that. I have a feeling that there may still be a couple of checks which are restricted to PY_SOURCE and PY_COMPILED that really should be allowing PY_FROZEN as well. Same here. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 25 2012) Python/Zope Consulting and Support ...http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ 2012-10-29: PyCon DE 2012, Leipzig, Germany ...34 days to go 2012-10-23: Python Meeting Duesseldorf ... 28 days to go 2012-09-25: Released mxODBC 3.2.1 ... http://egenix.com/go31 2012-09-18: Released mxODBC Zope DA 2.1.0 ... http://egenix.com/go32 eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16045] add more unit tests for built-in int()
Ezio Melotti added the comment: Before adding tests (and possibly documentation) for edge cases like int(base='foo') # no exception; returns 0 I'd take a look at what other implementations do. If they do something different we might still decide to keep the tests and mark them as cpython-specific, but I would refrain to document them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16045 ___ ___ 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
Christian Heimes added the comment: RFC 821 [1] specifies rather short line lengths between 512 and 1001 chars including the trailing CRLF. A line limit of a couple of kilobyte should definitely work with all standard conform SMTP clients and servers. [1] http://www.freesoft.org/CIE/RFC/821/24.htm -- ___ 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
[issue16042] smtplib: unlimited readline() from connection
Changes by Christian Heimes li...@cheimes.de: -- nosy: +barry, r.david.murray ___ 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
[issue16047] Tools/freeze no longer works in Python 3
New submission from Marc-Andre Lemburg: The freeze tool used for compiling Python binaries with frozen modules no longer works with Python 3.x. It looks like it was never updated to the various path and symbols changes introduced with PEP 3149 (ABI tags) in Python 3.2. Even with lots of symlinks to restore the non-ABI flagged names, freezing fails with a linker error in Python 3.3: Tools/freeze python3 freeze.py hello.py Tools/freeze make config.o:(.data+0x38): undefined reference to `PyInit__imp' collect2: ld returned 1 exit status make: *** [hello] Error 1 -- components: Demos and Tools messages: 171295 nosy: lemburg priority: normal severity: normal status: open title: Tools/freeze no longer works in Python 3 versions: Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16047 ___ ___ 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
Christian Heimes added the comment: First patch I haven't written tests yet nor implemented the size limit on the mock_socket class. -- keywords: +patch Added file: http://bugs.python.org/file27297/smtp_readline.patch ___ 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
[issue16042] smtplib: unlimited readline() from connection
R. David Murray added the comment: I've only taken a quick glance at this so far. Why size=-1 instead of size=None? -- ___ 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
[issue16042] smtplib: unlimited readline() from connection
Christian Heimes added the comment: size=-1 mimics the code of the io module. The C implementation of readline() maps all negative values to unlimited and values = 0 as limit. sys.stdin.readline(None) Traceback (most recent call last): File stdin, line 1, in module TypeError: 'NoneType' object cannot be interpreted as an integer -- ___ 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
[issue16045] add more unit tests for built-in int()
Chris Jerdonek added the comment: Good thought. Here is one data point: $ pypy Python 2.7.2 (341e1e3821fff77db3bb5cdb7a4851626298c44e, Jun 09 2012, 14:24:11) [PyPy 1.9.0] on darwin Type help, copyright, credits or license for more information. int() 0 int(x='10', base=8) 8 int(x=5, base=10) Traceback (most recent call last): File console, line 1, in module TypeError: int() can't convert non-string with explicit base int(base=6) Traceback (most recent call last): File console, line 1, in module TypeError: int() can't convert non-string with explicit base int(base='foo') Traceback (most recent call last): File console, line 1, in module TypeError: expected integer, got str object So it looks like no x with given base is where behavior differs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16045 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16047] Tools/freeze no longer works in Python 3
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16002] AIX buildbot compile errors
Trent Nelson added the comment: Hi Stefan, quick question: how did you invoke ./configure on the AIX box? The reason for asking is that a7/arsenic is a little quirky, you need to run a zsh subroutine via `_xlc 12` to set up the right CC env (see ~/buildslave/start.zsh). Once you've done that, you need ./configure --without-gcc --with-pydebug to get the same environment as the build slave. (I haven't set up a buildslave for gcc on that box.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16002 ___ ___ 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
Serhiy Storchaka added the comment: Both io.IOBase.readline() and io.TextIOBase.readline() have parameter named limit. I doubt that such a change can be done in 2.7 and 3.2. -- nosy: +storchaka ___ 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
[issue14201] Documented caching for shared library's __getattr__ and __getitem__ is incorrect
Erik Johansson added the comment: The issue14201-v2.patch patch looks good to me at least. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14201 ___ ___ 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
Serhiy Storchaka added the comment: Please submit patches in standard Mercurial format to them understood Rietveld. I wanted to make a code review, but I don't see the definition of readline() method in the file Lib/smtplib.py. -- ___ 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
[issue15955] gzip, bz2, lzma: add option to limit output size
Serhiy Storchaka added the comment: Agree with Antoine. This would be a desirable feature. -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16025] Minor corrections to the zipfile documentation
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file27277/doc_zipfile-3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16025] Minor corrections to the zipfile documentation
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file27278/doc_zipfile-3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16025] Minor corrections to the zipfile documentation
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file27279/doc_zipfile-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16025] Minor corrections to the zipfile documentation
Serhiy Storchaka added the comment: :meth:`closed close` works too. Patches updated. -- Added file: http://bugs.python.org/file27298/doc_zipfile-3.3.patch Added file: http://bugs.python.org/file27299/doc_zipfile-3.2.patch Added file: http://bugs.python.org/file27300/doc_zipfile-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___diff -r 3d9c323711d0 Doc/library/zipfile.rst --- a/Doc/library/zipfile.rst Mon Sep 24 07:46:35 2012 +0200 +++ b/Doc/library/zipfile.rst Mon Sep 24 18:56:25 2012 +0300 @@ -61,7 +61,7 @@ .. class:: ZipInfo(filename='NoName', date_time=(1980,1,1,0,0,0)) Class used to represent information about a member of an archive. Instances - of this class are returned by the :meth:`getinfo` and :meth:`infolist` + of this class are returned by the :meth:`.getinfo` and :meth:`.infolist` methods of :class:`ZipFile` objects. Most users of the :mod:`zipfile` module will not need to create these, but only use those created by this module. *filename* should be the full name of the archive member, and @@ -87,20 +87,20 @@ .. data:: ZIP_DEFLATED The numeric constant for the usual ZIP compression method. This requires the - zlib module. + :mod:`zlib` module. .. data:: ZIP_BZIP2 The numeric constant for the BZIP2 compression method. This requires the - bz2 module. + :mod:`bz2` module. .. versionadded:: 3.3 .. data:: ZIP_LZMA The numeric constant for the LZMA compression method. This requires the - lzma module. + :mod:`lzma` module. .. versionadded:: 3.3 @@ -155,7 +155,7 @@ these extensions. If the file is created with mode ``'a'`` or ``'w'`` and then - :meth:`close`\ d without adding any files to the archive, the appropriate + :meth:`closed close` without adding any files to the archive, the appropriate ZIP structures for an empty archive will be written to the file. ZipFile is also a context manager and therefore supports the @@ -169,7 +169,7 @@ Added the ability to use :class:`ZipFile` as a context manager. .. versionchanged:: 3.3 - Added support for :mod:`bzip2` and :mod:`lzma` compression. + Added support for :mod:`bzip2 bz2` and :mod:`lzma` compression. .. method:: ZipFile.close() @@ -207,7 +207,7 @@ *mode* parameter, if included, must be one of the following: ``'r'`` (the default), ``'U'``, or ``'rU'``. Choosing ``'U'`` or ``'rU'`` will enable :term:`universal newlines` support in the read-only object. *pwd* is the - password used for encrypted files. Calling :meth:`open` on a closed + password used for encrypted files. Calling :meth:`.open` on a closed ZipFile will raise a :exc:`RuntimeError`. .. note:: @@ -229,7 +229,7 @@ .. note:: - The :meth:`open`, :meth:`read` and :meth:`extract` methods can take a filename + The :meth:`.open`, :meth:`read` and :meth:`extract` methods can take a filename or a :class:`ZipInfo` object. You will appreciate this when trying to read a ZIP file that contains members with duplicate names. @@ -335,7 +335,7 @@ :class:`ZipInfo` constructor sets this member to :const:`ZIP_STORED`. .. versionchanged:: 3.2 - The *compression_type* argument. + The *compress_type* argument. The following data attributes are also available: @@ -351,7 +351,7 @@ The comment text associated with the ZIP file. If assigning a comment to a :class:`ZipFile` instance created with mode 'a' or 'w', this should be a string no longer than 65535 bytes. Comments longer than this will be - truncated in the written archive when :meth:`ZipFile.close` is called. + truncated in the written archive when :meth:`close` is called. .. _pyzipfile-objects: @@ -407,8 +407,8 @@ ZipInfo Objects --- -Instances of the :class:`ZipInfo` class are returned by the :meth:`getinfo` and -:meth:`infolist` methods of :class:`ZipFile` objects. Each object stores +Instances of the :class:`ZipInfo` class are returned by the :meth:`.getinfo` and +:meth:`.infolist` methods of :class:`ZipFile` objects. Each object stores information about a single member of the ZIP archive. Instances have the following attributes: diff -r aa73e60f65e9 Doc/library/zipfile.rst --- a/Doc/library/zipfile.rst Fri Sep 21 17:26:35 2012 +0300 +++ b/Doc/library/zipfile.rst Mon Sep 24 19:01:40 2012 +0300 @@ -61,7 +61,7 @@ .. class:: ZipInfo(filename='NoName', date_time=(1980,1,1,0,0,0)) Class used to represent information about a member of an archive. Instances - of this class are returned by the :meth:`getinfo` and :meth:`infolist` + of this class are returned by the :meth:`.getinfo` and :meth:`.infolist` methods of :class:`ZipFile` objects. Most users of the :mod:`zipfile` module will not need to create these, but only use those created by
[issue2771] Test issue
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file27301/entities.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com