[EMAIL PROTECTED] wrote: > Hi > > startswith( prefix[, start[, end]]) States: > > Return True if string starts with the prefix, otherwise return False. > prefix can also be a tuple of suffixes to look for.
That particular aspect of the functionality (the multiple prefixes in a tuple) was only added Python 2.5. If you're using <= 2.4 you'll need to use "or" or some other approach, eg looping over a sequence of prefixes. TJG -- http://mail.python.org/mailman/listinfo/python-list