Re: [Python-Dev] cpython (3.2): Fix find command in makefile “funny” target

2011-08-12 Thread Georg Brandl
On 08/12/11 18:03, eric.araujo wrote: > http://hg.python.org/cpython/rev/1b818f3639ef > changeset: 71826:1b818f3639ef > branch: 3.2 > parent: 71823:8032ea4c3619 > user:Éric Araujo > date:Wed Aug 10 02:01:32 2011 +0200 > summary: > Fix find command in makefile “funny”

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Stefan Behnel
Guido van Rossum, 12.08.2011 23:38: On Fri, Aug 12, 2011 at 12:57 PM, Rene Nejsum wrote: I think I understand the background and need for GIL. Without it Python programs would have been cluttered with lock/synchronized statements and C-extensions would be harder to write. No, sorry, the first

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Greg Ewing
Sturla Molden wrote: With one interpreter per thread, and a malloc that does not let threads share memory pages (one heap per thread), Python could do the same. Wouldn't that be more or less equivalent to running each thread in a separate process? -- Greg _

Re: [Python-Dev] [Python-checkins] cpython (3.2): Use real word in English text (i.e. not code)

2011-08-12 Thread Ben Finney
Terry Reedy writes: > But multiple compound-noun adjectives are awkward and the above is ugly. > Would "Command-line library for parsing options and arguments" fit? Better, but the binding is still wrong. The “command-line” should instead be a modifier for “options and arguments”. So: Libr

Re: [Python-Dev] [Python-checkins] cpython (3.2): Use real word in English text (i.e. not code)

2011-08-12 Thread Terry Reedy
On 8/12/2011 1:17 PM, Éric Araujo wrote: With all due respect to the fact that you’re a native speaker and I’m not, here I disagree because I parse the sentence in this way (using parens to group things by precedence, if you want): You are right, I misparsed without considering the full contex

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Rene Nejsum
Thank you for the clarification, I should have been more precise... On 12/08/2011, at 23.38, Guido van Rossum wrote: > On Fri, Aug 12, 2011 at 12:57 PM, Rene Nejsum wrote: >> I think I understand the background and need for GIL. Without it Python >> programs would have been cluttered with lock/s

Re: [Python-Dev] PEP 402: Simplified Package Layout and Partitioning

2011-08-12 Thread P.J. Eby
At 05:03 PM 8/12/2011 -0400, Glyph Lefkowitz wrote: Are there any rules about passing invalid identifiers to __import__ though, or is that just less likely? :) I suppose you have a point there. ;-) I still like the idea of a 'marker' file. It would be great if there were a new marker like

Re: [Python-Dev] [PEPs] Rebooting PEP 394 (aka Support the /usr/bin/python2 symlink upstream)

2011-08-12 Thread Guido van Rossum
On Thu, Aug 11, 2011 at 6:05 PM, Terry Reedy wrote: > There was no comparable transition. Python 2.0 was basically 1.6 renamed for > a different distributor. No that's not true. If you compare the "what's new" sections there is quite a large difference between 1.6 and 2.0, despite being released

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Guido van Rossum
On Fri, Aug 12, 2011 at 12:57 PM, Rene Nejsum wrote: > I think I understand the background and need for GIL. Without it Python > programs would have been cluttered with lock/synchronized statements and > C-extensions would be harder to write. No, sorry, the first half of this is incorrect: with o

Re: [Python-Dev] PEP 402: Simplified Package Layout and Partitioning

2011-08-12 Thread Glyph Lefkowitz
On Aug 12, 2011, at 2:33 PM, P.J. Eby wrote: > At 01:09 PM 8/12/2011 -0400, Glyph Lefkowitz wrote: >> Upon further reflection, PEP 402 _will_ make dealing with namespace packages >> from this code considerably easier: we won't need to do AST analysis to look >> for a __path__ attribute or anyth

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Xavier Morel
On 2011-08-12, at 20:59 , Sturla Molden wrote: > Den 12.08.2011 18:51, skrev Xavier Morel: >> * Erlang uses "erlang processes", which are very cheap preempted *processes* >> (no shared memory). There have always been tens to thousands to millions of >> erlang processes per interpreter source co

Re: [Python-Dev] [PEPs] Rebooting PEP 394 (aka Support the /usr/bin/python2 symlink upstream)

