En Tue, 20 Mar 2007 10:16:30 -0300, Aahz <[EMAIL PROTECTED]> escribió:
> In article <[EMAIL PROTECTED]>, > Alex Martelli <[EMAIL PROTECTED]> wrote: >> Steve Holden <[EMAIL PROTECTED]> wrote: >>> >>> basestring is a *type*. >> >> I believe it used to be a tuple back in Python 2.2 (sorry, don't have a >> Python 2.2 installation to check this right now). > > Python 2.2.2 (#1, Feb 24 2003, 19:13:11) > [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> basestring > Traceback (most recent call last): > File "<stdin>", line 1, in ? > NameError: name 'basestring' is not defined On 2.2 it appeared types.StringTypes == (str,unicode) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list