You can try this :
>>> l = [(2001, 5, 2),(2111,3,3),(1984, 3, 1), (2001, 1, 1)]
>>> l.sort(lambda x = l[0],y = l[1] : cmp((x[1],x[2]),(y[1],y[2])))
- Original Message -
From: "Volker Grabsch" <[EMAIL PROTECTED]>
To:
Sent: Saturday, May 14, 2005 7:09 AM
Subject: Multiple "cmp"s chained on
)
self.myButton.pack()
...
self.myButton.invoke('C1')
-
- Original Message -
From: "Delaney, Timothy C (Timothy)" <[EMAIL PROTECTED]>
To: "Glauco Silva" <[EMAIL PROTECTED]>;
Sent: Wednes
David Daniels" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, May 03, 2005 11:21 AM
Subject: Re: problem in the compiler ?
Glauco Silva wrote:
> python : 2.3.5
> os: win 2K
This part is good enough (though sometimes it helps to mention the
service pack number
on windows systems
27;Function' is call. And i don´t want this.
What´s wrong ?
Thank you
Glauco
- Original Message -
From: "Delaney, Timothy C (Timothy)" <[EMAIL PROTECTED]>
To: "Glauco Silva" <[EMAIL PROTECTED]>;
Sent: Monday, May 02, 2005 8:50 PM
Subject: RE: problem in th
when i creat a RadioButton and put a command =
self.Function , this function is called in the creation of
RadioButton.
It´s right this or it´s wrong ?
Thank you
Glauco
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.1 - Release Da
Hi,
I´m with problem to create a executable program in
python.
I´m using py2exe but i don´t know if it´s
right.
When i run in prompt "python setup.py py2exe",
appear in the end this:
###
The following modules appear to be missing[
'_imaging_gif','libVTKCommonPython', 'libVTKCon
Hi,
I´m with problem to create a executable program in
python.
I´m using py2exe but i don´t know if it´s
right.
My setup.py:
from distutils.core import setupimport
py2exefrom glob import glob
setup( # The first three
parameters are not required, if at least a # 'version' is
give
Hi,
I´m with problem to create a executable program in
python.
I´m using py2exe but i don´t know if it´s
right.
My setup.py:
from distutils.core import setupimport
py2exefrom glob import glob
setup( # The first three
parameters are not required, if at least a # 'version' is
given
I´m with problem in Dictionaries !
I would like to know if the dictionary can sort with a function that i give to then!
Because i need to have a dictionary sort by key !
For exemple :
dict = {}
dict[50] = "fifty"
dict[129] = "a hundred twenty nine"
print dict
{129: "a hundred twenty nine", 50: "f