[issue16831] Better docs for ABCMeta.__subclasshook__

2012-12-31 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ Pyt

[issue16831] Better docs for ABCMeta.__subclasshook__

2012-12-31 Thread Nick Coghlan
Nick Coghlan added the comment: Also, we should probably explain the approach we chose to follow in the stdlib, where we block implicit inheritance of __subclasshook__ behaviour by include an explicit type check at the start of the implementation, so it always returns NotImplemented when the f

[issue16832] Expose cache validity checking support in ABCMeta

2012-12-31 Thread Nick Coghlan
New submission from Nick Coghlan: ABCMeta uses an internal counter to invalidate the negative caches when a register() call changes the virtual inheritance graph. (A global count of register() calls is stored on ABCMeta, which ABCMeta.__instancecheck__ and ABCMeta.__subclasscheck__ then compar

[issue12915] Add inspect.locate and inspect.resolve

2012-12-31 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2012-12-31 Thread Meador Inge
Meador Inge added the comment: Is the attached OK? -- keywords: +patch nosy: +meador.inge stage: test needed -> patch review Added file: http://bugs.python.org/file28517/issue16826-0.patch ___ Python tracker __

[issue16831] Better docs for ABCMeta.__subclasshook__

2012-12-31 Thread Nick Coghlan
New submission from Nick Coghlan: Authors of __subclasshook__ methods need to decide between returning True, False and NotImplemented in various cases. Making that decision requires a clear understanding that the checks in ABCMeta.__subclasscheck__ occur in the following order: - explicit reg

[issue16659] Pure Python implementation of random

2012-12-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay thanks. I'll look over the patch in detail over the next few days. FYI, I'm the maintainer of this module (and was the one to add the original Mersenne Twister code). -- assignee: serhiy.storchaka -> rhettinger _

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-31 Thread Eli Bendersky
Eli Bendersky added the comment: A couple of high-level questions about the C code (this isn't a detailed review yet): 1. Why did you choose to implement __reduce__ and not __getstate__? 2. A lot of code appears to be shared between element_setstate_from_attributes and the init method implemen

[issue16830] Add skip_host and skip_accept_encoding to httplib/http.client

2012-12-31 Thread Berker Peksag
Changes by Berker Peksag : -- versions: -Python 2.7, Python 3.1, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16819] IDLE b"" method completion incorrect

2012-12-31 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2012-12-31 Thread Roger Serwy
Roger Serwy added the comment: In Objects/unicodeobject.c in PyUnicode_FromObject, the call to PyUnicode_CheckExact fails when using 8.6.0 but works with 8.5.13. -- ___ Python tracker _

[issue16830] Add skip_host and skip_accept_encoding to httplib/http.client

2012-12-31 Thread Bryan Bishop
New submission from Bryan Bishop: Sometimes I am using httplib/http.client and the server is not exactly conforming to HTTP specs. I need to be able to specify the exact headers that are sent to the server. By default, httplib/http.client injects headers like "Host" and "Accept-Encoding". Iss

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2012-12-31 Thread Daniel Shahaf
Changes by Daniel Shahaf : -- nosy: +danielsh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue14958] IDLE 3 and PEP414 - highlighting unicode literals

2012-12-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0dbdb85fd141 by Ned Deily in branch '2.7': Issue #14958: backport to 2.7.x from 3.3 (patch by Roger Serwy) http://hg.python.org/cpython/rev/0dbdb85fd141 -- ___ Python tracker

[issue16434] SocketServer call shutdown in the wrong way

2012-12-31 Thread Senthil Kumaran
Senthil Kumaran added the comment: Looks an invalid bug to me as well. request is a socket.socket object and has shutdown method taking a single argument. The error pasted in the report leads me to believe if the shutdown_request call is not thread-safe and it is ending up called shutdown meth

[issue16829] IDLE on POSIX can't print filenames with spaces

2012-12-31 Thread Roger Serwy
Roger Serwy added the comment: I can confirm this bug for POSIX platforms. Changing the lpr command in config-main.def to quote the filename seems to fix the problem. print-command-posix=lpr "%%s" It might also be a problem on Windows, but I haven't tried it. -- keywords: +easy n

