Re: [Python-Dev] Return type of alternative constructors

2016-05-10 Thread Guido van Rossum
On Tue, May 10, 2016 at 6:21 AM, Nick Coghlan wrote: > On 10 May 2016 at 02:30, Guido van Rossum wrote: > > On Sun, May 8, 2016 at 7:52 PM, Nick Coghlan wrote: > >> P.S. It occurs to me that a sufficiently sophisticated typechecker > >> might be able to look at all of the calls to "cls(*args, *

Re: [Python-Dev] ctypes compatibility with 2.3

2016-05-10 Thread Brett Cannon
On Tue, 10 May 2016 at 01:18 Martin Panter wrote: > I am working on , to fix shell > injection problems with ctypes.util.find_library(). The proposal for > Python 3 is to change os.popen(shell-script) calls to use > subprocess.Popen(). > > However the Python 2.

Re: [Python-Dev] Return type of alternative constructors

2016-05-10 Thread Nick Coghlan
On 10 May 2016 at 02:30, Guido van Rossum wrote: > On Sun, May 8, 2016 at 7:52 PM, Nick Coghlan wrote: >> P.S. It occurs to me that a sufficiently sophisticated typechecker >> might be able to look at all of the calls to "cls(*args, **kwds)" in >> class methods and "type(self)(*args, **kwds)" in

[Python-Dev] ctypes compatibility with 2.3

2016-05-10 Thread Martin Panter
I am working on , to fix shell injection problems with ctypes.util.find_library(). The proposal for Python 3 is to change os.popen(shell-script) calls to use subprocess.Popen(). However the Python 2.7 version of the module has a comment which says “This file sho