Author pitrou
Recipients Alexander.Belopolsky, Neil Muller, amaury.forgeotdarc, andersjm, belopolsky, catlee, davidfraser, erik.stephens, guettli, hodgestar, jribbens, mark.dickinson, pitrou, srittau, steve.roberts, tebeka, tim.peters, tomster, vstinner, werneck
Date 2010-05-21.16:20:20
SpamBayes Score 2.47914e-05
Marked as misclassified No
Message-id <1274458823.28.0.23347267556.issue2736@psf.upfronthosting.co.za>
In-reply-to
Content
> The advantage of an obscure one-liner is
> that it is obvious what it does, particularly for someone with a
> C/UNIX background.

Well, I would argue that the C/Unix legacy in terms of dates and times isn't an example to follow. Python does not force you to use strcat() to concatenate strings, either ;)

But besides, the issue is more how people are supposed to invent that one-liner, let alone remember it easily. Perhaps adding it in the documentation would be a good middle ground, if you think it shouldn't be added to the stdlib.

> Do you have other examples of this sort?

Well, for example, the datetime module encourages you to use "aware" datetime objects (rather than so-called "naive" objects), but there isn't a single facility to do so. You must reinvent a whole timezone class from scratch.
History
Date User Action Args
2010-05-21 16:20:23pitrousetrecipients: + pitrou, tim.peters, jribbens, srittau, guettli, amaury.forgeotdarc, tebeka, mark.dickinson, davidfraser, belopolsky, andersjm, catlee, vstinner, tomster, werneck, hodgestar, Neil Muller, erik.stephens, steve.roberts, Alexander.Belopolsky
2010-05-21 16:20:23pitrousetmessageid: <1274458823.28.0.23347267556.issue2736@psf.upfronthosting.co.za>
2010-05-21 16:20:21pitroulinkissue2736 messages
2010-05-21 16:20:21pitroucreate