In what python release was this introduced..

Erik Max Francis max at alcyone.com
Mon Mar 22 05:41:34 EST 2004


Moe A wrote:

> 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

2.3.

max at oxygen:~% python2.1
Python 2.1.3 (#1, Jan  8 2004, 22:47:51) 
[GCC 3.2.3] on linux2
Type "copyright", "credits" or "license" for more information.
>>> 'abc' in 'abcdef'
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: 'in <string>' requires character as left operand
>>> 
max at oxygen:~% python2.2
Python 2.2.3 (#1, Jan  8 2004, 22:40:34) 
[GCC 3.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 'abc' in 'abcdef'
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: 'in <string>' requires character as left operand
>>> 
max at oxygen:~% python2.3
Python 2.3.3 (#1, Dec 22 2003, 23:44:26) 
[GCC 3.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 'abc' in 'abcdef'
True



-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
\__/ There's a reason why we / Keep chasing morning
    -- Sandra St. Victor



More information about the Python-list mailing list