Re: strftime() argument 1 must be str, not unicode

2008-05-08 Thread Andrii V. Mishkovskyi
2008/5/8 Tim Roberts <[EMAIL PROTECTED]>: > "Andrii V. Mishkovskyi" <[EMAIL PROTECTED]> wrote: > > >2008/5/7 Alexandr N Zamaraev <[EMAIL PROTECTED]>: > > >> Subj is bag? > >> > >> Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit > >> (Intel)] on win32 > >> Type "help", "co

Re: strftime() argument 1 must be str, not unicode

2008-05-08 Thread Alexandr N Zamaraev
Tim Roberts wrote: > I think that's a perfectly reasonable thing to expect. At the risk of > over-generalization, there is no good reason why, by this point in time, > all of the standard library routines that accept strings shouldn't also > accept Unicode strings. However, file(fname), open(fnam

Re: strftime() argument 1 must be str, not unicode

2008-05-08 Thread Tim Roberts
"Andrii V. Mishkovskyi" <[EMAIL PROTECTED]> wrote: >2008/5/7 Alexandr N Zamaraev <[EMAIL PROTECTED]>: >> Subj is bag? >> >> Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit >> (Intel)] on win32 >> Type "help", "copyright", "credits" or "license" for more information. >> >>> f

Re: strftime() argument 1 must be str, not unicode

2008-05-07 Thread Andrii V. Mishkovskyi
2008/5/7 Alexandr N Zamaraev <[EMAIL PROTECTED]>: > Subj is bag? > > Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit > (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> from datetime import datetime > >>> datetime.today().strfti