Re: PROBLEM with comments.py in current SVN
Ryan Barrett <pyblosxom-6sb6M7qyT/[email protected]> Sun, 27 Jul 2008 20:57:49 -0700 (PDT)
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 26 Jul 2008, Guntsche Michael wrote:
> I am running on python 2.3 (version the host provides to me). Doing a
>
> if 'num_comments' in entry:
>
> just hangs while
>
> if entry.has_key('num_comments')
>
> works. In and has_key are implemented differently. If there is no
> __contains__ in the class in iterates over every entry and I guess it gets
yup, that's right. pyblosxom 1.4's VariableDict class had a bug that caused 'x
in y' constructs to infinite loop. we've removed VariableDict entirely in 2.0.
having said that, this was fixed in comments.py in revision 1202:
http://pyblosxom.svn.sourceforge.net/viewvc/pyblosxom/trunk/contrib/plugins/comments/plugins/comments.py?r1=1202&r2=1201&pathrev=1202
were you using an earlier version?
-Ryan
--
http://snarfed.org/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/