[issue16829] IDLE on Mac OSX can't print filenames with spaces

2012-12-31 Thread Rod Nayfield
New submission from Rod Nayfield: Likely has the same issue on any platform which uses the same functionality (lpr filename to print). -- components: IDLE messages: 178715 nosy: Rod.Nayfield priority: normal severity: normal status: open title: IDLE on Mac OSX can't print filenames with

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2012-12-31 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue16827] Remove the relatively advanced content from section 2 in tutorial

2012-12-31 Thread Senthil Kumaran
Senthil Kumaran added the comment: +1 from me as well. I am also adding Eric who might have views on the customization part which added by him. -- nosy: +eric.araujo, orsenthil ___ Python tracker _

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue16808] inspect.stack() should return list of named tuples

2012-12-31 Thread Daniel Shahaf
Daniel Shahaf added the comment: Fixed that in v3. -- Added file: http://bugs.python.org/file28515/inspect-v3.diff ___ Python tracker ___

[issue11939] Implement stat.st_dev and os.path.samefile on windows

2012-12-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3738d270c54a by Brian Curtin in branch 'default': st_dev/st_rdev should be unsigned long as dwVolumeSerialNumber, which it is set to, is a DWORD. This was fixed in #11939 and the overflow was mentioned in #10657 and seen by me on some machines. htt

[issue10657] os.lstat/os.stat/os.fstat don't set st_dev (st_rdev) on Windows

2012-12-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3738d270c54a by Brian Curtin in branch 'default': st_dev/st_rdev should be unsigned long as dwVolumeSerialNumber, which it is set to, is a DWORD. This was fixed in #11939 and the overflow was mentioned in #10657 and seen by me on some machines. htt

[issue10657] os.lstat/os.stat/os.fstat don't set st_dev (st_rdev) on Windows

2012-12-31 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Implement stat.st_dev and os.path.samefile on windows ___ Python tracker _

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-31 Thread Wolfgang Scherer
Wolfgang Scherer added the comment: Thanks, works for me. I only noted the discrepancy and did not give it much thought. I will just implement a merge method on top of read_dict. That gives me all options that could be desired :). However, after implementing the entire compatibility layer, I fo

[issue16828] bz2 error on compression of empty string

2012-12-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue16808] inspect.stack() should return list of named tuples

2012-12-31 Thread Meador Inge
Meador Inge added the comment: This patch looks good to me with the exception that "versionchanged" should be 3.4. -- assignee: -> meador.inge nosy: +meador.inge stage: needs patch -> commit review ___ Python tracker

[issue16591] RUNSHARED wrong for OSX no framework

2012-12-31 Thread Fabian Groffen
Fabian Groffen added the comment: > Which shell doesn't have $(command) support? It is not a bash-ism, but > is part of the POSIX shell definition (but wasn't present in older sh > implementations). Solaris' /bin/sh. -- ___ Python tracker

[issue16828] bz2 error on compression of empty string

2012-12-31 Thread Martin
Martin added the comment: On 2.7 only the compress() function is affected, and the fix is much simpler. Just using BZ_FINISH when the input is less then 4GB is sufficient. -- Added file: http://bugs.python.org/file28513/bz2_compress_empty_string_27.patch ___

[issue16828] bz2 error on compression of empty string

2012-12-31 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16828] bz2 error on compression of empty string

2012-12-31 Thread Martin
Martin added the comment: On trunk, both the compressor and the standalone function (which uses the compressor) are affected. The easiest fix is rearranging the logic in function shared between BZ2Compressor.compress and BZ2Compressor.flush so the exit on no remaining input for the former case

[issue16828] bz2 error on compression of empty string

