Python analog of Ruby on Rails?
bruno modulix
onurb at xiludom.gro
Thu May 26 11:38:24 EDT 2005
George Sakkis wrote:
> "Christopher J. Bottaro" wrote:
>
>
>>Cool signature, can anyone do a Python one that I can leech? =)
>>
>>-- C
>
>
> Here's the transliteration in python for your address:
>
> python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')])
> for p in 'orattobjc at inmula.sc.saxetu.ude'.split('@')])"
Err... Looks like I've seen this before, but where ???
--
bruno desthuilliers
ruby -e "print 'onurb at xiludom.gro'.split('@').collect{|p|
p.split('.').collect{|w| w.reverse}.join('.')}.join('@')"
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list