Bizzare lst length problem

Bruno Desthuilliers onurb at xiludom.gro
Mon Oct 9 07:04:51 EDT 2006


Ben wrote:
> Using Fredericks advice I managed to track down the problem - it was
> really very stupid. I had accidentally cast the list to a string

There's nothing like "type casting" in Python. You did not "cast the
list to a string", you created a string from a list.

-- 
bruno desthuilliers
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