class type(name, bases, dict, **kwds)

Returns test


name??
bases??
dict??
kwds??

REMARKS
* No prefix required - Core
* With one argument, return the type of an object. The return value is a type object and generally the same object as returned by object.__class__.
* The isinstance() built-in function is recommended for testing the type of an object, because it takes subclasses into account.
* With three arguments, return a new type object. This is essentially a dynamic form of the class statement. The name string is the class name and becomes the __name__ attribute. The bases tuple contains the base classes and becomes the __bases__ attribute; if empty, object, the ultimate base of all classes, is added. The dict dictionary contains attribute and method definitions for the class body; it may be copied or wrapped before becoming the __dict__ attribute. The following two statements create identical type objects:

class type(object) 

© 2025 Better Solutions Limited. All Rights Reserved. © 2025 Better Solutions Limited Top