@@ -787,31 +787,31 @@ static struct PyMethodDef connectionObject_methods[] = {
787787
788788static struct PyMemberDef connectionObject_members [] = {
789789#ifdef PSYCOPG_EXTENSIONS
790- {"closed" , T_LONG , offsetof(connectionObject , closed ), RO ,
790+ {"closed" , T_LONG , offsetof(connectionObject , closed ), READONLY ,
791791 "True if the connection is closed." },
792792 {"isolation_level" , T_LONG ,
793- offsetof(connectionObject , isolation_level ), RO ,
793+ offsetof(connectionObject , isolation_level ), READONLY ,
794794 "The current isolation level." },
795- {"encoding" , T_STRING , offsetof(connectionObject , encoding ), RO ,
795+ {"encoding" , T_STRING , offsetof(connectionObject , encoding ), READONLY ,
796796 "The current client encoding." },
797- {"notices" , T_OBJECT , offsetof(connectionObject , notice_list ), RO },
798- {"notifies" , T_OBJECT , offsetof(connectionObject , notifies ), RO },
799- {"dsn" , T_STRING , offsetof(connectionObject , dsn ), RO ,
797+ {"notices" , T_OBJECT , offsetof(connectionObject , notice_list ), READONLY },
798+ {"notifies" , T_OBJECT , offsetof(connectionObject , notifies ), READONLY },
799+ {"dsn" , T_STRING , offsetof(connectionObject , dsn ), READONLY ,
800800 "The current connection string." },
801- {"async" , T_LONG , offsetof(connectionObject , async ), RO ,
801+ {"async" , T_LONG , offsetof(connectionObject , async ), READONLY ,
802802 "True if the connection is asynchronous." },
803803 {"status" , T_INT ,
804- offsetof(connectionObject , status ), RO ,
804+ offsetof(connectionObject , status ), READONLY ,
805805 "The current transaction status." },
806- {"string_types" , T_OBJECT , offsetof(connectionObject , string_types ), RO ,
806+ {"string_types" , T_OBJECT , offsetof(connectionObject , string_types ), READONLY ,
807807 "A set of typecasters to convert textual values." },
808- {"binary_types" , T_OBJECT , offsetof(connectionObject , binary_types ), RO ,
808+ {"binary_types" , T_OBJECT , offsetof(connectionObject , binary_types ), READONLY ,
809809 "A set of typecasters to convert binary values." },
810810 {"protocol_version" , T_INT ,
811- offsetof(connectionObject , protocol ), RO ,
811+ offsetof(connectionObject , protocol ), READONLY ,
812812 "Protocol version used for this connection. Currently always 3." },
813813 {"server_version" , T_INT ,
814- offsetof(connectionObject , server_version ), RO ,
814+ offsetof(connectionObject , server_version ), READONLY ,
815815 "Server version." },
816816#endif
817817 {NULL }
0 commit comments