2012-12-31 Thread Martin
New submission from Martin: The fix from issue 14398 for >4GB inputs regressed the behaviour when compressing an empty string. Going by issue 853061 the expectation is this should work. The problem was noticed when using the updated Python 2.7 package in Ubuntu Raring caused test failures in

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-12-31 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-12-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset c5c27b84d7af by Giampaolo Rodola' in branch '2.7': Fix issue 10527: make multiprocessing use poll() instead of select() if available. http://hg.python.org/cpython/rev/c5c27b84d7af -- ___ Python tracker

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-12-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5530251d9cac by Giampaolo Rodola' in branch '3.2': Fix issue 10527: make multiprocessing use poll() instead of select() if available. http://hg.python.org/cpython/rev/5530251d9cac New changeset d89891f3f769 by Giampaolo Rodola' in branch '3.3': Fix

[issue10657] os.lstat/os.stat/os.fstat don't set st_dev (st_rdev) on Windows

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was implemented in issue11939 for Python 3.4 only. -- nosy: +brian.curtin, serhiy.storchaka ___ Python tracker ___ __

[issue16653] reference kept in f_locals prevents the tracing/profiling of a destructor

2012-12-31 Thread Ned Batchelder
Changes by Ned Batchelder : -- nosy: +nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16802] fileno argument to socket.socket() undocumented

2012-12-31 Thread Guido van Rossum
Guido van Rossum added the comment: I recommend documenting it. On Monday, December 31, 2012, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Indeed. In any case, if this idiom is widely used, we can't hide this > parameter and should document it (and perhaps document this i

[issue16653] reference kept in f_locals prevents the tracing/profiling of a destructor

2012-12-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch breaks extension modules (for example Ned Batchelder's coverage.py) that use PyEval_SetTrace to set the trace function. -- ___ Python tracker ___

[issue16320] Establish order in bytes/string dependencies

2012-12-31 Thread Meador Inge
Meador Inge added the comment: On Mon, Dec 31, 2012 at 4:50 AM, Serhiy Storchaka wrote: >> The cleanup of BYTESTR_DEPS and UNICODE_DEPS seems reasonable, but can you >> explain the rationale behind removing the additional dependencies on >> formatter_unicode.c? > > This question already was ask

[issue9645] PEP 383: os.pathconf() does not accept surrogateescape arguments

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please provide a full patch, doesn't split it on parts which should be applied one over other. Test needed. -- stage: patch review -> test needed ___ Python tracker _

[issue9644] PEP 383: os.statvfs() does not accept surrogateescape arguments

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: At first sight the patch looks good, but test needed. -- stage: patch review -> test needed ___ Python tracker ___

[issue9644] PEP 383: os.statvfs() does not accept surrogateescape arguments

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was fixed in 3.3 (the complex solution is not backportable), therefore this is 3.2 only issue. -- nosy: +haypo, serhiy.storchaka stage: -> patch review versions: -Python 3.1 ___ Python tracker

[issue9645] PEP 383: os.pathconf() does not accept surrogateescape arguments

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was fixed in 3.3 (the complex solution is not backportable), therefore this is 3.2 only issue. -- nosy: +haypo, serhiy.storchaka stage: -> patch review versions: -Python 3.1 ___ Python tracker

[issue16787] asyncore.dispatcher_with_send - increase the send buffer size

2012-12-31 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: BTW, the patch looks ok to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue16787] asyncore.dispatcher_with_send - increase the send buffer size

2012-12-31 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Does asyncore expose its implementation details? I was talking about asynchat. What is supposed to change is asynchat.async_chat.producer_fifo attribute which is currently a collections.deque object. -- ___ Py

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-12-31 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Well, for now I'd say let's just check in this patch as-is. I would be keen on considering this a bug and hence address the patch for Python 2.7, 3.2, 3.3 and 3.4. -- ___ Python tracker

[issue7735] socket.create_connection() creates IPv6 DNS requests even when built with --disable-ipv6

2012-12-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7735] socket.create_connection() creates IPv6 DNS requests even when built with --disable-ipv6

2012-12-31 Thread Ralf Schmitt
Ralf Schmitt added the comment: Daniel is pretty much spot on, thanks for that! Regarding the use case: I disabled IPv6 system wide when building packages via gentoo's USE flag. I didn't do anything in order to configure IPv6 or remove it. My local network interface having a local link address i

