Re: [Python-Dev] PEP 487 vs 422 (dynamic class decoration)

2015-04-03 Thread Nick Coghlan
On 3 April 2015 at 11:32, PJ Eby p...@telecommunity.com wrote: On Thu, Apr 2, 2015 at 6:24 PM, Martin Teichmann lkb.teichm...@gmail.com wrote: The whole point of PEP 487 was to reduce PEP 422 so much that it can be written in python and back-ported. As I said earlier, it's a fine feature and

Re: [Python-Dev] PEP 487 vs 422 (dynamic class decoration)

2015-04-03 Thread Nick Coghlan
On 3 April 2015 at 18:21, Nick Coghlan ncogh...@gmail.com wrote: That means I'm now OK with monkeypatching __build_class__ being the only way to get dynamic hooking of the class currently being defined from the class body - folks that really want that behaviour can monkeypatch it in, while

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread M.-A. Lemburg
On 03.04.2015 11:56, Larry Hastings wrote: My Windows development days are firmly behind me. So I don't really have an opinion here. So I put it to you, Windows Python developers: do you care about GnuPG signatures on Windows-specific files? Or do you not care? Regardless of target

[Python-Dev] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread Larry Hastings
As of Python 3.5 Steve Dower has taken over the Windows builds of Python from Martin van Loewis. He's also taken over for 2.7--though Martin's still doing builds for 3.4. For both versions, Steve is using all-new tooling for the build process. The output is different, too; he's producing

[Python-Dev] Socket timeout: reset timeout at each successful syscall?

2015-04-03 Thread Victor Stinner
Hi, I reworked the socket and ssl modules to better handle signals (to implement the PEP 475, retry on EINTR). These changes require to recompute timeout because syscalls are calling in a loop until it doesn't with EINTR (or EWOULDBLOCK or EGAIN). Most socket methods exit when the underlying

Re: [Python-Dev] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread Martin Dengler
On Fri, Apr 03, 2015 at 02:56:53AM -0700, Larry Hastings wrote: So I put it to you, Windows Python developers: do you care about GnuPG signatures on Windows-specific files? Or do you not care? Developer using python on windows here. I care, yes. It's valuable and significant to be able to

Re: [Python-Dev] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread Paul Moore
On 3 April 2015 at 10:56, Larry Hastings la...@hastings.org wrote: My Windows development days are firmly behind me. So I don't really have an opinion here. So I put it to you, Windows Python developers: do you care about GnuPG signatures on Windows-specific files? Or do you not care? I

Re: [Python-Dev] Socket timeout: reset timeout at each successful syscall?

2015-04-03 Thread Victor Stinner
Oh, I forgot to explain that the problem is even more important in the SSL module. In SSL, a single recv() may require to *send* data. The SSL protocol is more complex and may require multiple OpenSSL calls which imply multiple send/recv syscalls. I wrote a patch for the ssl module to implement

Re: [Python-Dev] PEP 487 vs 422 (dynamic class decoration)

2015-04-03 Thread Nick Coghlan
On 4 Apr 2015 00:29, Martin Teichmann lkb.teichm...@gmail.com wrote: When I first wrote PEP 422 I was of the view that Python 2 allows class definition postprocessing injection, we should allow it in Python 3 as well. I've since changed my view to Having to declare post-processing of a

Re: [Python-Dev] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread Steve Dower
Larry Hastings wrote: Steve's also changed the authentication process. His new installers rely on a Windows digital signature technology called Authenticode where the signature is built right into the .exe file. Windows platforms will automatically authenticate executables signed with

Re: [Python-Dev] PEP 487 vs 422 (dynamic class decoration)

2015-04-03 Thread PJ Eby
On Fri, Apr 3, 2015 at 8:44 AM, Martin Teichmann lkb.teichm...@gmail.com wrote: This proposal can actually be seen as an extension to the __class__ and super() mechanism of normal methods: methods currently have the priviledge to know which classes they are defined in, while descriptors don't.

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread M.-A. Lemburg
On 03.04.2015 19:35, Steve Dower wrote: My Windows development days are firmly behind me. So I don't really have an opinion here. So I put it to you, Windows Python developers: do you care about GnuPG signatures on Windows-specific files? Or do you not care? The later replies seem to

