| Issue 158: | Add context manager support for pyodbc.Cursor | |
| 3 people starred this issue and may be notified of changes. | Back to list |
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. |