Accessors in Python (getters and setters)

Tobias Brox tobias at stud.cs.uit.no
Wed Jul 19 13:09:49 EDT 2006


[ZeD]
> you mean sed :)

> sed 's/oldName/newName/g' oldFile > newFile

I used to be a Perl programmer :-)

  perl -i.bak -pe 's/oldName/newName/g' *

As said, this is risky as oldName can be used in other contexts.

-- 
Tobias Brox, 69°42'N, 18°57'E



More information about the Python-list mailing list