Python 2.7 crashed during compilation on HP PA-RISC

2012-03-20 Thread Don Chen
Hello, I am compiling Python2.7 on a HP11i PA-RISC machine and received a segmentation fault. Platform Information "uname -a" = HP-UX hpdev2 B.11.11 U 9000/800 2280874925 unlimited-user license Steps 1) uncompress Python tgz file 2) run "configure CC=aCC CXX=aCC" 3) make Result

[issue14370] enumerate() lead to system crashes

2012-03-20 Thread Stefan Krah
Stefan Krah added the comment: I can reproduce this with Python 3.2 on Linux-2.4.32/i686 with 512M of RAM. The machine does not crash, it freezes completely in the same manner as with a fork bomb. A hard reboot is required. -- nosy: +skrah type: performance -> resource usage __

[issue14370] list.extend() called on an iterator of the list itself leads to an infinite loop

2012-03-20 Thread Petri Lehtinen
Petri Lehtinen added the comment: This has the same effect: a = list(range(5)) a.extend(iter(a)) So the problem is not in enumerate but in list.extend() -- nosy: +petri.lehtinen title: enumerate() lead to system crashes -> list.extend() called on an iterator of the list itself leads

[issue14370] list.extend() called on an iterator of the list itself leads to an infinite loop

2012-03-20 Thread Charles-François Natali
Charles-François Natali added the comment: I think you're simply running OOM, and Linux is thrashing to death. If you wait long enough, the process should get nuked by the OOM killer (well, in theory). What happens if you disable swap altogether ('swapoff -a')? You can also change to strict ov

[issue3367] Uninitialized value read in parsetok.c

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: bump, what is the status of this? Was it fixed? -- ___ Python tracker ___ ___ Python-bugs-l

[issue14198] Backport parts of the new memoryview documentation

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Stefan, I just want to point out this issue, if you are touching 2.7: http://bugs.python.org/issue10538 Do you think it merits being fixed? -- nosy: +krisvale ___ Python tracker

[issue10211] BufferObject doesn't support new buffer interface

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Bumping this. Do we want this fixed as a bug in 2.7 or left alone? -- ___ Python tracker ___ _

[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: The patch is still there. Any new consensus? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue9787] Release the TLS lock during allocations

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I'll rework this for python 3.x and see where that gets us. -- ___ Python tracker ___ ___ Py

[issue14198] Backport parts of the new memoryview documentation

2012-03-20 Thread Stefan Krah
Stefan Krah added the comment: Kristj??n Valur J??nsson wrote: > Stefan, I just want to point out this issue, if you are touching 2.7: > http://bugs.python.org/issue10538 > Do you think it merits being fixed? I think so. A patch would be appreciated, since the issue touches the old buffer inte

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2012-03-20 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue3367] Uninitialized value read in parsetok.c

2012-03-20 Thread Stefan Krah
Stefan Krah added the comment: It isn't fixed. Also, there's now an additional invalid read in sys_update_path(): $ valgrind --db-attach=yes --suppressions=Misc/valgrind-python.supp ./python ==20258== Memcheck, a memory error detector ==20258== Copyright (C) 2002-2010, and GNU GPL'd, by Julian

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-20 Thread Ram Rachum
Ram Rachum added the comment: "I'm not completly conviced by the need of supporting Decimal in timedelta constructor. Why do you use Decimal if the result should be a timedelta? Why not using timedelta directly?" What do you mean, "Why not using timedelta directly?" How could I use timedelta

[issue14302] Move python.exe to bin/

