From: Douglas Anderson <dja@gendja.com>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] equery: RFC and code review
Date: Thu, 12 Feb 2009 19:39:30 +0900 [thread overview]
Message-ID: <efeb8d230902120239h24fdaa32x32e5069e03ba86b5@mail.gmail.com> (raw)
In-Reply-To: <4993F378.3050104@necoro.eu>
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
next prev parent reply other threads:[~2009-02-12 10:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Douglas Anderson [this message]
2009-02-12 10:25 ` Douglas Anderson
2009-02-12 11:27 ` Marijn Schouten (hkBst)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=efeb8d230902120239h24fdaa32x32e5069e03ba86b5@mail.gmail.com \
--to=dja@gendja.com \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox