Re: [Python-Dev] Alternative path suggestion

2006-05-05 Thread Nick Coghlan
[Nick] >>> Similarly, I would separate out the extension to a distinct >>> attribute, as it too uses a different separator from the normal path >>> elements ('.' most places, but '/' on RISC OS, for example) [Greg] >> -1. What constitutes "the extension" is not well-defined in >> all cases. What a

Re: [Python-Dev] Alternative path suggestion

2006-05-05 Thread Mike Orr
On 5/5/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Mike Orr wrote: > > On 5/4/06, Paul Moore <[EMAIL PROTECTED]> wrote: > >> (But all the current proposals seem to build on os.path, so maybe I > >> should assume otherwise, that os.path will remain indefinitely...) > > > > They build on os.path be

Re: [Python-Dev] binary trees. Review obmalloc.c

2006-05-05 Thread Martin v. Löwis
Vladimir 'Yu' Stepanov wrote: > Yes. I understood it when resulted a set example. >> However, as I just said, people usually don't remove items from >> just-sorted lists, they tend to iterate over them via 'for i in list:' . >> > Such problem arises at creation of the list of timers. For a list

Re: [Python-Dev] Python sprint mechanics

2006-05-05 Thread Martin v. Löwis
Benji York wrote: >>> I'm not familiar with the mechanics, recent versions of Subversion >>> allow per-directory security. >> >> It works fine for http(s), but not for svn+ssh. > > Versions prior to 1.3 could use Apache's authorization system. How would that work? Apache is not involved at all.

[Python-Dev] Weekly Python Patch/Bug Summary

2006-05-05 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 378 open ( +0) / 3216 closed (+17) / 3594 total (+17) Bugs: 894 open ( -7) / 5811 closed (+19) / 6705 total (+12) RFE : 216 open ( +2) / 215 closed ( +1) / 431 total ( +3) New / Reopened Patches __ Rename fu

[Python-Dev] A critic of Guido's blog on Python's lambda

2006-05-05 Thread xahlee
In this post, i'd like to deconstruct one of Guido's recent blog about lambda in Python. In Guido's blog written in 2006-02-10 at http://www.artima.com/ weblogs/viewpost.jsp?thread=147358 is first of all, the title “Language Design Is Not Just Solving Puzzles”. In the outset, and in between

Re: [Python-Dev] Alternative path suggestion

2006-05-05 Thread Giovanni Bajo
Greg Ewing <[EMAIL PROTECTED]> wrote: >> Similarly, I would separate out the extension to a distinct >> attribute, as it too uses a different separator from the normal path >> elements ('.' most places, but '/' on RISC OS, for example) > > -1. What constitutes "the extension" is not well-defined i

Re: [Python-Dev] Alternative path suggestion

2006-05-05 Thread Giovanni Bajo
Noam Raphael <[EMAIL PROTECTED]> wrote: > The only drawback I can see in using a logical representation is that > giving a path object to functions which expect a path string won't > work. The immediate solution is to simply use str(p) instead of p. The > long-term solution is to make all related

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-05 Thread Michael Urman
On 5/5/06, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > @keyword > def foo(a, b, c=10, d=20, e=30): > return a, b, c, d, e Cute, indeed. That decorator implementation is not as flexible as the * which can go after positional parameters, but of course that is easy to tweak. Howe

Re: [Python-Dev] Python sprint mechanics

2006-05-05 Thread Benji York
Martin v. Löwis wrote: > Benji York wrote: > >>I'm not familiar with the mechanics, recent versions of Subversion allow >>per-directory security. > > It works fine for http(s), but not for svn+ssh. Versions prior to 1.3 could use Apache's authorization system. Subversion 1.3 added a path-based

Re: [Python-Dev] Python for Windows CE

2006-05-05 Thread Martin v. Löwis
Luke Dunstan wrote: > OK. Actually I think distutils will be the last thing to be ported because > it is not necessary for using the rest of Python. Does distutils has support > for cross-compiling anyway? No, it doesn't. > OK, but what about ANSI C headers like signal.h? I expected HAVE_SIGNAL