2012-03-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : ZIP File Format Specification (http://www.pkware.com/documents/casestudies/APPNOTE.TXT) supports bzip2 compression since at least 2003. Since bzip2 contained in Python standart library, it would be nice to add support for these method in zipfile. This wil

[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue #14371: Add support for bzip2 compression to the zipfile module. -- ___ Python tracker ___

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-20 Thread STINNER Victor
STINNER Victor added the comment: "I'm getting an `n_hours` variable for some component of my system. And this value happens to come as a `Decimal`." Can't you modify your program to use timedelta instead of Decimal for n_hours? -- ___ Python tracke

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-20 Thread Charles-François Natali
Charles-François Natali added the comment: > for everybody who is not *programming* python (imagine there is a *real* > user) the tracebacks are useless. Even worse, because the error messages are > *changing*, because of different library parts not catching the exception. Well, I also use it

[issue14370] list.extend() called on an iterator of the list itself leads to an infinite loop

2012-03-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-20 Thread Ram Rachum
Ram Rachum added the comment: In some cases we indeed use a timedelta directly, but sometimes we get a "number of hours", and in those cases it's more convenient for us to work with "number of hours" directly. -- ___ Python tracker

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-20 Thread Charles-François Natali
Charles-François Natali added the comment: > Or we could change Py_InitializeEx() to setup the signal handlers > after having imported the site module: Note that I don't really like this solution, because it's better to setup handlers for fatal signals (SIGPIPE, SIGXF...) before executing arbit

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Or we could change Py_InitializeEx() to setup the signal handlers > > after having imported the site module: > > Note that I don't really like this solution, because it's better to > setup handlers for fatal signals (SIGPIPE, SIGXF...) before executing > ar

[issue14311] ConfigParser does not parse utf-8 files with BOM bytes

2012-03-20 Thread Łukasz Langa
Changes by Łukasz Langa : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> Python3: guess text file charset using the BOM versions: -Python 2.7, Python 3.2 ___ Python tracker

[issue7651] Python3: guess text file charset using the BOM

2012-03-20 Thread Łukasz Langa
Changes by Łukasz Langa : -- assignee: -> lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue14372] Fix all invalid usage of borrowed references

2012-03-20 Thread STINNER Victor
New submission from STINNER Victor : I fixed the issues #14211 and #14231. These issues were invalid usage of borrowed reference: the reference can be destroyed before the reference is used. Armin Rigo replied: "I will attempt a last time to mention that the docstrings in borrowed_ref_*.py us

[issue14372] Fix all invalid usage of borrowed references

2012-03-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +arigo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7652] Merge C version of decimal into py3k.

2012-03-20 Thread Stefan Krah
Stefan Krah added the comment: We need to decide what to do with the different limits of the 64-bit and 32-bit versions: MAX_EMAX default context 10**9-1 64-bit 10**18-1 32-bit42500 I think it would be annoying to have the values

[issue14372] Fix all invalid usage of borrowed references

2012-03-20 Thread STINNER Victor
STINNER Victor added the comment: > (1) find any internal or external C function that returns a borrowed reference Doc/data/refcounts.dat can be used for that: PyCell_GET PyDict_GetItem PyDict_GetItemString PyErr_Occurred PyEval_GetBuiltins PyEval_GetLocals PyEval_GetGlobals PyEval_GetFrame Py

[issue14369] make __closure__ writable

2012-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please update the doc also. I think changing from 'Read-only' to 'Writable' in Doc/reference/datamodel.rst is enough. -- ___ Python tracker __

[issue14373] C implementation of functools.lru_cache

2012-03-20 Thread Matt Joiner
New submission from Matt Joiner : functools.lru_cache is optimized to the point that it may benefit from a C implementation. -- components: Interpreter Core, Library (Lib) messages: 156405 nosy: anacrolix, rhettinger priority: normal severity: normal status: open title: C implementation

[issue14249] unicodeobject.c: aliasing warnings

2012-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if add more hacking? If long integer already used for buffering and checking, let use it for swapping and splitting too. With my patch (attached) codecs.utf_16_be_decode runs 5% faster (on 32-bit Linux, I was not tested 64-bit). And of cause no pointer

[issue14249] unicodeobject.c: aliasing warnings

2012-03-20 Thread STINNER Victor
STINNER Victor added the comment: > With my patch (attached) codecs.utf_16_be_decode runs 5% faster (on 32-bit > Linux, I was not tested 64-bit). And of cause no pointers -- no aliasing > warnings. Your patch is wrong: you need to use & 0x to get lower 16 bits when reading a UTF-16 unit.

[issue14373] C implementation of functools.lru_cache

2012-03-20 Thread Matt Joiner
Changes by Matt Joiner : Added file: http://bugs.python.org/file24958/functools.lru_cache-in-c ___ Python tracker ___ ___ Python-bugs-list mai

[issue14249] unicodeobject.c: aliasing warnings

2012-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Heh. This was in previous version of my patch. I have removed '& 0xu' and parents for simplicity. GCC produces same binaries for both sources. But you can return it back. It has effect only on plathforms with non-16-bit short, but now Python not support

[issue9787] Release the TLS lock during allocations

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: New patch, based on the cpython tip. -- Added file: http://bugs.python.org/file24959/tlspatch.patch ___ Python tracker ___ _

