I'm using python to query data from snowflake. First I create a connector using the following code -
con = snowflake.connector.connect(
user = myusername,
pass = mypassword,
account = accountname
)
when I run con, I get <snowflake.connector.connection.SnowflakeConnection at 0x240a2e8b8b0>. However even after I run con.close(), when I run con I still get <snowflake.connector.connection.SnowflakeConnection at 0x240a2e8b8b0>, even though the connection is closed.
How do I check the status of con to determine if it is open or closed?