Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-03-01 Thread Nick Coghlan
On 2 March 2017 at 02:29, Barry Warsaw wrote: > On Mar 01, 2017, at 10:55 AM, Victor Stinner wrote: > > >I suggest to create 3rd party modules on PyPI. It became easy to pull > >dependencies using pip and virtualenv. > > > >It seems like https://github.com/aio-libs is the home of many asyncio > >

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Louis Bouchard
Hello, Le 01/03/2017 à 20:40, Antoine Pitrou a écrit : > On Wed, 1 Mar 2017 20:24:03 +0100 > Louis Bouchard wrote: >> >> Indeed, this is something that is in the history of the LP bug so here is the >> URL where those comparison can be found : >> >> https://docs.google.com/spreadsheets/d/1MyNBPVZ

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Victor Stinner
Hi, Your document doesn't explain how you configured the host to run benchmarks. Maybe you didn't tune Linux or anything else? Be careful with modern hardware which can make funny (or not) surprises. See my recent talk at FOSDEM (last month): "How to run a stable benchmark" https://fosdem.org/201

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Antoine Pitrou
On Wed, 1 Mar 2017 20:24:03 +0100 Louis Bouchard wrote: > > Indeed, this is something that is in the history of the LP bug so here is the > URL where those comparison can be found : > > https://docs.google.com/spreadsheets/d/1MyNBPVZlBeic1OLqVKe_bcPk2deO_pQs9trIfOFefM0/edit#gid=2034603487 Some

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Louis Bouchard
Hello, Le 01/03/2017 à 18:51, Antoine Pitrou a écrit : > On Wed, 1 Mar 2017 12:28:24 -0500 > Barry Warsaw wrote: >> >> Louis (Cc'd here) has done a ton of work to measure and analyze the problem, >> but we've more or less hit a roadblock, so we're taking the issue public to >> see if anybody on t

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Antoine Pitrou
On Wed, 1 Mar 2017 19:58:14 +0100 Matthias Klose wrote: > On 01.03.2017 18:51, Antoine Pitrou wrote: > > As for the high level: what if the training set used for PGO in Xenial > > has become skewed or inadequate? > > running the testsuite I did some tests a year or two ago, and running the who

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Matthias Klose
On 01.03.2017 18:51, Antoine Pitrou wrote: > As for the high level: what if the training set used for PGO in Xenial > has become skewed or inadequate? running the testsuite ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailma

Re: [Python-Dev] Python-3.6.0 compilation error

2017-03-01 Thread Brett Cannon
This mailing list is for the development **of** Python, not **with** it. For build failures like this it's best to ask on python-list (and if you search for the missing libintl_* symbols you will find they come from gettext). On Wed, 1 Mar 2017 at 08:10 Porel, Subrata wrote: > Hi Team, > > > > W

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Antoine Pitrou
On Wed, 1 Mar 2017 12:28:24 -0500 Barry Warsaw wrote: > > Louis (Cc'd here) has done a ton of work to measure and analyze the problem, > but we've more or less hit a roadblock, so we're taking the issue public to > see if anybody on this mailing list has further ideas. A detailed analysis is > a

[Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Barry Warsaw
Hello all, Over in Ubuntu, we've gotten reports about some performance regressions in Python 2.7 when moving from Trusty (14.04 LTS) to Xenial (16.04 LTS). Trusty's version is based on 2.7.6 while Xenial's version is based on 2.7.12 with bits of .13 cherry picked. We've not been able to identify

Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-03-01 Thread Barry Warsaw
On Mar 01, 2017, at 10:55 AM, Victor Stinner wrote: >I suggest to create 3rd party modules on PyPI. It became easy to pull >dependencies using pip and virtualenv. > >It seems like https://github.com/aio-libs is the home of many asyncio >libraries. This is what we did for aiosmtpd, an asyncio-base

[Python-Dev] Python-3.6.0 compilation error

2017-03-01 Thread Porel, Subrata
Hi Team, While trying to compile the Python-3.6.0 in our Solaris 10 server to install this beside python 2.6.4 we have got below error: Please help on this. root@xxyyzz:/opt/Python-3.6.0#python Python 2.6.4 (r264:75706, Jun 27 2012, 05:45:50) [C] on sunos5 Type "help", "copyright", "credits" or

Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-03-01 Thread Paul Moore
On 1 March 2017 at 15:34, Yury Selivanov wrote: > +1 to put both in contextlib. With the proviso that the implementation shouldn't depend on asyncio. As Yury says, it should be framework agnostic, let's be careful to make that the case and not rely on helpers from asyncio, either deliberately or

Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-03-01 Thread Yury Selivanov
On 2017-03-01 2:16 AM, Nathaniel Smith wrote: On Tue, Feb 28, 2017 at 9:42 PM, Nick Coghlan wrote: Short version: - there are some reasonable requests for async variants of contextlib APIs for 3.7 - prompted by Raymond, I'm thinking it actually makes more sense to add these in a new `asyncio

Re: [Python-Dev] API design: where to add async variants ofexisting stdlib APIs?

2017-03-01 Thread Steve Dower
Big +1 here, and an implicit -1 on the other suggestions. asyncio != async/await Cheers, Steve Top-posted from my Windows Phone -Original Message- From: "Nathaniel Smith" Sent: ‎2/‎28/‎2017 23:19 To: "Nick Coghlan" Cc: "python-dev@python.org" Subject: Re: [Python-Dev] API design: wh

Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-03-01 Thread Yury Selivanov
On 2017-03-01 12:42 AM, Nick Coghlan wrote: Short version: - there are some reasonable requests for async variants of contextlib APIs for 3.7 - prompted by Raymond, I'm thinking it actually makes more sense to add these in a new `asyncio.contextlib` module than it does to add them directly to

Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-03-01 Thread Victor Stinner
Please don't put code using asyncio in Python stdlib yet. The Python language is still changing rapidly to get new async features (async/await keywords, async generators, etc.), and asyncio also evolved quickly. I suggest to create 3rd party modules on PyPI. It became easy to pull dependencies usi