Writing to a certain line?
bruno at modulix
onurb at xiludom.gro
Tue Jun 6 12:44:57 CEST 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...
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