using datetime containers

indika indikabandara19 at
Sat Nov 8 08:06:36 CET 2008

I'm a newbie to python but have some experience in programming.
I came across this requirement of using objects
associated with some another object.
eg. a dictionary containing => string
{, 12, 3): 'c',, 12, 1): 'a',, 12, 2): 'b'

However, the sorting of the dict is not user configurable.  The
desired behavior would be to provide a comparison
function to do the sorting(eg. STL map). This may seem a trivial
question but I couldn't figure out a way.

Or else, I would have expected the object has a
writeable data member, so that iterating a calender with
itermonthdates would allow me to access that data member.

I would really appreciate if you would give me some pointers into


More information about the Python-list mailing list