strftime() argument 1 must be str, not unicode
Alexandr N Zamaraev
tonal at promsoft.ru
Thu May 8 03:41:39 EDT 2008
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(fname), os .*, os.path .*,
time.strftime(format) take unicode parameters.
See http://bugs.python.org/issue2782
More information about the Python-list
mailing list