![featuredImage2 → Python GUI featuredimage2 4](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/03/featuredImage2-9015423.png?resize=1140%2C675&ssl=1)
A built-in function object is a wrapper around a C function. Examples of built-in functions are len() and math.sin() (math is a standard built-in module). The number and type of the arguments are determined by the C function.
You can browse all the built-in function objects available to us for windows development inside the DelphiVCL library using the Python dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL) |
All the built-in function objects are marked with a red rectangle:
![0dir2105989 → Python GUI What Are The Built In Function Objects Inside DelphiVCL List of functions](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/0dir-2105989.png?resize=684%2C579&ssl=1)
Here are the built-in function objects inside the DelphiVCL library and their explanations:
- __doc__: The __doc__ attribute is the module’s or class’s documentation string, the content will be set to None if unavailable.
- __file__: The __file__ attribute is the pathname of the file from which the module was loaded if it was loaded from a file. The __file__ attribute may be missing for certain types of modules, such as C modules that are statically linked into the interpreter; for extension modules loaded dynamically from a shared library, it is the pathname of the shared library file.
- __loader__: The __loader__ attribute must be set to the loader object that the import machinery used when loading the module. This is mostly for introspection but can be used for additional loader-specific functionality, for example getting data associated with a loader.
- __name__: The __name__ attribute must be set to the fully qualified name of the module. This name is used to uniquely identify the module in the import system.
- __package__: The module’s __package__ attribute must be set. Its value must be a string, but it can be the same value as its __name__. When the module is a package, its __package__ value should be set to its __name__. When the module is not a package, __package__ should be set to the empty string for top-level modules, or submodules, to the parent package’s name.
- __spec__: The __spec__ attribute must be set to the module spec that was used when importing the module. Setting __spec__ appropriately applies equally to modules initialized during interpreter startup. The one exception is __main__, where __spec__ is set to None in some cases. When __package__ is not defined, __spec__.parent is used as a fallback.
Let’s run dir() command to all the attributes above:
1 2 3 4 5 6 |
dir(DelphiVCL.__doc__) dir(DelphiVCL.__file__) dir(DelphiVCL.__loader__) dir(DelphiVCL.__name__) dir(DelphiVCL.__package__) dir(DelphiVCL.__spec__) |
See the responses in our Windows command prompt:
![dirDOC1368730 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Screen 1](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/dirDOC-1368730.png?resize=684%2C116&ssl=1)
![dirFILE8034761 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Screen 2](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/dirFILE-8034761.png?resize=685%2C244&ssl=1)
![dirLOADER1386534 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Screen 3](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/dirLOADER-1386534.png?resize=685%2C164&ssl=1)
![dirNAME4642083 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Screen 4](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/dirNAME-4642083.png?resize=684%2C243&ssl=1)
![dirPACKAGE3860660 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Screen 5](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/dirPACKAGE-3860660.png?resize=684%2C243&ssl=1)
![dirSPEC6195960 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Screen 6](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/dirSPEC-6195960.png?resize=685%2C164&ssl=1)
Let’s run print() command to all the attributes above:
1 2 3 4 5 6 |
print(DelphiVCL.__doc__) print(DelphiVCL.__file__) print(DelphiVCL.__loader__) print(DelphiVCL.__name__) print(DelphiVCL.__package__) print(DelphiVCL.__spec__) |
See the responses in our Windows command prompt:
![printDOC5595592 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Response 1](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/printDOC-5595592.png?resize=684%2C66&ssl=1)
![printFILE4759326 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Response 2](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/printFILE-4759326.png?resize=684%2C67&ssl=1)
![printLOADER1449233 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Response 3](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/printLOADER-1449233.png?resize=685%2C68&ssl=1)
![printNAME1551848 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Response 4](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/printNAME-1551848.png?resize=684%2C67&ssl=1)
![printPACKAGE7574573 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Response 5](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/printPACKAGE-7574573.png?resize=685%2C68&ssl=1)
![printSPEC5444336 → Python GUI What Are The Built In Function Objects Inside DelphiVCL Response 6](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/04/printSPEC-5444336.png?resize=684%2C99&ssl=1)
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.