### GUI Test Setup and Teardown Source: https://github.com/ironlanguages/ironpython3/blob/main/src/core/IronPython.StdLib/lib/idlelib/idle_test/README.txt Example of setUpClass and tearDownClass methods for GUI tests, ensuring GUI resources are properly initialized and cleaned up. Requires 'gui' resource. ```python @classmethod def setUpClass(cls): requires('gui') cls.root = tk.Tk() @classmethod def tearDownClass(cls): cls.root.destroy() del cls.root ``` -------------------------------- ### Download and run IronPython installation script Source: https://github.com/ironlanguages/ironpython3/wiki/Installing Download the installation script from GitHub and then execute it to set up IronPython. This method can be used without unzipping the archive first. ```powershell PS> Invoke-WebRequest https://raw.githubusercontent.com/IronLanguages/ironpython3/main/eng/scripts/Install-IronPython.ps1 -OutFile ./Install-IronPython.ps1 ``` ```powershell PS> ./Install-IronPython ~/ipyenv ~/Downloads/IronPython.3.X.Y.zip ``` ```powershell PS> ~/ipyenv/Enter-IronPythonEnvironment ``` ```python «ipyenv» PS> ipy IronPython 3.4.0 (3.4.0.1000) [.NETCoreApp,Version=v6.0 on .NET 6.0.12 (64-bit)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> ``` -------------------------------- ### Install sympy Package Source: https://github.com/ironlanguages/ironpython3/wiki/Package-compatibility Install version 1.4 of the sympy package. This will also install mpmath 1.2.1 if not already present. ```bash ipy -m pip install sympy==1.4 ``` -------------------------------- ### Install IronPython as a Global .NET Tool Source: https://github.com/ironlanguages/ironpython3/wiki/Installing Installs IronPython for the current user, making it available globally via the `ipy` command. The Python Standard Library is included. Ensure `~/.dotnet/tools` is in your PATH. ```bash dotnet tool install --global ironpython.console ``` -------------------------------- ### Install IronPython using PowerShell script Source: https://github.com/ironlanguages/ironpython3/wiki/Installing Use the helper PowerShell script to install IronPython in a specified location and create a launcher script. This allows a single zip file to seed multiple virtual environments. ```powershell /path/to/unzipped/scripts/Install-IronPython.ps1 -Path ~/ipyenv -ZipFile ~/Downloads/IronPython.3.X.Y.zip ``` -------------------------------- ### Selector Operator Example Source: https://github.com/ironlanguages/ironpython3/blob/main/src/core/IronPython.StdLib/lib/test/tokenize_tests.txt Shows an example of using the attribute access operator (.) to retrieve a function from a module. ```python import sys, time x = sys.modules['time'].time() ``` -------------------------------- ### Prepare IronPython Environment for PyPI Packages Source: https://github.com/ironlanguages/ironpython3/wiki/Package-compatibility Perform this one-time preparation for a fresh IronPython installation or environment to install Python modules from PyPI. ```bash ipy -m ensurepip icy -m pip install --upgrade pip icy -m pip install --upgrade setuptools ``` -------------------------------- ### Install IronPython using Chocolatey Source: https://github.com/ironlanguages/ironpython3/wiki/Installing Install IronPython on Windows using the Chocolatey package manager. This is a convenient alternative to manual installation. ```powershell choco install ironpython ``` -------------------------------- ### Install IronPython from Zip File Source: https://github.com/ironlanguages/ironpython3/wiki/Installing Use this script to install IronPython from a downloaded zip file. The script automatically locates the zip file if run from the `./eng/scripts` directory. ```powershell ./eng/scripts/Install-IronPython.ps1 /path/to/install/directory -framework net462 ``` -------------------------------- ### Install IronPython on Debian-like Linux Source: https://github.com/ironlanguages/ironpython3/wiki/Installing Install the IronPython .deb package on Debian-based Linux distributions after installing Mono. Ensure Mono is installed and the 'mono' command is available. ```bash dpkg -i ~/Downloads/ironpython_3.X.Y.deb ``` -------------------------------- ### M550 Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_operators.html Demonstrates a method with integer and array parameters. ```APIDOC ## M550 ### Description This method accepts an integer `x`, an integer `y`, and an array of integers `z`. ### Method (Not specified, likely a Python method call) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```python instance.M550(10, 20, [1, 2, 3]) ``` ### Response (Not specified) ``` -------------------------------- ### M550 Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_arguments.html Demonstrates a method accepting integer and array of integer arguments. ```APIDOC ## M550 ### Description This method accepts two integer arguments and an array of integers. ### Method Signature `M550(self, int x, int y, Array[int] z)` ``` -------------------------------- ### EntryPoint Property Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Returns the entry point of this assembly. ```APIDOC ## EntryPoint Property ### Description Returns the entry point of this assembly. ### Get MethodInfo EntryPoint(self) ``` -------------------------------- ### Install IronPython using PowerShell Source: https://github.com/ironlanguages/ironpython3/blob/main/README.md Installs IronPython using a PowerShell script. Ensure the script is downloaded and executed correctly. Optionally, ensure pip is installed. ```powershell & ([scriptblock]::Create((iwr ` -Uri 'https://raw.githubusercontent.com/IronLanguages/ironpython3/main/eng/scripts/Install-IronPython.ps1').Content)) ` -Path "~/ipyenv/v3.4.2" # Optionally, ensure pip: # &"~/ipyenv/v3.4.2/ipy" -m ensurepip ``` -------------------------------- ### PDB Alias Creation Example Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/debugging.pdb_mod.html Shows how to create a custom alias for a sequence of PDB commands. Aliases can use parameters like %1, %2, and %*. ```python #Print instance variables (usage "pi classInst") ``` -------------------------------- ### Launch IronPython from a Specific Installation Directory Source: https://github.com/ironlanguages/ironpython3/wiki/Installing Launches IronPython using its DLL from a specific installation directory. This is useful when IronPython has been installed to a custom location using `--tool-path`. ```bash dotnet /path/to/unzipped/netXXX/ipy.dll ``` -------------------------------- ### Install requests Package Source: https://github.com/ironlanguages/ironpython3/wiki/Package-compatibility Install version 2.21.0 of the requests package using pip. ```bash ipy -m pip install requests==2.21.0 ``` -------------------------------- ### PDB Breakpoint Commands Example Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/debugging.pdb_mod.html Demonstrates how to set commands for a specific breakpoint. Commands are entered on subsequent lines and terminated with 'end'. ```python (Pdb) commands 1 (com) print some_variable (com) end ``` -------------------------------- ### ClassWithProperties Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.property.test_property.html Demonstrates a class with various instance and static properties. ```APIDOC ## ClassWithProperties ### Description This class defines several instance and static properties. ### Properties #### Instance Properties - **InstanceInt32Property** (int) - Get/Set: Allows getting and setting an integer value. - **InstanceSimpleClassProperty** (SimpleClass) - Get/Set: Allows getting and setting a SimpleClass object. - **InstanceSimpleStructProperty** (SimpleStruct) - Get/Set: Allows getting and setting a SimpleStruct value. #### Static Properties - **StaticInt32Property** (int) - Get/Set: Allows getting and setting a static integer value. - **StaticSimpleClassProperty** (SimpleClass) - Get/Set: Allows getting and setting a static SimpleClass object. - **StaticSimpleStructProperty** (SimpleStruct) - Get/Set: Allows getting and setting a static SimpleStruct value. ``` -------------------------------- ### M650 Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_operators.html Demonstrates a method with multiple integer parameters. ```APIDOC ## M650 ### Description This method accepts ten integer arguments: `arg1` through `arg10`. ### Method (Not specified, likely a Python method call) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```python instance.M650(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) ``` ### Response (Not specified) ``` -------------------------------- ### Install IronPython as a Project-Local .NET Tool Source: https://github.com/ironlanguages/ironpython3/wiki/Installing Installs IronPython as a tool local to the current .NET project. Invoke it using `dotnet ipy` from within the project directory. Note that packages installed via `dotnet ipy -m pip` are not local to the project. ```bash dotnet tool install ironpython.console ``` -------------------------------- ### Install IronPython Script Source: https://github.com/ironlanguages/ironpython3/blob/main/eng/package/zip/README.md Use the Install-IronPython.ps1 script to set up IronPython. Run 'help ./scripts/Install-IronPython' for more options. ```powershell PS> ./scripts/Install-IronPython.ps1 ~/.local/share/ironpython ``` -------------------------------- ### Delegate Call Methods Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_defaultmember.html Demonstrates the different ways to call a delegate, with or without a dictionary for context. ```APIDOC ## Call ### Description Allows invoking a delegate with optional dictionary context and arguments. ### Method Call ### Signature `object Call(Delegate delegate, dict dict, Array[object] args)` `object Call(Delegate delegate, Array[object] args)` ``` -------------------------------- ### Create a .NET Tool Manifest Source: https://github.com/ironlanguages/ironpython3/wiki/Installing Creates a tool manifest file (`./.config/dotnet-tools.json`) for a .NET project if one does not exist. This file tracks .NET tools used within the project and should be added to source control. ```bash dotnet new tool-manifest ``` -------------------------------- ### Install pytest and typing Packages Source: https://github.com/ironlanguages/ironpython3/wiki/Package-compatibility Install specific versions of pytest and typing packages. Note that pytest may encounter a SystemError and require a code modification. ```bash ipy -m pip install pytest==4.6.11 typing==3.10.0.0 ``` -------------------------------- ### Install IronPython to a Specific Directory Source: https://github.com/ironlanguages/ironpython3/wiki/Installing Installs IronPython and its standard library to a specified directory, creating an isolated environment similar to a Python virtual environment. Executable `ipy` will be available in the target directory. ```bash dotnet tool install ironpython.console --tool-path /path/to/install/directory ``` -------------------------------- ### IDLE Command Line Options Source: https://github.com/ironlanguages/ironpython3/blob/main/src/core/IronPython.StdLib/lib/idlelib/help.txt Explains the various command-line options available for running IDLE, such as executing commands, enabling the debugger, editing files, and setting the window title. ```bash -c command run this command ``` ```bash -d enable debugger ``` ```bash -e edit mode; arguments are files to be edited ``` ```bash -s run $IDLESTARTUP or $PYTHONSTARTUP first ``` ```bash -t title set title of shell window ``` -------------------------------- ### SimpleClass.__new__ Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_defaultmember.html Creates a new instance of SimpleClass. ```APIDOC ## SimpleClass.__new__ ### Description Creates a new instance of SimpleClass. ### Parameters #### cls The class. #### arg An integer argument. ### Returns A new instance of SimpleClass. ``` -------------------------------- ### Evidence Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Gets the evidence for this assembly. ```APIDOC ## Evidence ### Description Gets the evidence for this assembly. ### Method Evidence Evidence(self) ### Returns The evidence for the assembly. ``` -------------------------------- ### GetName Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Gets an AssemblyName for this assembly. ```APIDOC ## GetName (with copiedName) ### Description Gets an System.Reflection.AssemblyName for this assembly, setting the codebase as specified by copiedName. ### Parameters #### Path Parameters - **copiedName** (bool) - true to set the System.Reflection.Assembly.CodeBase to the location of the assembly after it was shadow copied; false to set System.Reflection.Assembly.CodeBase to the original location. ### Returns An System.Reflection.AssemblyName for this assembly. ``` ```APIDOC ## GetName (no parameters) ### Description Gets an System.Reflection.AssemblyName for this assembly. ### Returns An System.Reflection.AssemblyName for this assembly. ``` -------------------------------- ### Int16VoidDelegate.__reduce_ex__ Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.event.test_delegate.html Helper for pickling. ```APIDOC ## __reduce_ex__(...) ### Description Helper function used for pickling the delegate instance. ``` -------------------------------- ### Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_operators.html Gets the method represented by the delegate. ```APIDOC ## Method ### Description Gets the method represented by the delegate. ### Returns (MethodInfo) The MethodInfo object representing the delegate's method. ``` -------------------------------- ### Constructor with Integer Argument Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_arguments.html Demonstrates calling a constructor that accepts a single integer argument. ```python AllOpsClass(int val) ``` -------------------------------- ### Int16VoidDelegate.__new__ Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.event.test_delegate.html Creates a new instance of the Int16VoidDelegate. ```APIDOC ## __new__(cls, object, IntPtr method) ### Description Creates and returns a new instance of Int16VoidDelegate. ### Parameters #### Parameters - **cls** (type) - The class type. - **object** (object) - The object to be invoked. - **method** (IntPtr) - A pointer to the method to be invoked. ### Returns Int16VoidDelegate - A new instance of the delegate. ``` -------------------------------- ### Delegate.Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.property.test_property.html Gets the method represented by the delegate. ```APIDOC ## Delegate.Method ### Description Gets the method represented by the delegate. ### Method Delegate.Method ### Parameters #### Path Parameters - **self** (self) - The delegate instance. ### Returns MethodInfo - The method represented by the delegate. ### Request Example ``` my_delegate.Method ``` ### Response Example ``` ``` ``` -------------------------------- ### Assembly.LoadFrom(string assemblyFile, Evidence securityEvidence) Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Loads an assembly given its file name or path, and supplying security evidence. ```APIDOC ## Assembly.LoadFrom(string assemblyFile, Evidence securityEvidence) ### Description Loads an assembly given its file name or path and supplying security evidence. ### Parameters #### Path Parameters - **assemblyFile** (string) - The name or path of the file that contains the manifest of the assembly. - **securityEvidence** (Evidence) - Evidence for loading the assembly. ### Returns - The loaded assembly. ``` -------------------------------- ### Delegate.Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_defaultmember.html Gets the method represented by the delegate. ```APIDOC ## Delegate.Method ### Description Gets the method represented by the delegate. ### Returns The MethodInfo of the delegate. ``` -------------------------------- ### Target Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.property.test_indexercs.html Gets the target object of the delegate. ```APIDOC ## Target ### Description Gets the target object of the delegate. ### Parameters #### Path Parameters - **self** (Delegate) - Required - The delegate instance. ### Returns - **object** - The target object of the delegate. ``` -------------------------------- ### UInt32VoidDelegate Methods Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.event.test_delegate.html Methods for the UInt32VoidDelegate. ```APIDOC ## BeginInvoke ### Description Begins asynchronous execution of the delegate. ### Method IAsyncResult BeginInvoke(self, AsyncCallback callback, object state) ## EndInvoke ### Description Ends asynchronous execution of the delegate. ### Method UInt32 EndInvoke(self, IAsyncResult result) ## Invoke ### Description Synchronously executes the delegate. ### Method UInt32 Invoke(self) ## __new__ ### Description Creates a new instance of the UInt32VoidDelegate. ### Method UInt32VoidDelegate __new__(cls, object target, IntPtr method) ## __reduce_ex__ ### Description Helper method for pickling. ### Method helper __reduce_ex__(self) ``` -------------------------------- ### Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.property.test_indexercs.html Gets the method represented by the delegate. ```APIDOC ## Method ### Description Gets the method represented by the delegate. ### Parameters #### Path Parameters - **self** (Delegate) - Required - The delegate instance. ### Returns - **MethodInfo** - The MethodInfo object representing the delegate's method. ``` -------------------------------- ### SimpleClass Constructor Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_ctor.html Demonstrates the constructor for SimpleClass, which takes an integer argument. ```APIDOC ## SimpleClass Constructor ### Description This section details the constructor for `SimpleClass`. ### Signature `SimpleClass(int arg)` ### Parameters * **arg** (int) - Description of the integer argument. ``` -------------------------------- ### M650 Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_arguments.html Illustrates a method with a large number of integer arguments. ```APIDOC ## M650 ### Description This method accepts ten integer arguments. ### Method Signature `M650(self, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10)` ``` -------------------------------- ### Delegate.Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.property.test_indexervb.html Gets the method represented by the delegate. ```APIDOC ## Method ### Description Gets the method represented by the delegate. ### Parameters #### Path Parameters - **self** (Delegate) - Required - The delegate instance. ### Returns MethodInfo - The MethodInfo of the delegate. ``` -------------------------------- ### Wrapper Class Constructors and Methods Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_op_explicit.html Documentation for wrapper classes like ByteWrapperClass, CharWrapperClass, and others, including their constructors and methods such as __new__ and __repr__. ```APIDOC ## Wrapper Class Documentation ### ByteWrapperClass #### Constructor `ByteWrapperClass(Byte arg)` #### Methods - `__new__(cls, Byte arg)` - `__repr__(self)`: Returns a string representation of the object. ### CharWrapperClass #### Constructor `CharWrapperClass(Char arg)` #### Methods - `__new__(cls, Char arg)` - `__repr__(self)`: Returns a string representation of the object. ### ClassImplementSimpleInterface #### Constructor `ClassImplementSimpleInterface(int arg)` #### Methods - `__new__(cls, int arg)` - `__repr__(self)`: Returns a string representation of the object. ### ClassOne #### Constructor `ClassOne(int arg)` #### Methods - `__new__(cls, int arg)` - `__repr__(self)`: Returns a string representation of the object. ### ClassTwo #### Constructor `ClassTwo(int arg)` #### Methods - `__new__(cls, int arg)` - `__repr__(self)`: Returns a string representation of the object. ### ClassWithDefaultCtor #### Constructor `ClassWithDefaultCtor()` #### Methods - `__repr__(self)`: Returns a string representation of the object. ``` -------------------------------- ### FullName Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Gets the display name of the assembly. ```APIDOC ## FullName ### Description Gets the display name of the assembly. ### Method str FullName(self) ### Returns The display name of the assembly. ``` -------------------------------- ### __new__ Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_op_explicit.html Creates a new instance of the Int32Int32Delegate. ```APIDOC ## __new__ ### Description Creates a new instance of the Int32Int32Delegate. ### Method __new__(cls, object object, IntPtr method) ### Parameters * **cls** (type) - The type of the delegate. * **object** (object) - The object containing the method to be invoked. * **method** (IntPtr) - A pointer to the method to be invoked. ``` -------------------------------- ### GetModules Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Gets all the modules that are part of this assembly. ```APIDOC ## GetModules (with resourceModules) ### Description Gets all the modules that are part of this assembly, specifying whether to include resource modules. ### Parameters #### Path Parameters - **getResourceModules** (bool) - true to include resource modules; otherwise, false. ### Returns An array of modules. ``` ```APIDOC ## GetModules (no parameters) ### Description Gets all the modules that are part of this assembly. ### Returns An array of modules. ``` -------------------------------- ### CreateInstance Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Locates a specified type from this assembly and creates an instance of it using the system activator with case-sensitive search. ```APIDOC ## CreateInstance ### Description Locates the specified type from this assembly and creates an instance of it using the system activator, using case-sensitive search. ### Parameters #### Path Parameters - **typeName** (str) - Required - The System.Type.FullName of the type to locate. ### Returns An instance of System.Object representing the type, with culture, arguments, binder, and activation attributes set to null, and System.Reflection.BindingFlags set to Public or Instance, or null if typeName is not found. ``` -------------------------------- ### GetExportedTypes Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Gets all the types that are exported by this assembly. ```APIDOC ## GetExportedTypes ### Description Gets the exported types defined in this assembly. ### Method Array[Type] GetExportedTypes() ### Returns - **Array[Type]** - An array of System.Type containing the exported types defined in this assembly. ``` -------------------------------- ### GetTypes Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Gets the types defined in this assembly. ```APIDOC ## GetTypes() ### Description Gets the types defined in this assembly. ### Returns An array of type System.Type containing objects for all the types defined in this assembly. ``` -------------------------------- ### Start sympy Interactive Console Source: https://github.com/ironlanguages/ironpython3/wiki/Package-compatibility Launch the interactive console for sympy using the `isympy` command. ```bash ipy -m isympy ``` -------------------------------- ### Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.event.test_delegate.html Gets the method represented by the delegate. ```APIDOC ## Method ### Description Gets the method represented by the delegate. ### Returns - **MethodInfo** - The MethodInfo object representing the delegate's method. ``` -------------------------------- ### InOutParameters Class Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_operators.html Demonstrates methods with input and output parameters. ```APIDOC ## InOutParameters Class ### Description Illustrates methods that handle input and output parameters. ### Methods #### - **M100(self, arg: int)**: A method that takes an integer argument. - **M110(self)**: Returns an integer. - **M120(self)**: Returns an integer. - **__repr__(self)**: Returns a string representation of the InOutParameters instance. ``` -------------------------------- ### Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.derivation.test_event_override.html Gets the method represented by the delegate. ```APIDOC ## Method ### Description Gets the method represented by the delegate. ### Get MethodInfo Method(self) ``` -------------------------------- ### Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.event.test_delegate.html Gets the method represented by the delegate. ```APIDOC ## Method ### Description Gets the method represented by the delegate. ### Get - **MethodInfo** Method(self) ``` -------------------------------- ### Assembly.LoadFrom(string assemblyFile, Evidence securityEvidence) Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Loads an assembly given its file name or path and supplying security evidence. ```APIDOC ## Assembly.LoadFrom(string assemblyFile, Evidence securityEvidence) ### Description Loads an assembly given its file name or path and supplying security evidence. ### Method Assembly.LoadFrom ### Parameters #### Path Parameters - **assemblyFile** (str) - The name or path of the file that contains the manifest of the assembly. - **securityEvidence** (Evidence) - Evidence for loading the assembly. ### Returns - **Assembly** - The loaded assembly. ``` -------------------------------- ### New Instance (__new__) Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_op_implicit.html Creates a new instance of AllOpsClass. ```APIDOC ## New Instance (__new__) ### Description Creates a new instance of AllOpsClass. ### Method `__new__` ### Parameters - **cls** - The class itself. - **val** (int) - The integer value for the new instance. ``` -------------------------------- ### Delegate.Method Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.event.test_event.html Gets the method represented by the delegate. ```APIDOC ## Delegate.Method ### Description Gets the method represented by the delegate. ### Parameters #### Path Parameters - **self** (Delegate) - The delegate instance. ### Returns MethodInfo representing the delegate's method. ``` -------------------------------- ### HostContext Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Gets the host context with which the assembly was loaded. ```APIDOC ## HostContext ### Description Gets the host context with which the assembly was loaded. ### Method Int64 HostContext(self) ### Returns The host context. ``` -------------------------------- ### Assembly.LoadFile(string path, Evidence securityEvidence) Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Loads an assembly given its path, loading the assembly into the domain of the caller using the supplied evidence. ```APIDOC ## Assembly.LoadFile(string path, Evidence securityEvidence) ### Description Loads an assembly given its path, loading the assembly into the domain of the caller using the supplied evidence. ### Parameters #### Path Parameters - **path** (string) - The path of the assembly file. - **securityEvidence** (Evidence) - Evidence for loading the assembly. ### Returns - The loaded assembly. ``` -------------------------------- ### GetLoadedModules Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Gets all the loaded modules that are part of this assembly. ```APIDOC ## GetLoadedModules (with resourceModules) ### Description Gets all the loaded modules that are part of this assembly, specifying whether to include resource modules. ### Parameters #### Path Parameters - **getResourceModules** (bool) - true to include resource modules; otherwise, false. ### Returns An array of modules. ``` ```APIDOC ## GetLoadedModules (no parameters) ### Description Gets all the loaded modules that are part of this assembly. ### Returns An array of modules. ``` -------------------------------- ### __new__ Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.method.test_arguments.html Creates a new instance of the delegate. ```APIDOC ## __new__ ### Description Creates a new instance of the delegate. ### Method __new__(cls, object object, IntPtr method) ### Parameters * **cls**: The delegate class. * **object** (object) - The object containing the method to be invoked. * **method** (IntPtr) - A pointer to the method to be invoked. ``` -------------------------------- ### make.ps1 Build Options Source: https://github.com/ironlanguages/ironpython3/wiki/Building These options can be passed to the make.ps1 script for customizing the build process. Use 'package' to create platform-supported packages. ```powershell -configuration (debug/release) The configuration to build for -platform (x86/x64/arm64) The platform to use in running tests -runIgnored Run tests that are marked as ignored in the .ini manifests -frameworks A comma separated list of frameworks to run tests for (use nomenclature as is used in msbuild files for TargetFrameworks) ``` ```powershell package Creates packages supported by the current platform stage Stages files ready for packaging test-* Runs tests from `all` categories, `ironpython` specific tests, `cpython` tests from the CPython stdlib test suite ``` -------------------------------- ### Method Property Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.event.test_delegate.html Gets the method represented by the delegate. ```APIDOC ## Method (Property) ### Description Gets the method represented by the delegate. ### Get - **MethodInfo** - The MethodInfo object representing the delegate's method. ``` -------------------------------- ### Assembly.CreateInstance (Full Overload) Source: https://github.com/ironlanguages/ironpython3/blob/main/tests/suite/plans/interop.net.type.test_assembly.html Locates and creates an instance of a specified type from this assembly. This overload provides extensive control over the instantiation process, including case sensitivity, binding attributes, binder, arguments, culture, and activation attributes. ```APIDOC ## Assembly.CreateInstance ### Description Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search and having the specified culture, arguments, and binding and activation attributes. ### Method Assembly.CreateInstance ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters Details - **typeName** (str) - The System.Type.FullName of the type to locate. - **ignoreCase** (bool) - true to ignore the case of the type name; otherwise, false. - **bindingAttr** (BindingFlags) - A bitmask that affects the way in which the search is conducted. The value is a combination of bit flags from System.Reflection.BindingFlags. - **binder** (Binder) - An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects via reflection. If binder is null, the default binder is used. - **args** (Array[object]) - An array of type Object containing the arguments to be passed to the constructor. If the default constructor is desired, args must be an empty array or null. - **culture** (CultureInfo) - An instance of CultureInfo used to govern the coercion of types. If this is null, the CultureInfo for the current thread is used. - **activationAttributes** (Array[object]) - An array of one or more attributes that can participate in activation. Typically, an array that contains a single System.Runtime.Remoting.Activation.UrlAttribute. ### Returns An instance of Object representing the type and matching the specified criteria, or null if typeName is not found. ```