The following issue has been SUBMITTED. ====================================================================== http://bugs.librdf.org/mantis/view.php?id=473 ====================================================================== Reported By: dbrnz Assigned To: ====================================================================== Project: Redland Language Bindings Issue ID: 473 Category: api Reproducibility: always Severity: minor Priority: normal Status: new Binding Language (java, perl, php, python, ruby, tcl): python ====================================================================== Date Submitted: 2011-09-28 00:47 Last Modified: 2011-09-28 00:47 ====================================================================== Summary: Python API objects can not be sub-classed. Description: RDF.py checks the type of method parameters be using "type()" instead of "isinstance()". This means that instances of the exact class have to be passed as arguments, rather than those of some sub-class.
The fix is to change all "type(arg) is T" to "isinstance(arg, T)". ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-09-28 00:47 dbrnz New Issue ====================================================================== _______________________________________________ redland-dev mailing list [email protected] http://lists.librdf.org/mailman/listinfo/redland-dev
