In what python release was this introduced..

Jacek Generowicz jacek.generowicz at cern.ch
Mon Mar 22 05:14:29 EST 2004


htgk at mail.com (Moe A) writes:

> Hi,
> 
> i need to list dependencies for my package & was wondering in what
> python release could you start making 'in <string>' calls with more
> than one char..eg:
> 
> "JESUS" in bible
> 
> instead of
> 
> "J" in bible

Python 2.2.2 (#1, Feb  8 2003, 12:11:31) 
[GCC 3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 'def' in 'abcdefghij'
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: 'in <string>' requires character as left operand
>>> 


Python 2.3.3 (#1, Jan 16 2004, 15:07:34) 
[GCC 3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 'def' in 'abcdefghij'
True
>>> 



More information about the Python-list mailing list