Cerca
Heus ací els resultats de la cerca.
Noms de pàgina coincidents:
- 1.1 Classes, Instances, Attributes, Methods — introduction
- 1.2 Working with class and instance data – instance variables
- 2.1 Python core syntax
- 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP
- 2.3 Extended function argument syntax
- 2.4 Decorators
- 2.5 Different faces of Python methods
- 2.6 Abstract classes
- 2.7 Encapsulation
- 2.8 Composition vs Inheritance - two ways to the same destination
- 2.9 Inheriting properties from built-in classes
- 3.1 Advanced techniques of creating and serving exceptions
- 4.1 Shallow and deep copy operations
- 4.2 Serialization of Python objects using the pickle module
- 4.3 Making Python objects persistent using the shelve module
- 5.1 Metaprogramming
Resultats de text complet:
- 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP
- t we'll discuss this issue more a bit later. {{ :info:cursos:pue:python-pcpp1:pasted:20231013-035718.pn... ngs in Python) Can you see the diamond there? {{ :info:cursos:pue:python-pcpp1:pasted:20231013-040047.pn... h classes B and C. If you want to call the method info(), which part of the code would be executed then?... output of the code? <code python>class A: def info(self): print('Class A') class B(A):
- 2.1 Python core syntax
- ook at the last lines of the output – it contains information about the __abs__ and __add__ special meth... ersal map, unrelated to any special data type. {{:info:cursos:pue:python-pcpp1:pasted:20231013-031457.png}} {{:info:cursos:pue:python-pcpp1:pasted:20231013-031512.png}} {{:info:cursos:pue:python-pcpp1:pasted:20231013-031526.pn
- 1.2 Working with class and instance data – instance variables
- e class, rather than to the instances: * fixed information like description, configuration, or identification values; * mutable information like the number of instances created (if w... ed before, class variables can refer to some meta information or common information shared amongst instances of the same class. The example below demonstrate
- 3.1 Advanced techniques of creating and serving exceptions
- object. Some exception objects carry additional information about the exception itself. The ''ImportE... n additional exception. Should your code lose the information about the previous exception? Of course not. So the information should be available to the code following ... e code execution contains an interesting piece of information indicating that we have just witnessed a c
- 4.1 Shallow and deep copy operations
- thon> a_list = [ 1, 'New York', 100] </code> {{ :info:cursos:pue:python-pcpp1:pasted:20231026-143815.pn... se </code> This could be depicted as follows: {{ :info:cursos:pue:python-pcpp1:pasted:20231101-150854.pn... references to the already existing objects. {{ :info:cursos:pue:python-pcpp1:pasted:20231101-151357.pn... nction, delivered by the python 'copy' module {{ :info:cursos:pue:python-pcpp1:pasted:20231101-151525.pn
- 5.1 Metaprogramming
- type'' is ''type'' – no, that is not a typo. {{ :info:cursos:pue:python-pcpp1:pasted:20231104-102014.pn... inherent for both classes and instances; contains information about the class to which a class instance ... – inherent for classes; it’s a tuple and contains information about the base classes of a class; * ''%... e} object "dog" attributes: {} </code> The same information stored in ''%%__class__%%'' could be retri
- 1.1 Classes, Instances, Attributes, Methods — introduction
- kinds of class traits: * variables, containing information about the class itself or a class instance... very handy Python function that returns the class information about the objects passed as arguments to t... allowing new instances of that type to be made. Information about an object’s class is contained in %%
- 2.8 Composition vs Inheritance - two ways to the same destination
- , your inheriting classes could form a tree. {{ :info:cursos:pue:python-pcpp1:pasted:20231023-022208.pn... hicles own properties and methods responsible for informing the user of its mileage, starting and stoppi... there is a generic “Connection” class that holds information about the connection speed and handles the
- 2.9 Inheriting properties from built-in classes
- d the log_timestamp() method that appends crucial information to the self.log attribute; * we have ove... ctionary contains only validated IBANs (keys) and info about the associated balance (value). Well, what... orway) * line 08: if it is shorter, the user is informed; * line 09: moreover, the IBAN cannot be lo
- 2.6 Abstract classes
- n scanned; * **get_scanner_status** – returns information about the scanner (max. resolution, serial... n printed; * **get_printer_status** – returns information about the printer (max. resolution, serial
- 4.2 Serialization of Python objects using the pickle module
- via a network. This byte stream contains all the information necessary to reconstruct the object in ano... sisting of: * a nested dictionary carrying some information about currencies; * a list containing a
- 2.5 Different faces of Python methods
- s variables, e.g., to a class variable containing information about the number of created instances or t
- 2.7 Encapsulation
- , to perform some actions on the attributes. {{ :info:cursos:pue:python-pcpp1:pasted:20231023-004942.pn
- 4.3 Making Python objects persistent using the shelve module
- > The meaning of the optional flag parameter: {{:info:cursos:pue:python-pcpp1:pasted:20231101-160208.pn