Skip to content

Instantly share code, notes, and snippets.

View khushalt's full-sized avatar
🎯
Focusing

Khushal khushalt

🎯
Focusing
View GitHub Profile
@igorjs
igorjs / rest-api-response-format.md
Last active November 11, 2024 05:14
REST API response format based on some of the best practices
@shuson
shuson / description-mysql_weakly-referenced object
Last active April 26, 2024 13:04
weakly-referenced object when connect to mysql in python
I came across this issue using the following code file
the error message is ReferenceError: weakly-referenced object no longer exists
reason is in the mysql/connector/cursor.py file
see these lines:
def _set_connection(self, connection):
"""Set the connection"""
try: