Skip to content

Conversation

pupssman
Copy link

Fixes #406

@pupssman
Copy link
Author

@ramiro plz C

@pupssman
Copy link
Author

travis fails to test in PR from fork =(

Free resources used by this object.
"""
log("_mssql.MSSQLConnection.real_close()")
if self in connection_object_list:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouln't be safer to use connection_object_list.remove(self) and catch+ignore ValueError?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that would be. Wasn't sure how cython hadles exceptions and stuff. Just like python?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's a def method so any Python construct is fair game.

(I've tested it and Cython builds it withour errors). See also http://docs.cython.org/src/userguide/language_basics.html#python-functions-vs-c-functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants