I believe around Python 2.2...

I used to want that syntax when I started, now I stick to for x in y.keys()
- The 'explicit > implicit' concept has become important to me; probably
because I do most of my coding after midnight and the "should really be in
bed" mistakes are bad enough, but adding implicitness in any form tends to
increase my time to debug.
I'm learning C at the moment, which has a degree of implicitness that could
bite me; ditto C#.

Regards, 

Liam Clarke-Hutchinson



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alan
Gauld
Sent: Monday, 7 November 2005 8:51 a.m.
To: Kent Johnson
Cc: tutor@python.org
Subject: Re: [Tutor] Dictionary Error: 'dict' object has noattribute
'_contains_'


> But you normally shouldn't call this directly, you should write  
> "test" in menu_specials

Now howzabout that! Yet another new trick learnt.
When did 'in' start working with dictionaries?

Alan G.


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

A new monthly electronic newsletter covering all aspects of MED's work is now 
available.  Subscribers can choose to receive news from any or all of seven 
categories, free of charge: Growth and Innovation, Strategic Directions, Energy 
and Resources, Business News, ICT, Consumer Issues and Tourism.  See 
http://news.business.govt.nz for more details.




http://www.govt.nz - connecting you to New Zealand central & local government 
services

Any opinions expressed in this message are not necessarily those of the 
Ministry of Economic Development. This message and any files transmitted with 
it are confidential and solely for the use of the intended recipient. If you 
are not the intended recipient or the person responsible for delivery to the 
intended recipient, be advised that you have received this message in error and 
that any use is strictly prohibited. Please contact the sender and delete the 
message and any attachment from your computer.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to