if-else with '|' operator - beginner's question/problem

William Park opengeometry at yahoo.ca
Wed Aug 8 14:34:21 EDT 2001


On Wed, Aug 08, 2001 at 02:27:13PM -0400, François Pinard wrote:
> >     if (fname[1] in 'aeiou'):
>
> This looks more like C than like Python :-).  Rather write:
>     if fname[1] in 'aeiou':

True.  I was careful not to change too much from the original post.  I
didn't want to get my head bitten off by some Air Traffic trolls. ;-)

-- 
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
8 CPUs cluster, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Sc.




More information about the Python-list mailing list