diff options
| author | Gaëtan de Menten <gdementen@gmail.com> | 2009-10-30 10:28:43 +0000 |
|---|---|---|
| committer | Gaëtan de Menten <gdementen@gmail.com> | 2009-10-30 10:28:43 +0000 |
| commit | 876b3fdd3f82bfcd90ec5979ec1b78d4a7c93a57 (patch) | |
| tree | 492097c8c4636aceb12166af1c9205e08c719e1a /lib/sqlalchemy/dialects/sqlite | |
| parent | b1a72587509098509c8b4059ab9a27d54b75bcd5 (diff) | |
| download | sqlalchemy-876b3fdd3f82bfcd90ec5979ec1b78d4a7c93a57.tar.gz | |
added comment so that other people don't spend their time trying to optimize
optimal code
Diffstat (limited to 'lib/sqlalchemy/dialects/sqlite')
| -rw-r--r-- | lib/sqlalchemy/dialects/sqlite/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py index 31f934bfe..47c797c21 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()]) |
