How to extend OracleCursor class from cx_Oracle
问题 Using Python 2.7.12 and package cx_Oracle I'm trying to create an extended class of the what the package call OracleCursor. I simply want to inherit the methods from the superclass and extend with some custom methods. First I get the OracleCursor by import cx_Oracle conn = cx_Oracle.connect(username, password, dsn) cursor = conn.cursor() and I then have the following >>> type(cursor)Out[6]: OracleCursor >>> isinstance(cursor, cx_Oracle.Cursor) True One would think that it is achieved by class