프로퍼티 | 타입 | 설명 | |
---|---|---|---|
obj | IntPtr |
메소드 | 설명 | |
---|---|---|
AsManagedObject ( |
AsManagedObject Method Return a managed object of the given type, based on the value of the Python object. |
|
DelAttr ( |
DelAttr Method Delete the named attribute of the Python object, where name is a PyObject wrapping a Python string or unicode object. This method throws a PythonException if the attribute set fails. |
|
DelAttr ( string name ) : void |
DelAttr Method Delete the named attribute of the Python object. This method throws a PythonException if the attribute set fails. |
|
DelItem ( |
DelItem Method For objects that support the Python sequence or mapping protocols, delete the item at the given object index. This method raises a PythonException if the delete operation fails. |
|
DelItem ( int index ) : void |
DelItem Method For objects that support the Python sequence or mapping protocols, delete the item at the given numeric index. This method raises a PythonException if the delete operation fails. |
|
DelItem ( string key ) : void |
DelItem Method For objects that support the Python sequence or mapping protocols, delete the item at the given string index. This method raises a PythonException if the delete operation fails. |
|
Dir ( ) : |
Dir Method Return a list of the names of the attributes of the object. This is equivalent to the Python expression "dir(object)". |
|
Dispose ( ) : void | ||
Equals ( object o ) : bool |
Equals Method Return true if this object is equal to the given object. This method is based on Python equality semantics. |
|
FromManagedObject ( object ob ) : |
FromManagedObject Method Given an arbitrary managed object, return a Python instance that reflects the managed object. |
|
GetAttr ( |
GetAttr Method Returns the named attribute of the Python object or raises a PythonException if the attribute access fails. The name argument is a PyObject wrapping a Python string or unicode object. |
|
GetAttr ( |
GetAttr Method Returns the named attribute of the Python object, or the given default object if the attribute access fails. The name argument is a PyObject wrapping a Python string or unicode object. |
|
GetAttr ( string name ) : |
GetAttr Method Returns the named attribute of the Python object, or raises a PythonException if the attribute access fails. |
|
GetAttr ( string name, |
GetAttr Method Returns the named attribute of the Python object, or the given default object if the attribute access fails. |
|
GetEnumerator ( ) : IEnumerator |
GetEnumerator Method Return a new PyIter object for the object. This allows any iterable python object to be iterated over in C#. A PythonException will be raised if the object is not iterable. |
|
GetHashCode ( ) : int |
GetHashCode Method Return a hashcode based on the Python object. This returns the hash as computed by Python, equivalent to the Python expression "hash(obj)". |
|
GetItem ( |
GetItem Method For objects that support the Python sequence or mapping protocols, return the item at the given object index. This method raises a PythonException if the indexing operation fails. |
|
GetItem ( int index ) : |
GetItem Method For objects that support the Python sequence or mapping protocols, return the item at the given numeric index. This method raises a PythonException if the indexing operation fails. |
|
GetItem ( string key ) : |
GetItem Method For objects that support the Python sequence or mapping protocols, return the item at the given string index. This method raises a PythonException if the indexing operation fails. |
|
GetIterator ( ) : |
GetIterator Method Return a new (Python) iterator for the object. This is equivalent to the Python expression "iter(object)". A PythonException will be raised if the object cannot be iterated. |
|
GetPythonType ( ) : |
GetPythonType Method Returns the Python type of the object. This method is equivalent to the Python expression: type(object). |
|
HasAttr ( |
HasAttr Method Returns true if the object has an attribute with the given name, where name is a PyObject wrapping a string or unicode object. |
|
HasAttr ( string name ) : bool |
HasAttr Method Returns true if the object has an attribute with the given name. |
|
Invoke ( ) : |
Invoke Method Invoke the callable object with the given arguments, passed as a PyObject[]. A PythonException is raised if the invokation fails. |
|
Invoke ( |
Invoke Method Invoke the callable object with the given positional and keyword arguments. A PythonException is raised if the invokation fails. |
|
Invoke ( |
Invoke Method Invoke the callable object with the given arguments, passed as a Python tuple. A PythonException is raised if the invokation fails. |
|
Invoke ( |
Invoke Method Invoke the callable object with the given positional and keyword arguments. A PythonException is raised if the invokation fails. |
|
InvokeMethod ( string name ) : |
InvokeMethod Method Invoke the named method of the object with the given arguments. A PythonException is raised if the invokation is unsuccessful. |
|
InvokeMethod ( string name, |
InvokeMethod Method Invoke the named method of the object with the given arguments and keyword arguments. Keyword args are passed as a PyDict object. A PythonException is raised if the invokation is unsuccessful. |
|
InvokeMethod ( string name, |
InvokeMethod Method Invoke the named method of the object with the given arguments. A PythonException is raised if the invokation is unsuccessful. |
|
InvokeMethod ( string name, |
InvokeMethod Method Invoke the named method of the object with the given arguments and keyword arguments. Keyword args are passed as a PyDict object. A PythonException is raised if the invokation is unsuccessful. |
|
IsCallable ( ) : bool |
IsCallable Method Returns true if the object is a callable object. This method always succeeds. |
|
IsInstance ( |
IsInstance Method Return true if the object is an instance of the given Python type or class. This method always succeeds. |
|
IsIterable ( ) : bool |
IsIterable Method Returns true if the object is iterable object. This method always succeeds. |
|
IsSubclass ( |
IsSubclass Method Return true if the object is identical to or derived from the given Python type or class. This method always succeeds. |
|
IsTrue ( ) : bool |
IsTrue Method Return true if the object is true according to Python semantics. This method always succeeds. |
|
Length ( ) : int |
Length Method Returns the length for objects that support the Python sequence protocol, or 0 if the object does not support the protocol. |
|
PyObject ( |
PyObject Constructor Creates a new PyObject from an IntPtr object reference. Note that the PyObject instance assumes ownership of the object reference and the reference will be DECREFed when the PyObject is garbage collected or explicitly disposed. |
|
Repr ( ) : string |
Repr Method Return a string representation of the object. This method is the managed equivalent of the Python expression "repr(object)". |
|
SetAttr ( |
SetAttr Method Set an attribute of the object with the given name and value, where the name is a Python string or unicode object. This method throws a PythonException if the attribute set fails. |
|
SetAttr ( string name, |
SetAttr Method Set an attribute of the object with the given name and value. This method throws a PythonException if the attribute set fails. |
|
SetItem ( |
SetItem Method For objects that support the Python sequence or mapping protocols, set the item at the given object index to the given value. This method raises a PythonException if the set operation fails. |
|
SetItem ( int index, |
SetItem Method For objects that support the Python sequence or mapping protocols, set the item at the given numeric index to the given value. This method raises a PythonException if the set operation fails. |
|
SetItem ( string key, PyObject value ) : void |
SetItem Method For objects that support the Python sequence or mapping protocols, set the item at the given string index to the given value. This method raises a PythonException if the set operation fails. |
|
ToString ( ) : string |
ToString Method Return the string representation of the object. This method is the managed equivalent of the Python expression "str(object)". |
|
TryBinaryOperation ( BinaryOperationBinder binder, Object arg, Object &result ) : bool | ||
TryConvert ( ConvertBinder binder, object &result ) : bool | ||
TryGetMember ( GetMemberBinder binder, object &result ) : bool | ||
TryInvoke ( InvokeBinder binder, object args, object &result ) : bool | ||
TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool | ||
TrySetMember ( SetMemberBinder binder, object value ) : bool | ||
TryUnaryOperation ( UnaryOperationBinder binder, Object &result ) : bool | ||
TypeCheck ( PyObject typeOrClass ) : bool |
TypeCheck Method Returns true if the object o is of type typeOrClass or a subtype of typeOrClass. |
|
this ( PyObject key ) : PyObject |
PyObject Indexer Provides a shorthand for the object versions of the GetItem and SetItem methods. |
|
this ( int index ) : PyObject |
Numeric Indexer Provides a shorthand for the numeric versions of the GetItem and SetItem methods. |
|
this ( string key ) : PyObject |
String Indexer Provides a shorthand for the string versions of the GetItem and SetItem methods. |
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose Method The Dispose method provides a way to explicitly release the Python object represented by a PyObject instance. It is a good idea to call Dispose on PyObjects that wrap resources that are limited or need strict lifetime control. Otherwise, references to Python objects will not be released until a managed garbage collection occurs. |
|
PyObject ( ) : System |
메소드 | 설명 | |
---|---|---|
CheckNone ( |
||
GetArgs ( object inargs, |
public static FromManagedObject ( object ob ) : |
||
ob | object | |
리턴 |
public GetAttr ( |
||
name | ||
_default | ||
리턴 |
public GetAttr ( string name, |
||
name | string | |
_default | ||
리턴 |
public Invoke ( |
||
args | ||
kw | ||
리턴 |
public Invoke ( |
||
args | ||
kw | ||
리턴 |
public InvokeMethod ( string name, |
||
name | string | |
args | ||
kw | ||
리턴 |
public InvokeMethod ( string name, |
||
name | string | |
args | ||
리턴 |
public InvokeMethod ( string name, |
||
name | string | |
args | ||
kw | ||
리턴 |
public SetAttr ( |
||
name | ||
value | ||
리턴 | void |
public SetAttr ( string name, |
||
name | string | |
value | ||
리턴 | void |
public SetItem ( |
||
key | ||
value | ||
리턴 | void |
public SetItem ( int index, |
||
index | int | |
value | ||
리턴 | void |
public SetItem ( string key, PyObject value ) : void | ||
key | string | |
value | PyObject | |
리턴 | void |
public TryBinaryOperation ( BinaryOperationBinder binder, Object arg, Object &result ) : bool | ||
binder | BinaryOperationBinder | |
arg | Object | |
result | Object | |
리턴 | bool |
public TryConvert ( ConvertBinder binder, object &result ) : bool | ||
binder | ConvertBinder | |
result | object | |
리턴 | bool |
public TryGetMember ( GetMemberBinder binder, object &result ) : bool | ||
binder | GetMemberBinder | |
result | object | |
리턴 | bool |
public TryInvoke ( InvokeBinder binder, object args, object &result ) : bool | ||
binder | InvokeBinder | |
args | object | |
result | object | |
리턴 | bool |
public TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool | ||
binder | InvokeMemberBinder | |
args | object | |
result | object | |
리턴 | bool |
public TrySetMember ( SetMemberBinder binder, object value ) : bool | ||
binder | SetMemberBinder | |
value | object | |
리턴 | bool |
public TryUnaryOperation ( UnaryOperationBinder binder, Object &result ) : bool | ||
binder | UnaryOperationBinder | |
result | Object | |
리턴 | bool |