the Gravity of Python 2
Roy Smith
roy at panix.com
Thu Jan 9 15:54:10 EST 2014
On Thursday, January 9, 2014 3:35:05 PM UTC-5, Chris Angelico wrote:
> In fact, I've given end users the ability to enter strftime strings (eg
> to construct a filename), and it's worked just fine.
I assume you realize that "../../../../../../../../../../../../../../../../etc/passwd" is a valid strftime() format specifier? :-)
But, to answer your question, no, I have nothing against small languages, per-se (and I've done plenty of regex work). But, if my goal is to print a time in some human-readable form:
>>> print t
is a lot easier than anything involving strftime().
More information about the Python-list
mailing list