A Python property:
- def f():
Also any instances of types.GetSetDescriptorType (which are equivalent, but implemented in C)
Gets the deleter of this property
Gets the getter of this property
Gets an inferred type of this property. That is the type returned by its getter function, not the type of the property object which is types.PropertyType.
Gets the name of this property
Gets the setter of this property
Whether this property is read-only.
Gets a textual representation of this element.
INTERNAL – Do not use
Gets the Boolean value of this object if it always evaluates to true or false. For example: false for None, true for 7 and no result for int(x)
Gets an inferred type for this object, without using inter-procedural analysis. WARNING: The lack of context makes this less accurate than f.refersTo(this, result, _) for a control flow node ‘f’
Gets the point in the source code from which this object “originates”.
Holds if this element is at the specified location. The location spans column
Holds if this object can be referred to by
Whether this is a builtin object. A builtin object is one defined by the implementation, such as the integer 4 or by a native extension, such as a NumPy array class.
Retained for backwards compatibility. See Object.isBuiltin()
Whether this overrides o. In this context, “overrides” means that this object is a named attribute of a some class C and
Gets the class of this object for simple cases, namely constants, functions, comprehensions and built-in objects.