Tag: Unicode
-
A python utf gotcha
This one had me stumped for a while: # -*- coding: utf-7 -*- import datetime from sqlalchemy import ForeignKey, Column from sqlalchemy.types import Integer, Unicode, Boolean, DateTime default_due_date = datetime.datetime.now() + datetime.timedelta(days=30) Syntax error found on last line. Hmm, bring up a python interpreter and type the last line in with the imports. Works fine.…