[issue14249] unicodeobject.c: aliasing warnings

2012-03-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file24960/utf16_decoder_shift_2.patch ___ Python tracker ___ ___ Python-bugs-

[issue14302] Move python.exe to bin/

2012-03-20 Thread VanL
VanL added the comment: As Éric mentioned, there are two proposals here: 1. Move the python exe 2. Change 'Scripts' to 'bin' As for #1, what about letting the location of the python binary be an install option: [ ] Put python.exe into binaries directory and add to PATH? And then make it unc

[issue9787] Release the TLS lock during allocations

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: hm, for some reason this patch isn't viewable in side-by-side -- ___ Python tracker ___ ___

[issue12684] profile does not dump stats on exception like cProfile does

2012-03-20 Thread Matt Joiner
Changes by Matt Joiner : Added file: http://bugs.python.org/file24961/profiler-unhandled-exceptions.patch ___ Python tracker ___ ___ Python-bu

[issue14369] make __closure__ writable

2012-03-20 Thread Yury Selivanov
Yury Selivanov added the comment: > Please update the doc also. I think changing from 'Read-only' to 'Writable' > in Doc/reference/datamodel.rst is enough. Updated in writable_closure_03.patch. Thanks. -- Added file: http://bugs.python.org/file24962/writable_closure_03.patch ___

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-03-20 Thread David Andrzejewski
Changes by David Andrzejewski : -- nosy: +dandrzejewski ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Jason Killen added the comment: I'm adding a patch for test_smtpd.py. This version includes the changes in my previous patch and adds sending HELO before the commands in the test. Works good for me. -- Added file: http://bugs.python.org/file24963/test_smtpd.patch __

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-03-20 Thread Matt Joiner
Matt Joiner added the comment: This patch is a shoo-in, can someone review and commit this? -- ___ Python tracker ___ ___ Python-bugs

[issue12684] profile does not dump stats on exception like cProfile does

2012-03-20 Thread Matt Joiner
Matt Joiner added the comment: I attached a minimal patch that additionally tidies the exception handling for {cP,p}rofile.runctx. -- ___ Python tracker ___ ___

[issue14249] unicodeobject.c: aliasing warnings

2012-03-20 Thread STINNER Victor
STINNER Victor added the comment: > It has effect only on plathforms with non-16-bit short The problem is for 64-bit long: "long >> 32" returns the 32 higher bits (32..64), not 16 bits (32..48). -- ___ Python tracker

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-20 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file24964/bzip2_in_zip_review.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue14310] Socket duplication for windows

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: A new patch with fixes and documentation. And yes, socket.share() does in fact perform duplication, because socket.close() can be performed immediately afterwards. -- Added file: http://bugs.python.org/file24965/duplicate.patch ___

[issue14310] Socket duplication for windows

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: hm, patch doesn't work, removing the [mq] section -- Added file: http://bugs.python.org/file24966/duplicate.patch ___ Python tracker __

[issue14310] Socket duplication for windows

2012-03-20 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : Removed file: http://bugs.python.org/file24966/duplicate.patch ___ Python tracker ___ ___ Python-bugs-list

[issue14310] Socket duplication for windows

2012-03-20 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- Removed message: http://bugs.python.org/msg156418 ___ Python tracker ___ ___ Python-bugs-list m

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please submit a contributor form? http://python.org/psf/contrib/contrib-form/ http://python.org/psf/contrib/ -- nosy: +loewis ___ Python tracker

[issue14374] Compiling Python 2.7.2 on HP11i PA-RISC ends with segmentation fault in Python executable

2012-03-20 Thread donchen
New submission from donchen : Hello, I am compiling Python2.7 on a HP11i PA-RISC machine and received a segmentation fault. Platform Information "uname -a" = HP-UX hpdev2 B.11.11 U 9000/800 2280874925 unlimited-user license Steps 1) uncompress Python tgz file 2) run "configure CC=

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1c0058991740 by Giampaolo Rodola' in branch 'default': Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr. http://hg.python.org/cpython/rev/1c0058991740 -- nosy: +python-dev

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e5ddde76dbe by Giampaolo Rodola' in branch '2.7': Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr. http://hg.python.org/cpython/rev/4e5ddde76dbe -- ___ Python tracker

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5add01e96be by Giampaolo Rodola' in branch '3.2': Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr. http://hg.python.org/cpython/rev/a5add01e96be -- ___ Python tracker

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-03-20 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Done. Sorry for the delay. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue14302] Move python.exe to bin/

