How to implement function like this?

2007-10-23 Thread Yinghe Chen
Hello gurus, I have a question, a function like below, it is implemented by me, :) def funcA(tarray): a = [2,3,4] if len(tarray) >=3: return a[0],a[1], a[2] elif len(tarray) == 2: return a[0],a[1], funcB(1)[0] elif len(tarray) == 1:

Re: how to get next month string?

2007-07-25 Thread Yinghe Chen
John's method works perfectly, thanks all for your kind help. "John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Jul 24, 8:31 pm, "Yinghe Chen" <[EMAIL PROTECTED]> wrote: >> Hi, >> Could someone help on how to use pyt

Re: how to get next month string?

2007-07-24 Thread Yinghe Chen
My bad, for Dec 07, it shall output as JAN08. "Yinghe Chen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > Could someone help on how to use python to output the next month string > like this? > > "AUG07", suppose now is July 2007.

how to get next month string?

2007-07-24 Thread Yinghe Chen
, any hints? Thanks in advance, Yinghe Chen -- http://mail.python.org/mailman/listinfo/python-list