Philip Jenvey wrote: > > On Aug 16, 2007, at 9:16 AM, Ian Bicking wrote: > >> William Dode wrote: >>> It seems that TG, cherrypy and pylon can run on python >=2.3. I also >>> run my webapps with python 2.3, do you think it will be difficult to >>> make webob work on 2.3 ? >> >> Yeah, I just got a bit lazy. I took out the decorators, and put in a >> backport of UserDict.DictMixin. Those are the only things I can think >> of now, but I haven't tested it with 2.3 yet. >> > > UserDict/List et all are actually ancient -- they're for pre new style > classes (pre Python 2.2), for when you couldn't subclass built in types. > They are still sometimes useful for implementing your own builtin-like > classes, though
The mix-ins are still great though; DictMixin makes implementing dict-like classes quite easy, much easier than subclassing dict itself. It is not often that I would recommend subclassing dict. -- Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org : Write code, do good : http://topp.openplans.org/careers _______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