2011-08-12 Thread Toshio Kuratomi
On Fri, Aug 12, 2011 at 12:19:23PM -0400, Barry Warsaw wrote: > On Aug 12, 2011, at 01:10 PM, Nick Coghlan wrote: > > >1. Accept the reality of that situation, and propose a mechanism that > >minimises the impact of the resulting ambiguity on end users of Python > >by allowing developers to be exp

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Aaron Westendorf
Even in the Erlang model, the afore-mentioned issues of bus contention put a cap on the number of threads you can run in any given application assuming there's any amount of cross-thread synchronization. I wrote a blog post on this subject with respect to my experience in tuning RabbitMQ on NUMA ar

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Sturla Molden
Den 12.08.2011 18:57, skrev Rene Nejsum: My two danish kroner on GIL issues…. I think I understand the background and need for GIL. Without it Python programs would have been cluttered with lock/synchronized statements and C-extensions would be harder to write. Thanks to Sturla Molden for he'

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Sturla Molden
Den 12.08.2011 18:51, skrev Xavier Morel: * Erlang uses "erlang processes", which are very cheap preempted *processes* (no shared memory). There have always been tens to thousands to millions of erlang processes per interpreter source contention within the interpreter going back to pre-SMP by s

[Python-Dev] Review request issue 12178

2011-08-12 Thread Catalin Iacob
Could a core developer please review the patch I proposed for issue 12178 "csv writer doesn't escape escapechar"? Thanks! ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.pytho

Re: [Python-Dev] [Python-checkins] cpython (3.2): Use real word in English text (i.e. not code)

2011-08-12 Thread Fred Drake
I think either Command-line option- and argument-parsing library. or Command-line option and argument parsing library. would be acceptable. -Fred -- Fred L. Drake, Jr.    "A person who won't read has no advantage over one who can't read."    --Samuel Langhorne Clemens ___

Re: [Python-Dev] PEP 402: Simplified Package Layout and Partitioning

2011-08-12 Thread P.J. Eby
At 01:09 PM 8/12/2011 -0400, Glyph Lefkowitz wrote: Upon further reflection, PEP 402 _will_ make dealing with namespace packages from this code considerably easier: we won't need to do AST analysis to look for a __path__ attribute or anything gross like that improve correctness; we can just loo

Re: [Python-Dev] [PEPs] Rebooting PEP 394 (aka Support the /usr/bin/python2 symlink upstream)

2011-08-12 Thread Barry Warsaw
On Aug 12, 2011, at 01:34 PM, R. David Murray wrote: >True, but I think that is orthogonal to the purposes of the PEP, which >is about supporting writing of system independent scripts that are *not* >provided by the distribution (or installed via packaging). And PEP 397 >aims to extend that to Wi

Re: [Python-Dev] [PEPs] Rebooting PEP 394 (aka Support the /usr/bin/python2 symlink upstream)

2011-08-12 Thread R. David Murray
On Fri, 12 Aug 2011 12:19:23 -0400, Barry Warsaw wrote: > On Aug 12, 2011, at 01:10 PM, Nick Coghlan wrote: > >1. Accept the reality of that situation, and propose a mechanism that > >minimises the impact of the resulting ambiguity on end users of Python > >by allowing developers to be explicit ab

Re: [Python-Dev] [Python-checkins] cpython (3.2): Use real word in English text (i.e. not code)

2011-08-12 Thread Éric Araujo
Hi, >> summary: >>Use real word in English text (i.e. not code) > I agree that 'arg' for 'argument is email/twitter-speak, not proper > document prose. >> - :synopsis: Command-line option and argument-parsing library. >> + :synopsis: Command-line option and argument parsing library. > Ho

Re: [Python-Dev] PEP 402: Simplified Package Layout and Partitioning

2011-08-12 Thread Glyph Lefkowitz
On Aug 12, 2011, at 11:24 AM, P.J. Eby wrote: > That is, the above code hardocdes a variety of assumptions about the import > system that haven't been true since Python 2.3. Thanks for this feedback. I honestly did not realize how old and creaky this code had gotten. It was originally develo

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Rene Nejsum
My two danish kroner on GIL issues…. I think I understand the background and need for GIL. Without it Python programs would have been cluttered with lock/synchronized statements and C-extensions would be harder to write. Thanks to Sturla Molden for he's explanation earlier in this thread. Howe

