[ANN] istring 1.0.1 released; announce list created

Steven D. Arnold stevena at neosynapse.net
Fri Mar 8 06:48:43 EST 2002


On Thursday, March 07, 2002, at 10:29:37 PM, Paul Rubin wrote:

PR> "Steven D. Arnold" <stevena at neosynapse.net> writes:
>> In the meantime, (istring is) 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'

PR> It occurs to me, you could get rid of the parentheses by making the
PR> i object an instance of a class that overrides (say) division:

PR>  >>> from neo.istring import istring as i
PR>  >>> l = [1,2,3]
PR>  >>> i/'first value is $l.0'
PR>  'first value is 1'

Wow....interesting!  I'm sure some would accuse me of abuse of
operator overloading, but a cool idea all the same...

-------------------------------------------------------------- 
Steven D. Arnold                                    Neosynapse
stevena at neosynapse.net                        Managing Partner
AIM: abraxan                       MSN: neosynapse at hotmail.com






More information about the Python-list mailing list