[issue16802] fileno argument to socket.socket() undocumented

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed. In any case, if this idiom is widely used, we can't hide this parameter and should document it (and perhaps document this idiom). If BDFL not want this parameter was made public, he would not have added it as an keyword argument. However, may be to a

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2012-12-31 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16591] RUNSHARED wrong for OSX no framework

2012-12-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: On 31 Dec, 2012, at 15:59, Fabian Groffen wrote: > > Fabian Groffen added the comment: > > re: single quotes -> double quotes > > I made RUNSHARED consistent (although, as you point out, less broken) with > the other RUNSHARED assignments right above. If

[issue6010] unable to retrieve latin-1 encoded data from sqlite3

2012-12-31 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16783] sqlite3 accepts strings it cannot (by default) return

2012-12-31 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is one additional benefit. I have already implemented audioop module in Python, and due to this it has found many bugs in the current C implementation (issue16686). -- ___ Python tracker

[issue16591] RUNSHARED wrong for OSX no framework

2012-12-31 Thread Fabian Groffen
Fabian Groffen added the comment: re: single quotes -> double quotes I made RUNSHARED consistent (although, as you point out, less broken) with the other RUNSHARED assignments right above. If suggest to tackle the issue of whitespace support for all RUNSHARED assignments, not just Darwin case

[issue16591] RUNSHARED wrong for OSX no framework

2012-12-31 Thread Hynek Schlawack
Hynek Schlawack added the comment: I’m fine with that. My focus was fixing the ticket metadata. :) -- ___ Python tracker ___ ___ Pytho

[issue16591] RUNSHARED wrong for OSX no framework

2012-12-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: > Hynek Schlawack added the comment: > > $(pwd) I'd usually agree, but this is a configure script and those shouldn't contain shell features invented after 1970 :-) More seriously, a large subset of command interpolations in configure.ac use backticks. ---

[issue16659] Pure Python implementation of random

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't want to make a decision on the inclusion of this code. However, I will undertake to maintain it. I'm going to fix one algorithmic bug in current implementation and add C implementations for some methods which significantly slowed in Python implementa

[issue16591] RUNSHARED wrong for OSX no framework

2012-12-31 Thread Hynek Schlawack
Hynek Schlawack added the comment: $(pwd) -- stage: -> patch review versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue16802] fileno argument to socket.socket() undocumented

2012-12-31 Thread Richard Oudkerk
Richard Oudkerk added the comment: > There is an alternative (documented) interface: > > socket.fromfd(handle, socket.AF_INET, socket.SOCK_STREAM).close() socket.fromfd() duplicates the handle, so that does not close the original handle. -- ___

[issue16827] Remove the relatively advanced content from section 2 in tutorial

2012-12-31 Thread Ezio Melotti
Ezio Melotti added the comment: +1 -- keywords: +easy nosy: +chris.jerdonek, ezio.melotti stage: -> needs patch type: -> enhancement versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker __

[issue16827] Remove the relatively advanced content from section 2 in tutorial

