Author ezio.melotti
Recipients Elena.Oat, belopolsky, docs@python, ezio.melotti, flox, martin.panter, python-dev, vstinner
Date 2016-03-12.06:33:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> About Elena Oat's patch issue13305.diff: I'm not sure that
> strftime("%4Y") works on all platforms

It doesn't, that's what the patch is trying to document.
AFAICT it works on my Linux (but not on yours), it gives '4Y' on Mac, and raises an error on Windows.  This should depend on the libc used by system, so the same OS can give different results depending on which libc it uses, and the only sure thing is that %4Y is not a portable solution.
FWIW the patch LGTM (except a couple minor nits -- zero-pad should be hyphenated and there should be a double space after the dot), but I'm not sure if it's better mentioning platforms at all or just being vague and say that it works on some platforms but not others and leave up to the user figuring out where.
Date User Action Args
2016-03-12 06:33:03ezio.melottisetrecipients: + ezio.melotti, belopolsky, vstinner, flox, docs@python, python-dev, martin.panter, Elena.Oat
2016-03-12 06:33:03ezio.melottisetmessageid: <>
2016-03-12 06:33:03ezio.melottilinkissue13305 messages
2016-03-12 06:33:02ezio.melotticreate