Referencing Items in a List of Tuples
rshepard at nospam.appl-ecosys.com
rshepard at nospam.appl-ecosys.com
Sun Feb 25 13:05:28 EST 2007
On 2007-02-25, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> Item is ALREADY the "current" tuple...
>
> for tpl in mainlist:
> if tpl[0] == "eco" and tpl[1] == "con":
> ec.Append(tpl[2:]) #presuming ec is NOT a list, as Append()
> #is not a list method (append() is)
Of course! As a morning person I don't do as well at night. That's such a
silly error I'm embarrassed by having to have the obvious pointed out to me.
My apologies to all.
And, the .Append comes from list widgets in wxPython.
Thank you all for forcing my head straight again.
Rich
More information about the Python-list
mailing list