[issue15754] Traceback message not returning SQLite check constraint details

2012-08-21 Thread John Taylor
New submission from John Taylor: According to: http://www.sqlite.org/releaselog/3_7_12.html SQLite has the ability to, "Report the name of specific CHECK constraints that fail." CPython 3.3.0b2 which uses SQLite version 3.7.12 does not report which constraint failed. -- impor

[issue15754] Traceback message not returning SQLite check constraint details

2012-08-21 Thread John Taylor
John Taylor added the comment: When I run this under Windows 7: Platform : CPython 3.3.0b2 SQLite : 3.7.12 Traceback (most recent call last): File "C:bug.py", line 34, in c.execute(query, ("2012-18-20", ) ) sqlite3.IntegrityErro

[issue15754] Traceback message not returning SQLite check constraint details

2012-08-21 Thread John Taylor
John Taylor added the comment: I believe patching Python is beyond my programming capability. I would be very interested in seeing this in 3.3.1. How else could I assist in making this happen? Thanks! -- ___ Python tracker <h

[issue15754] Traceback message not returning SQLite check constraint details

2012-08-21 Thread John Taylor
John Taylor added the comment: Chris, I will try naming the constraints and will then follow-up. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15754] Traceback message not returning SQLite check constraint details

2012-08-21 Thread John Taylor
John Taylor added the comment: Please close this ticket. This is not a bug. As per cjerdonek's suggestion, defining a constraint as follows: constraint my_name check (...) returns the actual name of the constraint, when it fails: sqlite3.IntegrityError: constraint my_name f

[issue15972] wrong error message for os.path.getsize

2012-09-19 Thread John Taylor
New submission from John Taylor: import os.path a = [ r'c:\Windows\notepad.exe' ] print( os.path.getsize(a) ) Under Python 3.2.3, this error message is returned: File "c:\python32\lib\genericpath.py", line 49, in getsize return os.stat(filename).st_size TypeError:

[issue15973] Segmentation fault on timezone comparison

2012-09-19 Thread John Taylor
John Taylor added the comment: Crashes Python 3.2.3 and Python 3.3.0rc2 on Windows 7 as well. -- nosy: +jftuga ___ Python tracker <http://bugs.python.org/issue15

[issue15972] wrong error message for os.path.getsize

2012-09-21 Thread John Taylor
John Taylor added the comment: OP here. These error messages are much better. Thanks! -- ___ Python tracker <http://bugs.python.org/issue15972> ___ ___ Pytho