[ANN] istring 1.0.1 released; announce list created
Paul Rubin
phr-n2002a at nightsong.com
Thu Mar 7 22:29:37 EST 2002
"Steven D. Arnold" <stevena at neosynapse.net> writes:
> obstacle keeping it from inclusion in the standard library. In the
> meantime, it's practically like, say, an r or u string, except with
> parentheses:
>
> >>> from neo.istring import istring as i
> >>> l = [1,2,3]
> >>> i('first value is $l.0')
> 'first value is 1'
It occurs to me, you could get rid of the parentheses by making the
i object an instance of a class that overrides (say) division:
>>> from neo.istring import istring as i
>>> l = [1,2,3]
>>> i/'first value is $l.0'
'first value is 1'
More information about the Python-list
mailing list