My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 158: Add context manager support for pyodbc.Cursor
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by char...@declareSub.com, Feb 22, 2011
It's quite nice that context manager support was added for pyodbc.Connection; now I'd like it for Cursor as well.

Since Cursor, like Connection, is a closeable thing, I would expect that if Connection has context manager support, then so would Cursor.  

As I understand it, not all implementations of Python use reference counting, and so some people claim that the better practice is to write code that does not assume it.  


Powered by Google Project Hosting