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

Just van Rossum just@letterror.com
Wed, 2 Jul 2003 23:26:40 +0200


Neil Schemenauer 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.

*Gulp*, you're right. I was hoping to be able to go to bed now :-/

Just