[Python-Dev] Summary of Python tracker Issues

2015-04-03 Thread Python tracker
ACTIVITY SUMMARY (2015-03-27 - 2015-04-03) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open4838 (+19) closed 30782 (+50) total 35620 (+69) Open issues

Re: [Python-Dev] PEP 487 vs 422 (dynamic class decoration)

2015-04-03 Thread PJ Eby
On Fri, Apr 3, 2015 at 11:04 AM, Nick Coghlan ncogh...@gmail.com wrote: Extending the descriptor protocol to include a per-descriptor hook that's called at class definition time sounds like a potentially nice way to go to me. While you *could* still use it to arbitrarily mutate the class

Re: [Python-Dev] Installing Python from the source code on Windows

2015-04-03 Thread Terry Reedy
On 4/3/2015 5:51 AM, Narsu wrote: Hi Python I'm working on a game project,using c++ as main language, and using python as script.I've built the Python from the source code on Windows, and when I invoked method Py_Initialize my program exited. After some tests I realized as long as I move the

Re: [Python-Dev] PEP 487 vs 422 (dynamic class decoration)

2015-04-03 Thread PJ Eby
On Fri, Apr 3, 2015 at 4:21 AM, Nick Coghlan ncogh...@gmail.com wrote: That means I'm now OK with monkeypatching __build_class__ being the only way to get dynamic hooking of the class currently being defined from the class body - folks that really want that behaviour can monkeypatch it in,

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread Steve Dower
The thing is, that's exactly the same goodness as Authenticode gives, except everyone gets that for free and meanwhile you're the only one who has admitted to using GPG on Windows :) Basically, what I want to hear is that GPG sigs provide significantly better protection than hashes (and I can

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread M.-A. Lemburg
On 04.04.2015 00:14, Steve Dower wrote: The thing is, that's exactly the same goodness as Authenticode gives, except everyone gets that for free and meanwhile you're the only one who has admitted to using GPG on Windows :) Basically, what I want to hear is that GPG sigs provide

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread Donald Stufft
On Apr 3, 2015, at 6:38 PM, M.-A. Lemburg m...@egenix.com wrote: On 04.04.2015 00:14, Steve Dower wrote: The thing is, that's exactly the same goodness as Authenticode gives, except everyone gets that for free and meanwhile you're the only one who has admitted to using GPG on Windows :)

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread Nathaniel Smith
On Apr 3, 2015 5:50 PM, Donald Stufft don...@stufft.io wrote: On Apr 3, 2015, at 6:38 PM, M.-A. Lemburg m...@egenix.com wrote: On 04.04.2015 00:14, Steve Dower wrote: The thing is, that's exactly the same goodness as Authenticode gives, except everyone gets that for free and meanwhile

[Python-Dev] Installing Python from the source code on Windows

2015-04-03 Thread Narsu
Hi Python I'm working on a game project,using c++ as main language, and using python as script.I've built the Python from the source code on Windows, and when I invoked method Py_Initialize my program exited. After some tests I realized as long as I move the Python-2.7.9/Lib file to my program

Re: [Python-Dev] PEP 487 vs 422 (dynamic class decoration)

2015-04-03 Thread Martin Teichmann
When I first wrote PEP 422 I was of the view that Python 2 allows class definition postprocessing injection, we should allow it in Python 3 as well. I've since changed my view to Having to declare post-processing of a class definition up front as a decorator, base class or metaclass is a good

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread Barry Warsaw
On Apr 03, 2015, at 02:56 AM, Larry Hastings wrote: My Windows development days are firmly behind me. So I don't really have an opinion here. So I put it to you, Windows Python developers: do you care about GnuPG signatures on Windows-specific files? Or do you not care? They're not mutually

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-03 Thread Brian Curtin
On Fri, Apr 3, 2015 at 7:25 AM, Paul Moore p.f.mo...@gmail.com wrote: On 3 April 2015 at 10:56, Larry Hastings la...@hastings.org wrote: My Windows development days are firmly behind me. So I don't really have an opinion here. So I put it to you, Windows Python developers: do you care about