Re: [Python-Dev] Python sprint mechanics

2006-05-07 Thread Martin v. Löwis
Tim Peters wrote: > The more realistically ;-) I try to picture the suggested > alternatives, the more sensible this one sounds. Some people at the > sprint (like me, wrt the Iceland sprint) could volunteer to be > responsible for checking checkins for appropriateness, and in any case > everyone s

Re: [Python-Dev] Python sprint mechanics

2006-05-07 Thread Tim Peters
[Martin v. Löwis] > ... > Or, to put it yet in a different way: whether or not commit privileges > are restricted, you need to add the sprinters to the committers list > first, unless you want to allow anonymous commits to these branches. > > Just to not be mistaken: it is technically fairly easy t

Re: [Python-Dev] PEP 3101 Update

2006-05-07 Thread Steven Bethard
On 5/6/06, Talin <[EMAIL PROTECTED]> wrote: > I've updated PEP 3101 based on the feedback collected so far. [snip] > Compound names are a sequence of simple names seperated by > periods: > > "My name is {0.name} :-\{\}".format(dict(name='Fred')) > > Compound names can be use

Re: [Python-Dev] PEP 3101 Update

2006-05-07 Thread Steven Bethard
On 5/7/06, Edward Loper <[EMAIL PROTECTED]> wrote: > Talin wrote: > > Braces can be escaped using a backslash: > > > > "My name is {0} :-\{\}".format('Fred') > > > > Which would produce: > > > > "My name is Fred :-{}" > > Do backslashes also need to be backslashed then?

Re: [Python-Dev] PEP 3101 Update

2006-05-07 Thread Greg Ewing
Joe Smith wrote: > AFAICT there would be no way to use raw strings with that method. > ... > Additional backslashes are added to raw strings to remove anything that > resembles an escape sequence. You seem to be very confused about the way strings work. If you look at the repr() of a string co

Re: [Python-Dev] Alternative path suggestion

2006-05-07 Thread Noam Raphael
Hello all again! Thanks to Mike's suggestion, I now opened a new wiki page, AlternativePathDiscussion, in http://wiki.python.org/moin/AlternativePathDiscussion The idea is to organize the discussion by dividing it into multiple sections, and seeing what is agreed and what should be further discus

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

2006-05-07 Thread Mike Orr
On 5/7/06, Steven Bethard <[EMAIL PROTECTED]> wrote: > The most obvious one to me is the optparse module, where add_option > takes all kinds of different keyword arguments, and there's really no > intention of these ever being specified as positional arguments: > http://docs.python.org/lib/modu

Re: [Python-Dev] PEP 3101 Update

2006-05-07 Thread Joe Smith
"Edward Loper" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Talin wrote: >> Braces can be escaped using a backslash: >> >> "My name is {0} :-\{\}".format('Fred') >> >> Which would produce: >> >> "My name is Fred :-{}" > > Do backslashes also need to be

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

2006-05-07 Thread Steven Bethard
On 5/7/06, BJörn Lindqvist <[EMAIL PROTECTED]> wrote: > I do know enough about Python to know that the make_person function is > a really bad example. Totally agreed. I've been ignoring most of that discussion because it seemed really irrelevant. > would be nice to instead see some real examples

[Python-Dev] possible use of __decorates__ in functools.decorator

2006-05-07 Thread Luis P Caamano
In a previous post related to the functools.decorator function, I think Nick was wondering if the __decorator__ and __decorates__ attributes were useful and Guido was tempted to call YAGNI on them. Coincidentally, I've run into a situation where I had to use the __decorates__ attribute, which I'd

Re: [Python-Dev] total ordering.

2006-05-07 Thread Guido van Rossum
On 5/6/06, Vladimir Yu. Stepanov <[EMAIL PROTECTED]> wrote: [proposing a total ordering between types] It Ain't Gonna Happen. (From now on, I'll write this as IAGH.) In Python 3000, we'll actually *remove* ordering between arbitrary types as a feature; only types that explicitly care to be ordere

Re: [Python-Dev] PEP 3101 Update

2006-05-07 Thread Edward Loper
Talin wrote: > Braces can be escaped using a backslash: > > "My name is {0} :-\{\}".format('Fred') > > Which would produce: > > "My name is Fred :-{}" Do backslashes also need to be backslashed then? If not, then what is the translation of this:? r'abc\{%s\}'

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

2006-05-07 Thread Greg Ewing
BJörn Lindqvist wrote: > But IMHO, your design is broken if you need > to send dozens of arguments to any function or method. My design allows property values to be specified using keywords in the constructor. You typically only use a few of them in any given call, but there are a large number of

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

2006-05-07 Thread BJörn Lindqvist
> > would have thought that the one obvious way to get rid of > > the wanky feeling would have been to write: > > > > def make_person(name, age, phone, location): ... > > > > make_person(name, age, phone, location) > > This doesn't fly in something like PyGUI, where there > are literally dozens of

Re: [Python-Dev] total ordering.

2006-05-07 Thread Vladimir Yu. Stepanov
On Sat, May 06, 2006 at 03:12:11AM -0700, Josiah Carlson wrote: > > "Vladimir 'Yu' Stepanov" <[EMAIL PROTECTED]> wrote: > > Josiah Carlson wrote: > > > This problem has nothing to do with dictionaries and hashing, it has to > > > do with the fact that there may not be a total ordering on the eleme

Re: [Python-Dev] Python sprint mechanics

2006-05-07 Thread Martin v. Löwis
Greg Ewing wrote: > Tim Peters wrote: >> Instead it would make best sense for each >> sprint project to work in its own branch, something SVN makes very >> easy, but only for those who _can_ commit. > > There's no way of restricting commit privileges to > a particular branch? In the current setup