>> Also, I think has_key/in should return True if there is a default.

    Fredrik> and keys should return all possible key values!

I think keys() and in should reflect reality.  Only when you do something
like

    x = d['nonexistent']

or

    x = d.get('nonexistent')

should the default value come into play.

Skip
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to