Note change to get_dialect semantics in 2.5. Will backport to 2.5.

This commit is contained in:
Skip Montanaro 2007-11-04 15:56:52 +00:00
parent b13f70df1b
commit d469ff1e6a
1 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,11 @@ The :mod:`csv` module defines the following functions:
Return the dialect associated with *name*. An :exc:`Error` is raised if *name* Return the dialect associated with *name*. An :exc:`Error` is raised if *name*
is not a registered dialect name. is not a registered dialect name.
.. versionchanged:: 2.5
This function now returns an immutable :class:`Dialect`. Previously an
instance of the requested dialect was returned. Users could modify the
underlying class, changing the behavior of active readers and writers.
.. function:: list_dialects() .. function:: list_dialects()