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

2017-03-03 Thread Wang, Peter Xihong
Hello, All, We have been tracking Python performance over the last 1.5 years, and results (along with other languages) are published daily at this site: https://languagesperformance.intel.com/ This general regression trend discussed is same as we observed. The Python source codes are being pull

Re: [Python-Dev] Type annotations and metaclasses

2017-03-03 Thread Ivan Levkivskyi
Hi Thomas, I think this question is more appropriate for mypy or typing trackers: https://github.com/python/mypy/issues https://github.com/python/typing/issues -- Ivan On 3 March 2017 at 22:56, Thomas Hauk wrote: > I’ve read through PEPs 483, 484, and 526, but I don’t see any discussion > of

[Python-Dev] Type annotations and metaclasses

2017-03-03 Thread Thomas Hauk
I've read through PEPs 483, 484, and 526, but I don't see any discussion of how type hints should work when the type of a class member differs from the type of an instance member, like when metaclasses are used to create instances. e.g.: >>> from django.db import models >>> class MyModel(models

[Python-Dev] Summary of Python tracker Issues

2017-03-03 Thread Python tracker
ACTIVITY SUMMARY (2017-02-24 - 2017-03-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: open5851 (+18) closed 35618 (+53) total 41469 (+71) Open issues wit

Re: [Python-Dev] Enum conversions in the stdlib

2017-03-03 Thread Guyzmo via Python-Dev
On Thu, Mar 02, 2017 at 04:13:17PM -0800, Ethan Furman wrote: > The resulting enumeration is neither in alpha nor value order. While this > has no bearing on programmatic usage I would like these Enums to be ordered, > preferably by value. > > Would anyone prefer lexicographical ordering, and if s

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

2017-03-03 Thread Louis Bouchard
Hello, Le 03/03/2017 à 15:37, Louis Bouchard a écrit : > Hello, > > Le 03/03/2017 à 15:31, Victor Stinner a écrit : >>> Out of curiosity, I ran the set of benchmarks in two LXC containers running >>> centos7 (2.7.5 + gcc 4.8.5) and Fedora 25 (2.7.13 + gcc 6.3.x). The >>> benchmarks >>> do run fa

Re: [Python-Dev] Enum conversions in the stdlib

2017-03-03 Thread Ethan Furman
On 03/03/2017 02:35 AM, Guyzmo wrote: On Thu, Mar 02, 2017 at 04:13:17PM -0800, Ethan Furman wrote: The resulting enumeration is neither in alpha nor value order. While this has no bearing on programmatic usage I would like these Enums to be ordered, preferably by value. Would anyone prefer

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

2017-03-03 Thread Louis Bouchard
Hello, Le 03/03/2017 à 15:31, Victor Stinner a écrit : >> Out of curiosity, I ran the set of benchmarks in two LXC containers running >> centos7 (2.7.5 + gcc 4.8.5) and Fedora 25 (2.7.13 + gcc 6.3.x). The >> benchmarks >> do run faster in 18 benchmarks, slower on 12 and insignificant for the rest

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

2017-03-03 Thread Victor Stinner
> Out of curiosity, I ran the set of benchmarks in two LXC containers running > centos7 (2.7.5 + gcc 4.8.5) and Fedora 25 (2.7.13 + gcc 6.3.x). The benchmarks > do run faster in 18 benchmarks, slower on 12 and insignificant for the rest > (~33 > from memory). "faster" or "slower" is relative: I w

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

2017-03-03 Thread Louis Bouchard
Hello, Le 03/03/2017 à 08:27, Nick Coghlan a écrit : > On 2 March 2017 at 07:00, Victor Stinner > wrote: > > Hi, > > Your document doesn't explain how you configured the host to run > benchmarks. Maybe you didn't tune Linux or anything else? Be caref

Re: [Python-Dev] why multiprocessing use os._exit

2017-03-03 Thread Oleg Broytman
Hello. This mailing list is to work on developing Python (adding new features to Python itself and fixing bugs); if you're having problems learning, understanding or using Python, please find another forum. Probably python-list/comp.lang.python mailing list/news group is the best place; there a

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

2017-03-03 Thread Charalampos Stratakis
And that is the reason I wanted to test this a bit more. However it adds a maintenance burden when fast fixes need to be applied (aka now that Fedora 26 alpha is being prepared). The build now due to the arm architecture and the huge test suite takes approximately 3 hours and 30 minutes. Increa

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

2017-03-03 Thread Victor Stinner
2017-03-03 12:18 GMT+01:00 Charalampos Stratakis : > PGO is not enabled in RHEL and Fedora. > > I did some initial testing for Fedora, however it increased the compilation > time of the RPM by approximately two hours, so for the time being I left it > out. Two hours in a *single* build server is

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

2017-03-03 Thread Charalampos Stratakis
PGO is not enabled in RHEL and Fedora. I did some initial testing for Fedora, however it increased the compilation time of the RPM by approximately two hours, so for the time being I left it out. Regards, Charalampos Stratakis Associate Software Engineer Python Maintenance Team, Red Hat -

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

2017-03-03 Thread Victor Stinner
2017-03-03 8:27 GMT+01:00 Nick Coghlan : > Victor, do you know if you or anyone else has compared the RHEL/CentOS 7.x > binaries (Python 2.7.5 + patches, built with GCC 4.8.x) with the Fedora 25 > binaries (Python 2.7.13 + patches, built with GCC 6.3.x)? I didn't and I'm not aware of anyone who di

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

2017-03-03 Thread Louis Bouchard
Hello, Le 03/03/2017 à 08:27, Nick Coghlan a écrit : > On 2 March 2017 at 07:00, Victor Stinner > wrote: > > Hi, > > Your document doesn't explain how you configured the host to run > benchmarks. Maybe you didn't tune Linux or anything else? Be caref