[Teammetrics-discuss] List archives -- improving an existing metric.
Sukhbir Singh
sukhbir.in at gmail.com
Thu Jun 30 13:59:49 UTC 2011
Hi Andreas,
> As I said s/--/^-- $/ to make definitely sure you fetch the signature
> and not some random '--' or even '^--' which might something else than a
> signature separator.
Yes, don't worry :-) I have taken care of this because it is a list.
This works:
>>> l = ['First line', 'Second Line', '--', 'Fourth Line']
>>> l[:l.index('--')]
['First line', 'Second Line']
Won't work:
>>> l = ['First line', 'Second Line', '--Random Foo', 'Fourth Line']
>>> l[:l.index('--')]
More information about the Teammetrics-discuss
mailing list