ldap.schema: str2objectclass() fails

Michael Ströder michael at stroeder.com
Tue Jul 30 15:47:27 CEST 2002

David Leonard wrote:
 > is ret important?

Yes, I think so.

 > is a subclassed error the right thing to do?

Frankly I'd prefer to check the numerical error code in 
ldap.schema.str2objectclass() and the other wrapper functions and 
raise Python-declared exceptions instead of create the exception 
instances in Modules/schema.c.

This is much easier to maintain (at least for me) and the schema 
exception class can be sub-classed etc.

Ciao, Michael.

More information about the python-ldap mailing list