[Python-checkins] python/dist/src/Lib sre.py,1.45,1.46 sre_compile.py,1.47,1.48

Neil Schemenauer nas-python@python.ca
Wed, 2 Jul 2003 14:24:34 -0700


Just van Rossum wrote:
> Walter D?rwald wrote:
> 
> > > !     STRING_TYPES = (type(""), type(unicode("")))
> >
> > Is there a reason why this isn't:
> > 
> >      STRING_TYPES = (str, unicode)
> 
> 2.1 compatibility.

2.1 isinstance does not accepts a tuple for the second argument.

  Neil