[ANN] istring 1.0.1 released; announce list created

Michael Ströder michael at stroeder.com
Fri Mar 8 08:39:33 EST 2002


Paul Rubin wrote:
> "Steven D. Arnold" <stevena at neosynapse.net> writes:
> 
>>>>>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'

Seems this thread shifts to code obfuscation... ;-)

Ciao, Michael.




More information about the Python-list mailing list