[Python-checkins] r77788 - python/trunk/Lib/UserDict.py

M.-A. Lemburg mal at egenix.com
Wed Jan 27 10:00:49 CET 2010


benjamin.peterson wrote:
> Author: benjamin.peterson
> Date: Wed Jan 27 03:15:28 2010
> New Revision: 77788
> 
> Log:
> for UserDict to be compatible with abcs, it must subclass object

Please add a clear mention of this change to Misc/NEWS - it could
break existing applications that rely on UserDict being an old-style
class.

Thanks.

> Modified:
>    python/trunk/Lib/UserDict.py
> 
> Modified: python/trunk/Lib/UserDict.py
> ==============================================================================
> --- python/trunk/Lib/UserDict.py	(original)
> +++ python/trunk/Lib/UserDict.py	Wed Jan 27 03:15:28 2010
> @@ -1,6 +1,6 @@
>  """A more or less complete user-defined wrapper around dictionary objects."""
>  
> -class UserDict:
> +class UserDict(object):
>      def __init__(self, dict=None, **kwargs):
>          self.data = {}
>          if dict is not None:
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jan 27 2010)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/


More information about the Python-checkins mailing list