How to initialize a table of months.

Michel Claveau mcPas.De.Spam at mclaveauPas.De.Spam.com
Mon Apr 16 02:27:10 EDT 2007


Hi (bis)


A class way :

class cmon(object):
   Jan=1
   Feb=2
   Fev=2
   Mar=3
   Apr=4
   Avr=4
   May=5
   Mai=5
   Jun=6
   Jui=6
   Juin=6
   Jul=7
   Juil=7
   Aug=8
   Aou=8
   Sep=9
   Oct=10
   Nov=11
   Dec=12

print cmon.Mar
print cmon.Sep
print cmon.Dec







-- 
@-salutations

Michel Claveau





More information about the Python-list mailing list