Closed GoogleCodeExporter closed 9 years ago
You have imported "from datetime import *" due to this datetime is equivalent
to datetime.datetime
modify your script as follows
===
>>> import datetime
>>> n = datetime.datetime.now()
>>> isinstance(n,datetime.datetime)
===
For SQLAlchemy issue Jaimy will get back to you.
Original comment by rahul.pr...@in.ibm.com
on 17 Nov 2011 at 7:17
Thanks rahul for this import lesson ;) (I'm yet a young pythonner)
By the way, the definition problem still exists and i can't stand the Jaimy
feedback :)
Are you or Jaimy ever available on IRC ?
Regards
Original comment by julien.c...@gmail.com
on 17 Nov 2011 at 9:05
For temporary solution you can try with adding a import statement(import
datetime) at the top in
"/usr/local/lib/python2.7/dist-packages/ibm_db_sa-0.2.1-py2.7.egg/ibm_db_sa/base
.py" file.
I don't know why Jaimy has missed this statement(may be by mistake or
intentionally ).
Original comment by rahul.pr...@in.ibm.com
on 17 Nov 2011 at 11:03
I did remove some unused modules from import list, apparently it was
accidentally removed. however, this has been fixed in r153.
Original comment by jazlee
on 18 Nov 2011 at 1:37
Original issue reported on code.google.com by
julien.c...@gmail.com
on 16 Nov 2011 at 2:47