Re: Re: [Prothon-commits] rev 232 - trunk/src
Ben Collins <[email protected]> Wed, 31 Mar 2004 14:39:47 -0500
| Newsgroups | gmane.comp.lang.prothon.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Mar 31, 2004 at 11:12:52AM -0800, Mark Hahn wrote:
>
> > if I return a tuple of key,value, and do:
> > for key in dict:
> > I still get just the key?
>
> No, you get a variable called key that is a tuple.
That's not the way python does it:
a={"ben":"collins", "mark":"hahn"}
for key in a:
print key
Produces:
ben
mark
And that's how things work now with the prothon code too.
--
Debian - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/