From: Gaƫtan de Menten Date: Fri, 30 Oct 2009 10:28:43 +0000 (+0000) Subject: added comment so that other people don't spend their time trying to optimize X-Git-Tag: rel_0_6beta1~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=876b3fdd3f82bfcd90ec5979ec1b78d4a7c93a57;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git added comment so that other people don't spend their time trying to optimize optimal code --- diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py index 31f934bfeb..47c797c211 100644 --- a/lib/sqlalchemy/dialects/sqlite/base.py +++ b/lib/sqlalchemy/dialects/sqlite/base.py @@ -71,6 +71,8 @@ class _DateTimeMixin(object): def _result_processor(self, fn, regexp): rmatch = regexp.match + # Even on python2.6 datetime.strptime is both slower than this code + # and it does not support microseconds. def process(value): if value is not None: return fn(*[int(x or 0) for x in rmatch(value).groups()])