I know I'm gonna feel dumb in the Morning....
Edward K. Ream
edreamleo at charter.net
Fri May 23 10:43:25 EDT 2003
> What I really want to do is,
>
> for f in _fromDict.keys().sort():
Do this:
_fromDict.keys().sort()
for f in _fromDict.keys():
etc.
The reason you must do this extra step is that, as has been explained,
_fromDict.keys().sort() returns None, not a list as one might naively
expect.
Edward
--------------------------------------------------------------------
Edward K. Ream email: edreamleo at charter.net
Leo: Literate Editor with Outlines
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------
More information about the Python-list
mailing list