<br><br><div><span class="gmail_quote">On 10/25/06, <b class="gmail_sendername">Luke Paireepinart</b> &lt;<a href="mailto:rabidpoobear@gmail.com">rabidpoobear@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>&gt;<br>&gt; I'm sure this is so obvious that a crack-addled tapeworm head down in<br>&gt; a bucket of stupid could understand it, unfortunately, I'm not quite<br>&gt; at that level today. Sorry.<br>Uh, I don't understand why you're passing Fields to the functions but
<br>then putting the value in self.Fields...<br>but we'll ignore that for now :)</blockquote><div><br>
<a href="http://www.penzilla.net/tutorials/python/modules/">http://www.penzilla.net/tutorials/python/modules/</a><br>
<br>
I explain my&nbsp; confusion more coherently in my reply to Mr. Gald. :-) <br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The problem it sounds like you're having is that you think that passing<br>lists to functions copies them,
<br>when in fact it just creates a reference to them.<br>Take this, for example:</blockquote><div><br>
<br>
Close! I thought that &quot;self&quot; would somehow automagically create a copy of the list, leaving a global intact. I am disillusioned.<br>
&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> &gt;&gt;&gt; def append_five(alist):<br>&nbsp;&nbsp;&nbsp;&nbsp;alist.append(5)<br> &gt;&gt;&gt; a = [1,2,3,4]
<br> &gt;&gt;&gt; append_five(a)<br> &gt;&gt;&gt; a<br>[1, 2, 3, 4, 5]<br> &gt;&gt;&gt; append_five(a)<br> &gt;&gt;&gt; a<br>[1, 2, 3, 4, 5, 5]</blockquote><div><br>
<br>
Which answers my question &quot;why is my list of dictionaries turning in to
a list with a dictionary with a list of dictionaries therein! :-)<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Other than that,<br>Maybe you think self is used for something other than what it's intended
<br>to be used for...<br>but I can't be sure.</blockquote><div><br>
Again, see my reply to Mr. Gald. I am starting to get my head around
&quot;self&quot;. I searched usenet for explanations, apparently I'm not the only
one. :-). It seems to be pretty simple, for most. I'm reminded of
learning to solve for polynomials or diagram sentences: It's elementary
to some and completely obtuse to others, depending on mindset and
experience.<br>
&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm sure someone else can give you a good example.<br>I, however, have to run.<br>
HTH,<br>-Luke</blockquote><div><br>
<br>
Thanks! I appreciate it! <br>
</div><br></div><br>