Funcția open() returnează un obiect fișier care poate fi folosit pentru a citi, scrie și modifica fișierul. Dacă fișierul nu este găsit, se ridică excepția FileNotFoundError.
[mai mult...]Python object()
The object() function returns a featureless object which is a base for all classes.
[mai mult...]Python memoryview()
The memoryview() function returns a memory view object of the given argument.
[mai mult...]Python map()
The map() function applies a given function to each item of an iterable (list, tuple etc.) and returns an iterator.
[mai mult...]Python min()
The min() function returns the smallest item in an iterable. It can also be used to find the smallest item between two or more parameters.
[mai mult...]Python max()
The max() function returns the largest item in an iterable. It can also be used to find the largest item between two or more parameters.
[mai mult...]Python issubclass()
The issubclass() function checks if the class argument (first argument) is a subclass of classinfo class (second argument).
issubclass() returns:
- True if class is subclass of a class, or any element of the tuple
- False otherwise
Python isinstance()
The isinstance() function checks if the object (first argument) is an instance or subclass of classinfo class (second argument).
isinstance() returns:
- True if the object is an instance or subclass of a class or any element of the tuple
- False otherwise
If classinfo is not a type or tuple of types, a TypeError exception is raised.
[mai mult...]Python id()
The id() method returns a unique integer (identity) of a passed argument object.
[mai mult...]Python hash()
The hash() method returns the hash value of an object if it has one. Hash values are just integers that are used to compare dictionary keys during a dictionary look quickly.
[mai mult...]