[Zope-CMF] Re: Must Python 2.1 compatibility be preserved for CMF
1.5?
yuppie
y.2004_ at wcm-solutions.de
Wed Jun 30 10:04:00 EDT 2004
Gregoire Weber wrote:
> .. or may I use Python 2.3 specific constructs?
Oops! Just updated INSTALL.txt:
Zope 2.7 / Python 2.3 is required for HEAD
> For example I'd like to replace:
>
> if condition is not _unchanged and type(condition) == type(''):
> # blah
>
> by:
>
> if isinstance(condition, types.StringTypes):
> # blah
Why not basestring?
<http://www.python.org/peps/pep-0290.html#reduce-dependency-on-types-module>
Cheers, Yuppie
More information about the Zope-CMF
mailing list