Ok thanks I'll try remembering it.<br><br>
<div><span class="gmail_quote">On 8/28/07, <b class="gmail_sendername">Erik Jones</b> <<a href="mailto:erik@myemma.com">erik@myemma.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Aug 28, 2007, at 12:04 AM, Lamonte Harris wrote:<br><br>> How come you have to set the initialized created variables to equal
<br>> the parameters, shouldn't that be default?<br>><br>> class testing:<br>> def __init__(self,testing):<br>> self.testing = testing<br>> x = testing("testing")
<br>> print x.testing<br>><br>><br>> How come self.testing = testing<br>><br>> Can someone explain that in more detail, just confused on why you<br>> have to set it up like that.<br>> --<br><br>Simple Answer:
<br><br>Because language should never set variable values "by default".<br>That's what programmers are for. There may be application domains<br>where *some* defaulting behavior makes sense, but that's what
<br>frameworks and DSLs are for.<br><br>Erik Jones<br><br>Software Developer | Emma®<br><a href="mailto:erik@myemma.com">erik@myemma.com</a><br>800.595.4401 or 615.292.5888<br>615.292.0777 (fax)<br><br>Emma helps organizations everywhere communicate & market in style.
<br>Visit us online at <a href="http://www.myemma.com">http://www.myemma.com</a><br><br><br></blockquote></div><br>