[Python-Dev] Schedule for 3.4.3, revised schedule for 3.5.0a1

2015-01-14 Thread Larry Hastings
Python 3.5.0a1 is currently scheduled to be released February 1. Since I'll be on the road that day, the 3.5 team has agreed to push the release back a week. 3.5.0a1 will be tagged Saturday February 7 and released Sunday February 8. This doesn't change any of the other release dates for 3.

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Demian Brecht
On 2015-01-14 1:19 PM, Brett Cannon wrote: > But as Guido pointed out, we _like_ it being difficult to do because we > don't want this kind of substitution happening as code ends up depending on > bugs and quirks that you may fix. I can understand the reasoning. > How many other modules are depen

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Donald Stufft
> On Jan 14, 2015, at 4:19 PM, Brett Cannon wrote: > > But as Guido pointed out, we _like_ it being difficult to do because we don't > want this kind of substitution happening as code ends up depending on bugs > and quirks that you may fix. Not all of us, I hate the default order of sys.path

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Brett Cannon
On Wed Jan 14 2015 at 4:08:52 PM Demian Brecht wrote: > On 2015-01-14 12:25 PM, Guido van Rossum wrote: > > I'm not sure how commit privileges would help you -- can't you just fork > > the CPython (I'm sure there's already a Bitbucket mirror that you can > fork > > easily) and do your work there?

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Demian Brecht
On 2015-01-14 12:25 PM, Guido van Rossum wrote: > I'm not sure how commit privileges would help you -- can't you just fork > the CPython (I'm sure there's already a Bitbucket mirror that you can fork > easily) and do your work there? Even with commit privileges you wouldn't be > committing partial

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Guido van Rossum
Aha. Glad I asked. You would arguably get a more useful response if you asked on core-mentorship and explained some of that background (for those of us who rely on external memory :-). The stdlib intentionally makes what you are trying to do hard (so library writers don't have to worry about stdli

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Demian Brecht
On 2015-01-14 11:35 AM, Guido van Rossum wrote: > Why do you want to hack the existing http modules? > > This is not a rhetorical question. The answer may lead us to redesign the > existing http modules to be more flexible so that the higher-level problem > you are trying to solve by hacking http

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Guido van Rossum
Why do you want to hack the existing http modules? This is not a rhetorical question. The answer may lead us to redesign the existing http modules to be more flexible so that the higher-level problem you are trying to solve by hacking http import can be solved instead by using an interface provide

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Ionel Cristian Mărieș
You could do the sys.modules patch as Antoine suggested in a .pth file, so that it's triggered at startup. Eg, very similar: https://github.com/xando/subprocess.run/blob/ab02d165802b2ad57dd0d16c1169ab05ed312ef1/subprocess.run.pth Thanks, -- Ionel Cristian Mărieș, blog.ionelmc.ro On Wed, Jan 14,

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Demian Brecht
Hm, I /did/ try that but ran into issues. Swapping the custom finder for the monkey patch now seems to work as expected though. Could be that I was doing something else at the time that caused it not to work. I'll keep running with that and will ping the thread if the issues surface again. Thanks

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Antoine Pitrou
On Wed, 14 Jan 2015 12:04:22 -0500 Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 01/14/2015 11:54 AM, Antoine Pitrou wrote: > > On Wed, 14 Jan 2015 08:32:23 -0800 Demian Brecht > > wrote: > >> Hi all, > >> > >> As part of the work I'm doing on httplib3 (now that I'

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/14/2015 11:54 AM, Antoine Pitrou wrote: > On Wed, 14 Jan 2015 08:32:23 -0800 Demian Brecht > wrote: >> Hi all, >> >> As part of the work I'm doing on httplib3 (now that I've actually >> gotten a bit of time), one of the things I'm trying to get

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Antoine Pitrou
On Wed, 14 Jan 2015 08:32:23 -0800 Demian Brecht wrote: > Hi all, > > As part of the work I'm doing on httplib3 (now that I've actually gotten > a bit of time), one of the things I'm trying to get done is injection of > httplib3 over http in order to not have to modify all import paths in > modul

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Demian Brecht
I had considered that but thought that dev might be more appropriate as it's related to overriding a stdlib module in order to work on that module out of band with cpython (with the intention of merging back upstream). I would imagine those on the dev list may be better suited to answer. On Wed, J

Re: [Python-Dev] C ABI and #ifndef Py_LIMITED_API

2015-01-14 Thread Ethan Furman
On 01/14/2015 12:13 AM, Georg Brandl wrote: > On 01/14/2015 08:32 AM, Ethan Furman wrote: >> >> In the CPython source code I see >> >> #ifndef Py_LIMITED_API >> >> Is there a section in the docs that explains the purpose? If not, can >> someone give me the cliff notes version? > > PEP 384, and in

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Demian Brecht
Apologies for the double send, apparently Thunderbird got confused when going through a 4G dead zone. I should mention that I'm aware that any module that previously imported the stdlib version would retain that version rather than a reference to the new one, but I'm okay with that as this is a ve

[Python-Dev] Overriding stdlib http package

2015-01-14 Thread Demian Brecht
Hi all, As part of the work I'm doing on httplib3 (now that I've actually gotten a bit of time), one of the things I'm trying to get done is injection of httplib3 over http in order to not have to modify all import paths in modules and such. Here's the gist of what I have so far: https://gist.gith

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Ian Cordasco
I think this belongs on python-list, not python-dev. On Wed, Jan 14, 2015 at 10:32 AM, Demian Brecht wrote: > Hi all, > > As part of the work I'm doing on httplib3 (now that I've actually gotten > a bit of time), one of the things I'm trying to get done is injection of > httplib3 over http in ord

[Python-Dev] Overriding stdlib http package

2015-01-14 Thread Demian Brecht
Hi all, As part of the work I'm doing on httplib3 (now that I've actually gotten a bit of time), one of the things I'm trying to get done is injection of httplib3 over http in order to not have to modify all import paths in modules and such. Here's the gist of what I have so far: https://gist.gith

[Python-Dev] Fix for `python setup.py check --restructuredtext`

2015-01-14 Thread Marc Abramowitz
Looking for a core developer who can review a distutils change -- it's a very small change: http://bugs.python.org/issue23063 Let me know how I can help (e.g.: if I can review or test something to offset time spent). Cheers, Marc ___ Python-Dev mailing

Re: [Python-Dev] Compile Python on Windows (OpenSSL)

2015-01-14 Thread M.-A. Lemburg
On 13.01.2015 23:50, Victor Stinner wrote: > 2015-01-13 23:46 GMT+01:00 M.-A. Lemburg : >> Just a note of caution: for older preview releases of VS the >> only way to get back to a clean system was to reinstall >> Windows. > > Does it mean that it's not possible to have VS 2008 and VS 2015 > insta

Re: [Python-Dev] C ABI and #ifndef Py_LIMITED_API

2015-01-14 Thread Georg Brandl
On 01/14/2015 08:32 AM, Ethan Furman wrote: > In the CPython source code I see > > #ifndef Py_LIMITED_API > > Is there a section in the docs that explains the purpose? If not, can > someone give me the cliff notes version? PEP 384, and in particular [1] should get you started. cheers, Georg [