[Python-Dev] Backporting howto/pyporting to 2.7

2011-08-12 Thread Éric Araujo
Hi everyone, I think it would be useful to have the “Porting Python 2 Code to Python 3” HOWTO in the 2.7 docs, as I think that a lot of users consult the 2.7 docs. Is there any reason not to do it? Regards ___ Python-Dev mailing list Python-Dev@python.

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Xavier Morel
On 2011-08-11, at 21:11 , Sturla Molden wrote: > > (b) another threading model (e.g. one interpreter per thread, as in Tcl, > Erlang, or .NET app domains). Nitpick: this is not correct re. erlang. While it is correct that it uses "another threading model" (one could even say "no threading model

Re: [Python-Dev] [PEPs] Rebooting PEP 394 (aka Support the /usr/bin/python2 symlink upstream)

2011-08-12 Thread Barry Warsaw
On Aug 12, 2011, at 01:10 PM, Nick Coghlan wrote: >1. Accept the reality of that situation, and propose a mechanism that >minimises the impact of the resulting ambiguity on end users of Python >by allowing developers to be explicit about their target language. >This is the approach advocated in PE

[Python-Dev] Summary of Python tracker Issues

2011-08-12 Thread Python tracker
ACTIVITY SUMMARY (2011-08-05 - 2011-08-12) 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: open2923 (+24) closed 21602 (+23) total 24525 (+47) Open issues wit

Re: [Python-Dev] GIL removal question

2011-08-12 Thread Antoine Pitrou
On Fri, 12 Aug 2011 09:32:23 -0500 VanL wrote: > On 8/11/2011 2:11 PM, Sturla Molden wrote: > > > > (b) another threading model (e.g. one interpreter per thread, as in Tcl, > > Erlang, or .NET app domains). > > We are close to this, in that we already have baked-in support for > subinterpreters.

Re: [Python-Dev] PEP 402: Simplified Package Layout and Partitioning

2011-08-12 Thread P.J. Eby
At 02:02 PM 8/11/2011 -0400, Glyph Lefkowitz wrote: Rather than a one-by-one ad-hoc consideration of which attribute should be set to None or empty strings or "" or what have you, I'd really like to see a discussion in the PEP saying what a package really is vs. what a module is, and what one c

Re: [Python-Dev] GIL removal question

2011-08-12 Thread VanL
On 8/11/2011 2:11 PM, Sturla Molden wrote: (b) another threading model (e.g. one interpreter per thread, as in Tcl, Erlang, or .NET app domains). We are close to this, in that we already have baked-in support for subinterpreters. Out of curiosity, why isn't this being pursued? _

Re: [Python-Dev] PEP 3154 - pickle protocol 4

2011-08-12 Thread Antoine Pitrou
Hello, Le vendredi 12 août 2011 à 14:32 +0200, Xavier Morel a écrit : > On 2011-08-12, at 12:58 , Antoine Pitrou wrote: > > Current protocol versions export object sizes for various built-in types > > (str, bytes) as 32-bit ints. This forbids serialization of large data > > [1]_. New opcodes are

Re: [Python-Dev] PEP 3154 - pickle protocol 4

2011-08-12 Thread Xavier Morel
On 2011-08-12, at 12:58 , Antoine Pitrou wrote: > Current protocol versions export object sizes for various built-in types > (str, bytes) as 32-bit ints. This forbids serialization of large data > [1]_. New opcodes are required to support very large bytes and str > objects. How about changing obje

[Python-Dev] PEP 3154 - pickle protocol 4

2011-08-12 Thread Antoine Pitrou
Hello, This PEP is an attempt to foster a number of small incremental improvements in a future pickle protocol version. The PEP process is used in order to gather as many improvements as possible, because the introduction of a new protocol version should be a rare occurrence. Feel free to sugges

Re: [Python-Dev] PEP 402: Simplified Package Layout and Partitioning

2011-08-12 Thread Vinay Sajip
Éric Araujo netwok.org> writes: > Besides, putting data files in a Python package is held very poorly by > some (mostly people following the File Hierarchy Standard), and in > distutils2/packaging, we (will) have a resources system that’s as > convenient for users and more flexible for OS package