2012-03-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm still opposed to having the path manipulated by default, but Brian is working on a patch to edit the path with the default being off. If python.exe stays in the toplevel directory, it means that two entries have to be added to the path, making it even mo

[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2012-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Stefan, since you have been working on Memoryview, any opinions? -- nosy: +skrah ___ Python tracker ___ ___

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch looks good. Can you also provide a test case? -- ___ Python tracker ___ ___ Python-bugs-

[issue14374] Compiling Python 2.7.2 on HP11i PA-RISC ends with segmentation fault in Python executable

2012-03-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't think we will be able to help. Can you run the generated Python under a debugger and find out what happened? If not, just try disabling optimization in the compiler and see whether this helps. -- nosy: +loewis __

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: Hmm. I'm certain that QUIT shouldn't require HELO, and I wouldn't expect that NOOP would either. I just checked the RFC. The *only* command that requires HELO/EHLO is MAIL (and by implication RCPT, since it in turn requires MAIL). See http://tools.ietf.

[issue14354] Crash in _ctypes_alloc_callback

2012-03-20 Thread Joe Rumsey
Joe Rumsey added the comment: It's maybe not directly relevant to fixing this, but I worked around it on the project where this came up by redefining dice as (c_int * 4) and col as (c_uint8 * 3) in the union, then using ctypes.cast to get those as pointers to the actual struct. That seems to

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Jason Killen added the comment: smtpd.py does not require HELO before NOOP or QUIT. I added them to test_smtpd.py because I felt it made test_smtpd.py well written as opposed to doing the least the spec requires. That said I suppose I should have added QUITs to every test also if that's the

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Changes by Jason Killen : Removed file: http://bugs.python.org/file24948/smtpd_nogo.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Changes by Jason Killen : Removed file: http://bugs.python.org/file24826/smtpd_nogo.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Changes by Jason Killen : Removed file: http://bugs.python.org/file24949/test_smtpd_nogo.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Changes by Jason Killen : Added file: http://bugs.python.org/file24968/smtpd.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Changes by Jason Killen : Removed file: http://bugs.python.org/file24968/smtpd.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Changes by Jason Killen : Added file: http://bugs.python.org/file24969/smtpd.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue14375] Add socketserver.running property

2012-03-20 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : Patch in attachment adds a "running" property to figure out whether the server is running or not. Also it raises an exception in case the server has already been started or stopped. IMO such an event should be prevented beforehand as it signals an appli

[issue14249] unicodeobject.c: aliasing warnings

2012-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "(unsigned short)(long >> 32)" returns the 16 bits (32..48) if short is 16-bit. I agree that this variant is more strict and reliable (and this was my original version) and if you do not find it verbose and redundant, so be it. The difference will be notice

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Jason Killen added the comment: Ok I think this quote from the spec referenced pretty much sums it up. "The NOOP, HELP, EXPN, VRFY, and RSET commands can be used at any time during a session, or without previously initializing a session. SMTP servers SHOULD process these normally (that

[issue14375] Add socketserver running property

2012-03-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- title: Add socketserver.running property -> Add socketserver running property ___ Python tracker ___ ___

[issue14375] Add socketserver running property

2012-03-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- keywords: +needs review -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: If you mean "either way in the test", that's true. But what we need to test is that the smtpd server we are providing matches the spec, which means that we need to confirm that it does *accept* QUIT, NOOP, etc without a previous HELO. Also testing that it

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am working on this. Should I add tests to test_zipfile.py or create new test_zipfile_bzip2.py? It would add a note that the bzip2 compression can understand not all programs (and do not understand the older versions of Python), but understands the Info-U

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-03-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14302] Move python.exe to bin/

2012-03-20 Thread Glenn Linderman
Glenn Linderman added the comment: msg156410 sounds good to me... +1 If the conversion is optional in 3.3, that would seem to solve the problem; if BinaryDir is added, people can use that for 3.3; if people want to use software that hasn't migrated yet, they choose the default path of least r

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Jason Killen added the comment: Yes, "either way" in the test. The server shouldn't expect them and the client can do it either way. I'm adding a patch that tests with and without HELO for those commands that can be sent either way. -- Added file: http://bugs.python.org/file24972/te

[issue11273] asyncore creates selec (or poll) on every iteration

