python equivalent to perl's inplace edit mechanism

David wizzardx at gmail.com
Thu May 8 08:49:37 EDT 2008


On Thu, May 8, 2008 at 2:11 PM, Michael Mabin <d3vvnull at gmail.com> wrote:
> Does python have an equivalent to Perl's inplace-edit variable $^I?
>

I misread your question.

No, Python eschews magic characters and symbols. They make code ugly
and harder to read and maintain.

The first 3 lines of the Zen of Python:

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.

You might find a variable like that in Ruby, which has strong Perl influences.

David.



More information about the Python-list mailing list