my cryptogram program
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Mon May 15 21:19:56 EDT 2006
Paul Rubin a écrit :
> Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> writes:
>
>>def convert_quote(quote):
>> return make_code(quote).split('|', 1)
>
>
> I thought about suggesting that, but it's semantically different than
> the original since it fails to raise an error if no vertical bar is
> present.
Yeps, true.
> I don't know if that's good or bad.
At least someone reading this may learn about the max_split param of
str.split() !-)
More information about the Python-list
mailing list