2012-12-31 Thread Ramchandra Apte
New submission from Ramchandra Apte: Most of the content in section 2 in the tutorial, http://docs.python.org/3/tutorial/interpreter.html , is relatively advanced and doesn't belong in, at least, the beginning of the tutorial. Only 2.1. Invoking the Interpreter, and 2.2.3. Source Code Encoding

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2012-12-31 Thread Brett Cannon
New submission from Brett Cannon: Importlib, when checking for PYTHONCASEOK, does not respect -E as it did in Python 3.2 and earlier (http://hg.python.org/cpython/file/0786dfc3b2b4/Python/import.c#l1933). -- components: Interpreter Core keywords: 3.2regression messages: 178679 nosy: br

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-12-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I know. I proposed something like that here: > http://mail.python.org/pipermail/python-ideas/2012-May/015223.html. > In theory all the necessary pieces are already there. What's missing > is an agreement on what the API should look like, and that's the hard > p

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-12-31 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I know. I proposed something like that here: http://mail.python.org/pipermail/python-ideas/2012-May/015223.html. In theory all the necessary pieces are already there. What's missing is an agreement on what the API should look like, and that's the hard part '

[issue16659] Pure Python implementation of random

2012-12-31 Thread Brett Cannon
Brett Cannon added the comment: In response to Raymond: First, Serhiy is a core developer now, so if he wants to commit this code and maintain it I have no objections as it doesn't detract from anything and the maintenance burden is his if he wants it. Whether any of us view it as the best us

[issue16802] fileno argument to socket.socket() undocumented

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It has at least one potential use. On Windows socket.detach() returns a > socket handle but there is no documented way to close it -- os.close() > will not work. The only way to close it that I can see (without resorting > to ctypes) is with something like

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-31 Thread Brett Cannon
Brett Cannon added the comment: One thing I should say about this list of modules is please don't go nuts porting every single module blindly. There is always a possibility that another VM has already ported the code and has simply not contributed it back and so there is no need to write it fr

[issue16803] Make test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2012-12-31 Thread Brett Cannon
Changes by Brett Cannon : -- title: Make time_importlib run tests under both _frozen_importlib and importlib._bootstrap -> Make test_importlib run tests under both _frozen_importlib and importlib._bootstrap ___ Python tracker

[issue16591] RUNSHARED wrong for OSX no framework

2012-12-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch can cause problems when either DYLD_LIBRARY_PATH or the current working directory contains whitepace, a better fix is: RUNSHARED=DYLD_LIBRARY_PATH="`pwd`:${DYLD_LIBRARY_PATH}" (That is, replace the single quotes by double quotes) -- nosy: +

[issue16825] all OK!!!

2012-12-31 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue16825] all OK!!!

2012-12-31 Thread Bernie Keimel
Changes by Bernie Keimel : -- nosy: Bernie.Keimel priority: normal severity: normal status: open title: all OK!!! ___ Python tracker ___ _

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-31 Thread Łukasz Langa
Łukasz Langa added the comment: For the record, the bug that caused the following to be equivalent: parser['DEFAULT'] = {'option': 'value'} parser['DEFAULT'].update({'option': 'value'}) has been fixed for 3.3.1+ only. This way it's going to be easier for users to reason about the fix ("it

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 459a23083b66 by Łukasz Langa in branch '3.3': Fixes `__setitem__` on parser['DEFAULT'] reported in issue #16820. http://hg.python.org/cpython/rev/459a23083b66 New changeset f6fb5a5748f0 by Łukasz Langa in branch 'default': Merged `parser['DEFAULT'].