Re: [Python-Dev] Python sprint mechanics

2006-05-05 Thread Martin v. Löwis
Benji York wrote: > I'm not familiar with the mechanics, recent versions of Subversion allow > per-directory security. We do this to give some customers read access > to parts of the repo, and read-write to others. It shouldn't be > difficult (given a recent enough Subversion) to set up a spri

Re: [Python-Dev] Python sprint mechanics

2006-05-05 Thread Martin v. Löwis
Paul Moore wrote: > Is it possible to create a branch in the main Python svn, and grant > commit privs to that branch only, for sprint participants? I seem to > recall something like mod_authzsvn being involved, but I don't know > much more... We couldn't technically enforce it - but I'm sure spr

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-05 Thread Terry Reedy
"Fred L. Drake, Jr." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Friday 05 May 2006 02:38, Terry Reedy wrote: > > My point has been that the function writer should not make such a > > requirement (for four no-defaut, required params) and that proposing to > > do > > so with

Re: [Python-Dev] lambda in Python

2006-05-05 Thread Benji York
Ian D. Bollinger wrote: > I'm not sure Xah is so much a troll as he is completely out of his > mind. Is that Bollinger's law? Any sufficiently advanced insanity is indistinguishable from trolling. -- Benji York ___ Python-Dev mailing list Python-D

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-05 Thread Terry Reedy
"Michael Urman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 5/5/06, Terry Reedy <[EMAIL PROTECTED]> wrote: >> At present, Python allows this as a choice. I made that statement in the context of comparing these syntaxes def make_person(name, age, phone, location) # current

Re: [Python-Dev] lambda in Python

2006-05-05 Thread Ian D. Bollinger
Delaney, Timothy (Tim) wrote: > Should we add an explicit rule to the Python-dev spam filter for Xah? > Based on his past history, I doubt we'll ever see anything useful from > him. > I'm not sure Xah is so much a troll as he is completely out of his mind. At any rate, it seems he never has an

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-05 Thread Josiah Carlson
Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > > On Fri, 5 May 2006 08:20:02 -0500, Michael Urman <[EMAIL PROTECTED]> wrote: > >On 5/5/06, Terry Reedy <[EMAIL PROTECTED]> wrote: > >> At present, Python allows this as a choice. > > > >Not always - take a look from another perspective: > > > >def

Re: [Python-Dev] binary trees. Review obmalloc.c

2006-05-05 Thread Josiah Carlson
"Vladimir 'Yu' Stepanov" <[EMAIL PROTECTED]> wrote: > Josiah Carlson wrote: > > However, as I just said, people usually don't remove items from > > just-sorted lists, they tend to iterate over them via 'for i in list:' . > > > Such problem arises at creation of the list of timers. I've never s

Re: [Python-Dev] Python for Windows CE

2006-05-05 Thread Luke Dunstan
- Original Message - From: ""Martin v. Löwis"" <[EMAIL PROTECTED]> To: "Luke Dunstan" <[EMAIL PROTECTED]> Cc: Sent: Thursday, May 04, 2006 5:03 AM Subject: Re: [Python-Dev] Python for Windows CE > Luke Dunstan wrote: >> 1. Is there any reason in principle why patches for Windows CE sup

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-05 Thread Fred L. Drake, Jr.
On Friday 05 May 2006 10:16, Nick Coghlan wrote: > And I imagine API designers that abused the feature would end up being > abused by their users :) If used to create poor APIs, I think that's a reasonable outcome. :-) I don't think using such a feature to constrain APIs is necessarily abuse,

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-05 Thread Nick Coghlan
Fred L. Drake, Jr. wrote: > On Friday 05 May 2006 02:38, Terry Reedy wrote: > > My point has been that the function writer should not make such a > > requirement (for four no-defaut, required params) and that proposing to do > > so with the proposed '*' is an abuse (for public code). The caller

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-05 Thread Jean-Paul Calderone
On Fri, 5 May 2006 08:20:02 -0500, Michael Urman <[EMAIL PROTECTED]> wrote: >On 5/5/06, Terry Reedy <[EMAIL PROTECTED]> wrote: >> At present, Python allows this as a choice. > >Not always - take a look from another perspective: > >def make_person(**kwds): >name = kwds.pop('name', None) >age

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-05 Thread Fred L. Drake, Jr.
On Friday 05 May 2006 02:38, Terry Reedy wrote: > My point has been that the function writer should not make such a > requirement (for four no-defaut, required params) and that proposing to do > so with the proposed '*' is an abuse (for public code). The caller should And what exactly is the p

