public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-portage-dev] equery: RFC and code review
  @ 2009-02-12 10:39 99%       ` Douglas Anderson
  0 siblings, 0 replies; 1+ results
From: Douglas Anderson @ 2009-02-12 10:39 UTC (permalink / raw
  To: gentoo-portage-dev

On Thu, Feb 12, 2009 at 7:01 PM, René 'Necoro' Neumann <lists@necoro.eu> wrote:
> Hash: SHA1
>
> Brian Harring schrieb:
>> On Wed, Feb 11, 2009 at 11:10:43PM -0800, Alec Warner wrote:
>>> belongs.py has this gem:
>>> q.append(('^' if query[0] == '/' else '/') + re.escape(query) + '$')
>> Also a python2.6 only feature...
>> ~brian
>
> python-2.5 it is ...

Yep, this python ternary syntax was introduced in 2.5. I'm using quite
a few >=2.5 features...
* the new ternary syntax
* passing a tuple to str.startswith
* with statement
* max( key=...)

Again, there are a lot of version of gentoolkit in the tree, so I
didn't foresee this being a problem.

-Doug



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2009-02-10 10:53     [gentoo-portage-dev] equery: RFC and code review Douglas Anderson
2009-02-12  7:10     ` Alec Warner
2009-02-12  8:19       ` Brian Harring
2009-02-12 10:01         ` René 'Necoro' Neumann
2009-02-12 10:39 99%       ` Douglas Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox