Re: [Python-Dev] Design Principles

2005-08-31 Thread Aahz
On Wed, Aug 31, 2005, Raymond Hettinger wrote: > > FWIW, after this is over, I'll put together a draft list of these > principles. The one listed above has served us well. An early draft of > itertools.ifilter() had an invert flag. The toolset improved when that > was split to a separate functio

Re: [Python-Dev] Design Principles

2005-08-31 Thread Terry Reedy
"Raymond Hettinger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > FWIW, after this is over, I'll put together a draft list of these > principles. The one listed above has served us well. An early draft of > itertools.ifilter() had an invert flag. The toolset improved when that

[Python-Dev] Design Principles

2005-08-31 Thread Raymond Hettinger
> > While I'm at it, why not propose that for py3k that > > .rfind/.rindex/.rjust/.rsplit disappear, and .find/.index/.just/.split > grow an > > optional "fromright" (or equivalent) optional keyword argument? > > This violates one of my design principles: don't add boolean options > to an API that