[Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/Traversable.py using startswith()

Lennart Regebro regebro at gmail.com
Tue Feb 28 12:27:11 EST 2006


On 2/28/06, Andreas Jung <andreas at andreas-jung.com> wrote:
> -                if name[0] == '_':
> +                if name.startswith('_'):

Just a question: Is this only a matter of stylistic changes, or is
there some, like, speedup involved?

--
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the Zope-Dev mailing list