Open a List of Files

Fredrik Lundh fredrik at pythonware.com
Wed Jan 9 11:37:21 CET 2008


Paul Hankin wrote:

> Thanks Fredrik! I learnt something today.
> 
> I wonder if there's a reason why it doesn't raise an exception when
> you try to write to it? That would seem better to me than having it
> sometimes update variables and sometimes not.

probably because it returns a standard dictionary object, and Python's 
dictionary objects are writable.

(and if someone wants to reopen the old discussion about how Python 
absolutely definitely needs frozen dictionaries to be useful at all, 
please do so in a new thread ;-)

</F>




More information about the Python-list mailing list