<div>I miswrote my question.  But I still completely understand.  What I really wanted to know was whether there was something equivalent to how perl can perform inplace edits of a file with something like the magic $^I variable.  </div>

<div> </div>
<div>I see from Gabriel that you can use the fileinput module to  achieve this.  Very cool.</div>
<div> </div>
<div>And yeah, I think ruby is very perl-like, in that like perl, which looks like someone duct-taped shell, sed, awk and c into a scripting language, ruby duct-taped perl, Smalltalk and Python together.<br><br></div>
<div class="gmail_quote">On Thu, May 8, 2008 at 7:49 AM, David <<a href="mailto:wizzardx@gmail.com">wizzardx@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">On Thu, May 8, 2008 at 2:11 PM, Michael Mabin <<a href="mailto:d3vvnull@gmail.com">d3vvnull@gmail.com</a>> wrote:<br>> Does python have an equivalent to Perl's inplace-edit variable $^I?<br>
><br><br></div>I misread your question.<br><br>No, Python eschews magic characters and symbols. They make code ugly<br>and harder to read and maintain.<br><br>The first 3 lines of the Zen of Python:<br><br>Beautiful is better than ugly.<br>
Explicit is better than implicit.<br>Simple is better than complex.<br><br>You might find a variable like that in Ruby, which has strong Perl influences.<br><font color="#888888"><br>David.<br></font></blockquote></div><br>
<br clear="all"><br>-- <br>| _ | * | _ |<br>| _ | _ | * |<br>| * | * | * |