[redland-dev] [Redland Language Bindings 0000473]: Python API objects can not be sub-classed.

Mantis Bug Tracker mantis-bug-sender at librdf.org
Wed Sep 28 02:47:11 CEST 2011


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                                    
======================================================================



More information about the redland-dev mailing list