Jacob Kaplan-Moss wrote:
If I ask for places, give me a list of places and don't bother looking up restaurants. So:: ``place_instance.description`` should raise an ``AttributeError`` regardless if weather or not it is actually a restaurant.
Why? This is not how duck typing works all over the Python: if the object does have an attribute you shouldn't do nothing special (like casting) to get it.