Splitting a string

Patrick Maupin pmaupin at gmail.com
Sun Apr 4 11:03:49 EDT 2010


On Apr 4, 2:37 am, Steven D'Aprano <st... at REMOVE-THIS-
cybersource.com.au> wrote:

> In any case, the *right* test would be:
>
> a = 1
> assert a == 1 and a*5==5 and str(a)=='1' and [None,a,None][a] is a

You're right.  I was very tired when I wrote that, and forgot the last
3 assertions...



More information about the Python-list mailing list