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

2012-03-20 Thread Stefan Behnel
Stefan Behnel added the comment: Ok, just for the record: a single __buffer__() special method with delegation-only semantics would also work for Cython. Taking this path would provide a cleaner separation of the (then delegation-only) Python level protocol and the (all purpose) C level proto

[issue14378] __future__ imports fail when compiling from python ast

2012-03-20 Thread J. D. Bartlett
J. D. Bartlett added the comment: Incidentally, the workaround that I'm using for the time being is to run the following code before attempting to compile root_node. for node in ast.walk(root_node): if isinstance(node, ast.ImportFrom) and node.module == '__future__': node.module =

[issue14378] __future__ imports fail when compiling from python ast

2012-03-20 Thread J. D. Bartlett
New submission from J. D. Bartlett : GOAL I am trying to compile an AST which contains an ImportFrom node which performs a __future__ import. The ImportFrom node in question is the first node within the AST's body (as it should be, because __future__ imports must occur at the beginning of modu

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: -if long_xml or text or len(elem): +if text or len(elem) or long_xml: Use alternatives in order of decreasing probability. -- nosy: +storchaka ___ Python tracker

[issue13959] Re-implement parts of imp in pure Python

2012-03-20 Thread Eric Snow
Eric Snow added the comment: Of note for my patch is the addition of SUFFIXES and MODE to the 3 main "file loader" classes. I did this to reverse the dependence on imp.get_suffixes(). As well, a couple of extra functions are added to Python/importlib/_bootstrap.py for a similar reason, but s

[issue13959] Re-implement parts of imp in pure Python

2012-03-20 Thread Eric Snow
Eric Snow added the comment: Here's a listing of the places where import-ish modules are used in CPython. Once things all the import stuff currently on the table is wrapped up, I'll probably work on switching things over to using importlib directly. -- Added file: http://bugs.python.

[issue13959] Re-implement parts of imp in pure Python

2012-03-20 Thread Eric Snow
Eric Snow added the comment: Here's an incomplete (though essentially test-passing) patch that flips more of imp into importlib. It builds on Brett's patch. The gist is that imp.py is a minimal wrapper around importlib, which uses _imp directly. Ultimately the things implemented in Lib/impo

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-03-20 Thread Ariel Poliak
New submission from Ariel Poliak : As it stands in Hg, when the write() method of an xml.etree.ElementTree object is called, and a tag within the XML tree has no child tags or defined text, the tag is written using the short notation "". Whether or not the short notation is used instead of the

[issue14369] make __closure__ writable

2012-03-20 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10576] Add a progress callback to gcmodule

2012-03-20 Thread Jim Jewett
Jim Jewett added the comment: gccallback4a.patch is a few changes to gccallback4.patch. Most are just spelling or grammar in comments, but I did modify the test case so that the Uncollectable loop had *multiple* objects with __del__ methods. -- nosy: +Jim.Jewett Added file: http://bu

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2012-03-20 Thread Gareth Rees
New submission from Gareth Rees : The documentation for sys.exit says, "The optional argument arg can be an integer giving the exit status (defaulting to zero), or another type of object". However, the arguments that are treated as exit statuses are actually "subtypes of int". So, a bool argu

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-03-20 Thread STINNER Victor
STINNER Victor added the comment: +/* SEEK_SET and SEEK_CUR are special because we could seek inside the + buffer. Other whence values must be managed without this optimization. + Some Operating Systems can provide additional values, like + SEEK_HOLE/SEEK_DATA. */ +if (

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

2012-03-20 Thread STINNER Victor
STINNER Victor added the comment: mem_watchdog_2.diff looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue14356] Distutils2 ignores site-local configuration

2012-03-20 Thread Alex Grönholm
Alex Grönholm added the comment: >> Ignoring site-local configuration >What do you mean? sitecustomize is executed, for example. Whatever, but it only looks for the paths in the included sysconfig.cfg. If the system Python uses a different sort of path in site.py, distutils2 won't use it. --

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-03-20 Thread Andreas Klauer
Andreas Klauer added the comment: > ZFS supports SEEK_HOLE/SEEK_DATA in "lseek()" syscall. > The feature has patches available too for Linux, but never integrated in > mainline kernel, AFAIK. > it is difficult to write a testcase when I can only test under a system with > ZFS I don't know if

[issue13495] IDLE: Regressions - Two ColorDelegator instances loaded and -e no longer edits new files.

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

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list ma

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks to Guilherme Polo and Roger Serwy. -- assignee: -> asvetlov resolution: -> fixed ___ Python tracker ___

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 01404295138d by Andrew Svetlov in branch 'default': #3573: idle now doesn't hungs if launched as: idle -e http://hg.python.org/cpython/rev/01404295138d -- nosy: +python-dev ___ Python tracker

[issue14302] Move python.exe to bin/

2012-03-20 Thread Brian Curtin
Brian Curtin added the comment: > Additionally, the current Path-adding installer handles uninstallation. -- ___ Python tracker ___ _

[issue14302] Move python.exe to bin/

2012-03-20 Thread John Ehresman
John Ehresman added the comment: Does this mean that the PATH entry won't be removed on uninstall? I can't tell from reading #3561, though I may have missed something. My worries are about the developer who doesn't know what the PATH is and would find it difficult to diagnose any problems c

[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: Contributor agreement is here: http://python.org/psf/contrib/contrib-form-python/ ACKS file ships in every Python source tarball (not sure if goes out in the binary ones). Here it is in the repository: http://hg.python.org/cpython/file/default/Misc

[issue14302] Move python.exe to bin/

2012-03-20 Thread Brian Curtin
Brian Curtin added the comment: On 2 and 4, see #3561 for that discussion. A short answer would be that we're consenting adults. Additionally, the current Path-adding installer handles uninstallation. -- ___ Python tracker

[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. >

[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: Thanks and thanks for all you help. My method names are known to need some tweaking. Where is the agreement I need to sign? I looked around the documentation stuff and didn't see it. I'd like to continue contributing just have to find another bug I know how

[issue14302] Move python.exe to bin/

2012-03-20 Thread John Ehresman
John Ehresman added the comment: Just a few thoughts from someone who uses Windows and who'd need to change code for this change: 1) I don't know if waiting to 3.5 is needed. I can make the change to look in the bin directory fairly quickly. 2) Is it safe to add scripts to the PATH? I'd wo

[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 tweaked a couple more of your test method names, but otherwise used your patch as is. Welcome to the ACKS file :) If you haven't already submitted a contributor agreement it would be great if you did. I'm hoping you'll want to continue making contributio

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

2012-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 241c33b6cb95 by R David Murray in branch 'default': #14269: smtpd now conforms to the RFC and requires HELO before MAIL. http://hg.python.org/cpython/rev/241c33b6cb95 -- nosy: +python-dev ___ Python trac

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

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

[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 ___ ___

[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

[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 __

[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 Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[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

[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

[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 _

[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 ___ _

[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:

[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

[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

[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

[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:

[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 __

[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

[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 __

[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 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

[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 __

[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

[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

[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

[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

[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

[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

[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:

[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 ___ ___

[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

[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

[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

[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

[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/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/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 : 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/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
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

[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 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.

[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 __

[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-

[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 ___ ___

[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

[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 ___

[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 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 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

[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=

[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

[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

[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
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
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 ___

[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

[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

[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 ___ ___

[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

[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 __

[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

[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 ___

[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

[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 ___ ___

[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

[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-

[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
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

[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 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.

  1   2   >