[issue10740] sqlite3 module should allow DDL statements in transactions

2012-10-18 Thread Jeremy Banks
Changes by Jeremy Banks jer...@jeremybanks.ca: -- nosy: +Jeremy Banks ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list

[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries

2011-07-14 Thread Jeremy Banks
New submission from Jeremy Banks jer...@jeremybanks.ca: I was experimenting with the sqlite3 library and noticed that using certain strings as identifiers cause bus errors or segfaults. I'm not very familiar with unicode, but after some Googling I'm pretty sure this happens when I use non

[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries

2011-07-14 Thread Jeremy Banks
Jeremy Banks jer...@jeremybanks.ca added the comment: I'm using OS X 10.6.7. The bus error is occurring with my Python 3.1 installation: path: /Library/Frameworks/Python.framework/Versions/3.1/bin/python3 sqlite3.version == 2.4.1 sqlite3.sqlite_version = 3.6.11. But now that you mention

[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries

2011-07-14 Thread Jeremy Banks
Jeremy Banks jer...@jeremybanks.ca added the comment: I'll try that, thank you. If it works without exception in Python 2, isn't the behaviour in Python 3 a regression bug, even if it doesn't crash? If so, should I create a new/separate issue for the behaviour

[issue4291] Allow Division of datetime.timedelta Objects

2009-04-15 Thread Jeremy Banks
Jeremy Banks jer...@jeremybanks.ca added the comment: Redundant with #2706 and others. -- nosy: -belopolsky, haypo, marketdickinson status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4291

[issue4291] Allow Division of datetime.timedelta Objects

2008-11-09 Thread Jeremy Banks
Jeremy Banks [EMAIL PROTECTED] added the comment: Sorry, allowing for conversion to int/float is probably a more sensible solution. This idea was brought to my mind when I was making a very very simple script for a friend to display how far through a time range we currently are. For example

[issue4291] Allow Division of datetime.timedelta Objects

2008-11-09 Thread Jeremy Banks
New submission from Jeremy Banks [EMAIL PROTECTED]: It would be convenient if it were possible to divide one datetime.timedelta object by another to determine their relative durations. Were the datetime module pure Python a crude solution would just be to add two methods like this: def

[issue4291] Allow Division of datetime.timedelta Objects

2008-11-09 Thread Jeremy Banks
Jeremy Banks [EMAIL PROTECTED] added the comment: Thanks, I should have paid more attention to the results when I searched for duplicates. I think that Christian's suggestion of enabling float() and int() for timedeltas is worth having here, though. -- nosy: -christian.heimes