Re: [Python-Dev] Python sprint mechanics

2006-05-05 Thread Benji York
Paul Moore wrote: > Is it possible to create a branch in the main Python svn, and grant > commit privs to that branch only, for sprint participants? I'm not familiar with the mechanics, recent versions of Subversion allow per-directory security. We do this to give some customers read access to

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-05 Thread Michael Urman
On 5/5/06, Terry Reedy <[EMAIL PROTECTED]> wrote: > At present, Python allows this as a choice. Not always - take a look from another perspective: def make_person(**kwds): name = kwds.pop('name', None) age = kwds.pop('age', None) phone = kwds.pop('phone', None) location = kwds.pop

Re: [Python-Dev] Alternative path suggestion

2006-05-05 Thread Nick Coghlan
Mike Orr wrote: > On 5/4/06, Paul Moore <[EMAIL PROTECTED]> wrote: >> (But all the current proposals seem to build on os.path, so maybe I >> should assume otherwise, that os.path will remain indefinitely...) > > They build on os.path because that's what we're familiar with using. > There's no rea

Re: [Python-Dev] Python sprint mechanics

2006-05-05 Thread Paul Moore
On 5/5/06, Tim Peters <[EMAIL PROTECTED]> wrote: > Since I hope we see a lot more of these problems in the future, what > can be done to ease the pain? I don't know enough about SVN admin to > know what might be realistic. Adding a pile of "temporary > committers" comes to mind, but wouldn't rea

Re: [Python-Dev] binary trees. Review obmalloc.c

2006-05-05 Thread Vladimir 'Yu' Stepanov
Josiah Carlson wrote: "Vladimir 'Yu' Stepanov" <[EMAIL PROTECTED]> wrote: Comparison of functions of sorting and binary trees not absolutely correctly. I think that function sort will lose considerably on greater lists. Especially after an insert or removal of all one element. Genera

Re: [Python-Dev] Python sprint mechanics

2006-05-05 Thread Fredrik Lundh
Martin v. Löwis wrote: > I think Fredrik Lundh points to svk at such occasions. SVK makes it trivial to mirror a remote SVN repository, and make zillions of local light-weight branches against that repository (e.g.one branch per bug you're working on); see e.g. http://gcc.gnu.org/wiki/SvkHel

Re: [Python-Dev] Alternative path suggestion

2006-05-05 Thread Mike Orr
On 5/4/06, Paul Moore <[EMAIL PROTECTED]> wrote: > On 5/4/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: > > My inclination was to have a PlatformPath subclass that accepted 'os', 'sep' > > and 'extsep' keyword arguments to the constructor, and provided the > > appropriate 'sep' and 'extsep' attribute

Re: [Python-Dev] Alternative path suggestion

2006-05-05 Thread Mike Orr
On 5/4/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Mike Orr wrote: > >> == a tuple instead of a string == > >> > >> The biggest conceptual change is that my path object is a subclass of > >> ''tuple'', not a subclass of str. > > Why subclass anything? The path should internally represent the file

Re: [Python-Dev] Alternative path suggestion

2006-05-05 Thread Mike Orr
I've updated the wiki with a second proposal based on this thread, and also summarized the Python-dev discussions. Please make sure your favorite feature or pet peeve is adequately represented. http://wiki.python.org/moin/AlternativePathClass -- Mike Orr <[EMAIL PROTECTED]> ([EMAIL PROTECTED] ad