• Barry Warsaw's avatar
    Three new C API functions: · c0dc92af
    Barry Warsaw yazdı
    - int PyErr_GivenExceptionMatches(obj1, obj2)
    
      Returns 1 if obj1 and obj2 are the same object, or if obj1 is an
      instance of type obj2, or of a class derived from obj2
    
    - int PyErr_ExceptionMatches(obj)
    
      Higher level wrapper around PyErr_GivenExceptionMatches() which uses
      PyErr_Occurred() as obj1.  This will be the more commonly called
      function.
    
    - void PyErr_NormalizeException(typeptr, valptr, tbptr)
    
      Normalizes exceptions, and places the normalized values in the
      arguments.  If type is not a class, this does nothing.  If type is a
      class, then it makes sure that value is an instance of the class by:
    
      1. if instance is of the type, or a class derived from type, it does
         nothing.
    
      2. otherwise it instantiates the class, using the value as an
         argument.  If value is None, it uses an empty arg tuple, and if
         the value is a tuple, it uses just that.
    c0dc92af
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
BUGS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...