2012-03-20 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I agree it would be great to do this, in fact I'm using a modified version of asyncore supporting register(), unregister() and modify() methods for file descriptors, and the performance benefits are enormous. On the other hand, it appears to be quite diffi

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2012-03-20 Thread Alex Gaynor
Alex Gaynor added the comment: FWIW pypy has an __buffer__ method (used exclusively internally, AFAIK), which has semantics similar to your first proposal. -- nosy: +alex ___ Python tracker __

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: I think we're close. You new test 'test_HELO_RSET_syntax' should be named just 'test_HELO_RSET'. And could you please add tests for RCPT and DATA generating the 'no HELO' error? Thanks. -- ___ Python tracker

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am afraid that the problem is more complicated. With the option allowZip64=True all files need to write with this extension, because size of local file header may change and there will be after compression just go back and rewrite it. Now it appears that

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread Jason Killen
Jason Killen added the comment: Removed '_syntax' apparently I fix that before but didn't regen the patch. Added tests for noHELO before some commands to test that failures happen as expected. -- Added file: http://bugs.python.org/file24973/test_smtpd.patch __

[issue14375] Add socketserver running property

2012-03-20 Thread R. David Murray
Changes by R. David Murray : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14154] reimplement the bigmem test memory watchdog as a subprocess

2012-03-20 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch flushing stdout explicitely (should not be necessay unless the watchdog crashes, but...). Also, redirect stderr to /dev/null. -- Added file: http://bugs.python.org/file24974/mem_watchdog_2.diff __

[issue14373] C implementation of functools.lru_cache

2012-03-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please add it to test_zipfile. As for the documentation, I propose the wording "bzip2 compression was added to the zip file format in 2001. However, even more recent tools (including older Python releases) may not support it, causing either refusal to proce

[issue14229] On KeyboardInterrupt, the exit code should mirror the signal number

2012-03-20 Thread Charles-François Natali
Charles-François Natali added the comment: I agree with Martin: we really do handle the signal, and as such, the only way to convey the relevant information to the parent as to which signal caused the exit would be to re-raise it, which is really ugly and probably not a good idea. Processes tha

[issue14229] On KeyboardInterrupt, the exit code should mirror the signal number

2012-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I agree with Martin: we really do handle the signal, and as such, the > only way to convey the relevant information to the parent as to which > signal caused the exit would be to re-raise it, which is really ugly > and probably not a good idea. Why would it b

[issue14370] list.extend() called on an iterator of the list itself leads to an infinite loop

2012-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: This a feature, not a bug. Lists are allowed to mutate during iteration and there are valid use cases for doing so (adding pending tasks, etc.) # Demonstrate list mutation during iteration # Infinite loop that overflows memory s = [None] for x in s:

[issue14373] C implementation of functools.lru_cache

2012-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you for working on this. I look forward to reviewing it. -- assignee: -> rhettinger ___ Python tracker ___ _

[issue10576] Add a progress callback to gcmodule

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Hi! Michael Foord reminded me of this little gem. I'm getting this started again, hopefully for inclusion in 3.3 -- nosy: +michael.foord ___ Python tracker _

[issue14374] Compiling Python 2.7.2 on HP11i PA-RISC ends with segmentation fault in Python executable

2012-03-20 Thread donchen
donchen added the comment: Taking away -O options in makefile still generates the crash. I have attached the stack below. Can you inform me what python executable is doing at this time? From the make I see it is linking python so why would it be running? Thanks $ gdb python core HP gdb 5.7

[issue14369] make __closure__ writable

2012-03-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue14369] make __closure__ writable

2012-03-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10576] Add a progress callback to gcmodule

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Hm, actually it wasn't Michael, but Martin. No matter! Here is a proposed patch, as promised without all the bells and whistles, in particular, there is no feature to cancel the garbage collection. Can we get this into 3.3? -- Added file: ht

[issue14369] make __closure__ writable

2012-03-20 Thread Yury Selivanov
Yury Selivanov added the comment: Updated patch per Benjamin's review. See writable_closure_04.patch. -- Added file: http://bugs.python.org/file24975/writable_closure_04.patch ___ Python tracker __

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 052779d34945 by Larry Hastings in branch 'default': Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords. http://hg.python.org/cpython/rev/052779d34945 -- nosy: +python-dev ___ Python

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-20 Thread Larry Hastings
Changes by Larry Hastings : -- keywords: -patch resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

  1   2   >