Writing to a certain line?

bruno at modulix onurb at xiludom.gro
Tue Jun 6 06:44:57 EDT 2006


Rene Pijlman wrote:
> bruno at modulix:
> 
>>You can't do this in place with a text file (would be possible with a
>>fixed-length binary format).
> 
> 
> More precise: it's possible with any fixed-length change, in both binary
> and text files, with both fixed and variable formats.
> 
Granted. But this is somewhat limited in what you can do when working
with text files...

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