[Python-checkins] python/dist/src/Lib sre.py,1.45,1.46
sre_compile.py,1.47,1.48
Barry Warsaw
barry@python.org
02 Jul 2003 16:24:50 -0400
On Wed, 2003-07-02 at 16:14, Just van Rossum wrote:
> Walter D=F6rwald wrote:
>=20
> > > ! STRING_TYPES =3D (type(""), type(unicode("")))
> >
> > Is there a reason why this isn't:
> >=20
> > STRING_TYPES =3D (str, unicode)
>=20
> 2.1 compatibility.
Still wouldn't this be clearer:
from types import StringType, UnicodeType
STRING_TYPES =3D (StringType, UnicodeType)
?
-B