On Thu, Jun 12, 2003 at 09:11:47PM -0700, Steve Lamb wrote:
> for element in switch:
>     if hash.has_key(element):
>         print(hash(element))
> 
>     2 years later I'll know exactly what that code does.

I have to say that I can never remember whether Python's print includes
a trailing newline, and I find it much more obvious when that's spelt
out explicitly as it is in Perl ...

Language features can be idioms too. :)

-- 
Colin Watson                                  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to