Свойство | Type | Description | |
---|---|---|---|
IsSetDescriptor | bool | ||
MakeGetExpression | void | ||
TryDeleteValue | bool | ||
TryGetValue | bool | ||
TrySetValue | bool |
Méthode | Description | |
---|---|---|
__get__ ( CodeContext context, object instance, [ typeContext ) : object |
Méthode | Description | |
---|---|---|
IsSetDescriptor ( CodeContext context, IronPython.Runtime.Types.PythonType owner ) : bool | ||
MakeGetExpression ( |
Gets an expression which is used for accessing this slot. If the slot lookup fails the error expression is used again. The default implementation just calls the TryGetValue method. Subtypes of PythonTypeSlot can override this and provide a more optimal implementation.
|
|
TryDeleteValue ( CodeContext context, object instance, IronPython.Runtime.Types.PythonType owner ) : bool |
Deletes the value stored in the slot from the instance.
|
|
TryGetValue ( CodeContext context, object instance, IronPython.Runtime.Types.PythonType owner, object &value ) : bool | ||
TrySetValue ( CodeContext context, object instance, IronPython.Runtime.Types.PythonType owner, object value ) : bool |
Sets the value of the slot for the given instance.
|
public __get__ ( CodeContext context, object instance, [ typeContext ) : object | ||
context | CodeContext | |
instance | object | |
typeContext | [ | |
Résultat | object |