Re: [Python-Dev] [Python-checkins] peps: Revise PEP 453 to be docs-only for 2.7 & 3.3

2013-10-10 Thread Nick Coghlan
On 11 Oct 2013 05:04, "Terry Reedy" wrote: > > On 10/10/2013 10:48 AM, nick.coghlan wrote: >> >> http://hg.python.org/peps/rev/405b80d54b7d >> changeset: 5188:405b80d54b7d >> user:Nick Coghlan >> date:Fri Oct 11 00:47:47 2013 +1000 >> summary: >>Revise PEP 453 to be docs-onl

Re: [Python-Dev] Fix IO Encoding issue for embedded Python under Windows - Issue16129

2013-10-10 Thread Nick Coghlan
On 11 Oct 2013 01:22, "Bastien Montagne" wrote: > > Hi Py Devs, > > As this is my first mail here, first a short presentation: my name is Bastien Montagne (aka mont29), I live in France, and I’ve been using Python for a fair amount of years now in various projects, amongst which Blender 3D softwar

Re: [Python-Dev] [Python-checkins] peps: Revise PEP 453 to be docs-only for 2.7 & 3.3

2013-10-10 Thread Terry Reedy
On 10/10/2013 10:48 AM, nick.coghlan wrote: http://hg.python.org/peps/rev/405b80d54b7d changeset: 5188:405b80d54b7d user:Nick Coghlan date:Fri Oct 11 00:47:47 2013 +1000 summary: Revise PEP 453 to be docs-only for 2.7 & 3.3 - all functional changes are now 3.4 only - still

Re: [Python-Dev] Python startup time

2013-10-10 Thread Eric Snow
On Thu, Oct 10, 2013 at 4:18 AM, Christian Heimes wrote: > We don't have to use a custom module type to get rid of these imports > (but I like to get my hands a piece of chocolate cake *g*). We can > either implement yet another mutable mapping class for the os module. > That would remove the depe

Re: [Python-Dev] Python startup time

2013-10-10 Thread Brett Cannon
On Thu, Oct 10, 2013 at 9:38 AM, Antoine Pitrou wrote: > Le Thu, 10 Oct 2013 14:36:26 +0200, > Dirkjan Ochtman a écrit : > > > On Thu, Oct 10, 2013 at 2:25 PM, Christian Heimes > > wrote: > > > Benchmark of 1000 times "python -c ''" > > > > > > Python 3.4dev with all my experimental patches: >

[Python-Dev] Fix IO Encoding issue for embedded Python under Windows - Issue16129

2013-10-10 Thread Bastien Montagne
Hi Py Devs, As this is my first mail here, first a short presentation: my name is Bastien Montagne (aka mont29), I live in France, and I’ve been using Python for a fair amount of years now in various projects, amongst which Blender 3D software. I’m also a Blender dev (C & Py) since a few years

Re: [Python-Dev] Python startup time

2013-10-10 Thread Serhiy Storchaka
10.10.13 15:25, Christian Heimes написав(ла): Benchmark of 1000 times "python -c ''" What about "python -S -c ''"? ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.pytho

Re: [Python-Dev] Python startup time

2013-10-10 Thread Antoine Pitrou
Le Thu, 10 Oct 2013 10:26:25 -0400, Benjamin Peterson a écrit : > 2013/10/9 Antoine Pitrou : > > Le Wed, 9 Oct 2013 10:29:30 +0200, > > Antoine Pitrou a écrit : > >> Le Tue, 8 Oct 2013 15:43:40 -0400, > >> Benjamin Peterson a écrit : > >> > >> > 2013/10/8 R. David Murray : > >> > > In this conte

Re: [Python-Dev] Python startup time

2013-10-10 Thread Benjamin Peterson
2013/10/9 Antoine Pitrou : > Le Wed, 9 Oct 2013 10:29:30 +0200, > Antoine Pitrou a écrit : >> Le Tue, 8 Oct 2013 15:43:40 -0400, >> Benjamin Peterson a écrit : >> >> > 2013/10/8 R. David Murray : >> > > In this context, if we'd been *really* smart-lazy in CPython >> > > development, we'd have kep

Re: [Python-Dev] Python startup time

2013-10-10 Thread Victor Stinner
Hi, In an old issue, I proposed a change to not load the sysconfig module when it's not needed. Nobody reviewed the patch, the issue was closed. http://bugs.python.org/issue14057 When -s or -I option is used, we may skip completly the sysconfig module. (It's already the case when -S is used.) B

Re: [Python-Dev] Python startup time

2013-10-10 Thread Antoine Pitrou
Le Thu, 10 Oct 2013 14:36:26 +0200, Dirkjan Ochtman a écrit : > On Thu, Oct 10, 2013 at 2:25 PM, Christian Heimes > wrote: > > Benchmark of 1000 times "python -c ''" > > > > Python 3.4dev with all my experimental patches: > > > > Avg: 0.705161 -> 0.443613: 1.59x faster > > > > 2.7 -> 3.4dev: >

Re: [Python-Dev] Python startup time

2013-10-10 Thread Dirkjan Ochtman
On Thu, Oct 10, 2013 at 2:25 PM, Christian Heimes wrote: > Benchmark of 1000 times "python -c ''" > > Python 3.4dev with all my experimental patches: > > Avg: 0.705161 -> 0.443613: 1.59x faster > > 2.7 -> 3.4dev: > > Avg: 0.316177 -> 0.669330: 2.12x slower > > 2.7 -> 3.4dev with all my patches

Re: [Python-Dev] Python startup time

2013-10-10 Thread Christian Heimes
Am 10.10.2013 06:41, schrieb yoav glazner: > I'm not sure Droping imports is the best way to go, since every python > script/app will import common modules right on the start and it will > still seem like the interpeter boot is slow. > > making modules load faster seems like a better approch Not

Re: [Python-Dev] Python startup time

2013-10-10 Thread R. David Murray
On Thu, 10 Oct 2013 07:41:19 +0300, yoav glazner wrote: > I'm not sure Droping imports is the best way to go, since every python > script/app will import common modules right on the start and it will still > seem like the interpeter boot is slow. > > making modules load faster seems like a better

Re: [Python-Dev] Python startup time

2013-10-10 Thread Christian Heimes
Am 10.10.2013 02:18, schrieb Eric Snow: > On Wed, Oct 9, 2013 at 8:30 AM, Christian Heimes > wrote: >> The os module imports MutableMapping from collections.abc. That >> import adds collections, collections.abc and eight more modules. >> I'm not sure if we can do anything about it, though. > > We

Re: [Python-Dev] inspect() and dir()

2013-10-10 Thread Nick Coghlan
On 10 Oct 2013 14:32, "Ethan Furman" wrote: > > On 10/09/2013 03:36 PM, Nick Coghlan wrote: > >> On 10 Oct 2013 08:07, "Ethan Furman" wrote: >>> >>> On 10/09/2013 02:46 PM, Nick Coghlan wrote: On 10 Oct 2013 03:39, "Ethan Furman" wrote: > > > My apologies. I am actually talk

Re: [Python-Dev] PEP 457: Syntax For Positional-Only Parameters

2013-10-10 Thread Nick Coghlan
On 10 Oct 2013 12:40, "Greg Ewing" wrote: > > On 10/10/13 11:57, Nick Coghlan wrote: >> >> PEP title: Representation of positional-only parameters > > > Something like "Notation for documenting positional-only parameters" > would make it even clearer that this is not a proposal for adding > to the