On Thu, Oct 22, 2009 at 9:09 PM, Stephen Hansen <span dir="ltr"><<a href="mailto:apt.shansen@gmail.com">apt.shansen@gmail.com</a>></span> wrote:<div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="gmail_quote"><div><div><div>>>> class myclass(object):</div><div>...     def __new__(cls, *args, **kwargs):</div><div>...             print args</div><div>...             print kwargs</div>
<div>...             self = object.__new__(cls)</div><div>...             return self</div><div class="im"><div>...     def __init__(self, *args, **kwargs):</div></div><div>...             print args</div><div>...             print kwargs</div>


<div>... </div><div>>>> A = a()</div><div>()</div><div>{}</div><div>()</div><div>{}</div><div>>>> A = a(1,2,3)</div><div>(1, 2, 3)</div><div>{}</div><div>(1, 2, 3)</div><div>{}</div><div><br></div></div>

</div></div></blockquote><div><br></div><div>Sigh, as I try to correct stupid in-interactive-interpreter demonstration code's really bad naming scheme in email but do it half-assed; obviously those calls are supposed to be like "a = myclass()" and "a = myclass(1,2,3)" </div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div><div><div></div><div>HTH,</div>
<div><br></div><font color="#888888"><div>--S</div></font></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Stephen Hansen<br>Development<br>Advanced Prepress Technology<br><br><a href="mailto:shansen@advpubtech.com">shansen@advpubtech.com</a><br>(818) 748-9282<br>
</div>