[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2012-12-31 Thread Charles-François Natali
Charles-François Natali added the comment: The first reason for not calling atexit handlers upon exec() is that it wouldn't be async-safe anymore, and could result in deadlocks. Also, since atexit handlers are inherited upon fork(), running atexit handlers upon exec() could result in such handler

[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2012-12-31 Thread Georg Brandl
Georg Brandl added the comment: FTR, with C's atexit(3), the handlers are not called either on exec(). -- nosy: +georg.brandl ___ Python tracker ___ _

[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2012-12-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: That's a good question. Conceptually it makes sense, but I wonder if programs currently rely on os.execv not cleaning up anything: not only it doesn't call atexit handlers, but it also doesn't try to shutdown the interpreter. Which can be handy if you are usin

[issue16802] fileno argument to socket.socket() undocumented

2012-12-31 Thread Richard Oudkerk
Richard Oudkerk added the comment: > The "fileno" argument looks like an implementation detail to me. It has at least one potential use. On Windows socket.detach() returns a socket handle but there is no documented way to close it -- os.close() will not work. The only way to close it that I

[issue16061] performance regression in string replace for 3.3

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > str_replace_1char.patch: why not implementing replace_1char_inplace() in > stringlib, with one version per character type (UCS1, UCS2, UCS4)? Because there are no benefits to do it. All three versions (UCS1, UCS2, and UCS4) have no any common code. The best

[issue16802] fileno argument to socket.socket() undocumented

2012-12-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: The "fileno" argument looks like an implementation detail to me. -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue16821] bundlebuilder broken in 2.7

2012-12-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: It probably works because IDLE.app only uses the stdlib (that is, anything imported from the main script is in the stdlib) The bundlebuilder call for IDLE.app: $(RUNSHARED) @ARCH_RUN_32BIT@ $(BUILDPYTHON) $(BUNDLEBULDER) \ --builddir=. \

[issue16801] Preserve original representation for integers / floats in docstrings

2012-12-31 Thread Georg Brandl
Georg Brandl added the comment: > 20+ years of Python success suggest this isn't a problem that needs solving. That reasoning could be applied to almost all open tracker issues. > Likewise, Linux itself doesn't preserve the original form of a chmod call. Where would/could it do so? C has no i

[issue16821] bundlebuilder broken in 2.7

2012-12-31 Thread Barry Alan Scott
Barry Alan Scott added the comment: Why not use IDLE? Workbench is a lot of code and dependencies. I expect that it works because idle.app was created using the --no-zipimport option that is new in 2.7. However with zip import the code is badly broken. Build IDLE.app with zip import and you s

[issue16320] Establish order in bytes/string dependencies

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The cleanup of BYTESTR_DEPS and UNICODE_DEPS seems reasonable, but can you > explain the rationale behind removing the additional dependencies on > formatter_unicode.c? This question already was asked by Antoine on IRC. Because now Python/formatter_unicode.

[issue1222585] C++ compilation support for distutils

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file28511/python-3.4-distutils-C++.patch ___ Python tracker ___

[issue1222585] C++ compilation support for distutils

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file28510/python-3.3-distutils-C++.patch ___ Python tracker ___

[issue1222585] C++ compilation support for distutils

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file28509/python-3.2-distutils-C++.patch ___ Python tracker ___

[issue1222585] C++ compilation support for distutils

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- keywords: +patch Added file: http://bugs.python.org/file28508/python-2.7-distutils-C++.patch ___ Python tracker ___

[issue1222585] C++ compilation support for distutils

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I attach updated patches for distutils in case somebody wants to use them. (I privately update them once per week.) -- ___ Python tracker __

[issue1222585] C++ compilation support for distutils

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file16630/python-LDCXXSHARED.patch ___ Python tracker ___

[issue16802] fileno argument to socket.socket() undocumented

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The fileno parameter was added in the changeset 8e062e572ea4. It was mentioned in comments at the top of Modules/socketmodule.c, but not in the documentation or docstrings (nor for _socket.socket, nor for socket.socket). -- assignee: -> docs@python

[issue16824] typo in test

2012-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed. Thank you, Stefan. I will be glad to see new bugs which you will found with Cython. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: compile error -> behavior ___ Python tr

[issue16824] typo in test

2012-12-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9472928af085 by Serhiy Storchaka in branch '3.3': Issue #16824: Fix a failure guard in the never reached in the normal test execution code in test_pep380. http://hg.python.org/cpython/rev/9472928af085 New changeset 5ef7d9d6 by Serhiy Storchaka

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-12-31 Thread Charles-François Natali
Charles-François Natali added the comment: The patch looks good, however there's something really bothering me: in issue #14635, the same type of patch was applied to telnetlib, here, it's multiprocessing and AFAICT, any single use of select() in the standard library is subject to this FD_SETSIZE

[issue16824] typo in test

2012-12-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list ma

[issue16659] Pure Python implementation of random

2012-12-31 Thread Stefan Behnel
Stefan Behnel added the comment: FWIW, PyPy has an (R)Python implementation already: https://bitbucket.org/pypy/pypy/src/default/pypy/rlib/rrandom.py -- nosy: +scoder ___ Python tracker ___

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file20584/python-2.7-issue1674555.patch ___ Python tracker ___ ___

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file20583/python-3.2-issue1674555.patch ___ Python tracker ___ ___

  1   2   >