sorted

thomas thomas at nomail.dk
Fri Aug 18 03:31:54 EDT 2006


Hi NG

I what to used the sorted function, and im getting this error

Traceback (most recent call last):
   File "F:\home\thomas\src\guisample\test1.py", line 59, in ?
     main()
   File "F:\home\thomas\src\guisample\test1.py", line 31, in main
     sorted(cords, key=operator.itemgetter(1))
NameError: global name 'sorted' is not defined

what do I needs to import, to use this function ?

regards
thomas



More information about the Python-list mailing list