Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 3.1 Advanced techniques of creating and serving exceptions
- = 3.1 Advanced techniques of creating and serving exceptions In this module, we'll talk about Python ex... t kind of exception might occur. So, when a subsequent exception (much better forecasted) occurs, we s... d output. The corresponding output reveals the sequence of exceptions and proves that the execution wa
- 4.1 Shallow and deep copy operations
- . This is an integer which is guaranteed to be unique and constant for this object during its lifetime.... ile copying objects. The side effect of this infrequent use is that some developers forget about its ex... %%'' operator. In other words, it responds to the question: “Are both variables referring to the same i
- 5.1 Metaprogramming
- etaclasses Metaprogramming is a programming technique in which computer programs have the ability to mo... velopment time. But the truth is that this technique could be used for tool preparation; those tools c... form one more experiment that will respond to the question: what type of objects are built-in classes a
- 2.4 Decorators
- args concepts. We can also employ a closure technique to persist arguments. The code presented in the ... cd = subject_matter_function() </code> the call sequence will look like the following: * the outer_de
- 2.5 Different faces of Python methods
- bject of that class to execute its code; * consequently, when the static method does not need to know... validate the character string and will answer the question: can a given character string be an account
- 1.1 Classes, Instances, Attributes, Methods — introduction
- y random phone numbers to them; * implement a sequence of method calls on the objects to turn them on
- 1.2 Working with class and instance data – instance variables
- ariable named **species**, which holds a value unique to each class. When we iterate over all objects,
- 2.1 Python core syntax
- operators, or to get a number of elements in a sequence or dictionary. We are able to add two or more
- 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP
- of **class C** is fetched; * Python finds the requested method in the **class B** definition and stop
- 2.3 Extended function argument syntax
- e in a tuple (as you may remember, a tuple is a sequence type, because the order matters in this case).
- 2.7 Encapsulation
- bject** ) exceeding the total tank capacity, or request setting the liquid level to a negative value.
- 2.8 Composition vs Inheritance - two ways to the same destination
- hich way should you choose? Before we answer the question, let's mention a few more things: * inher
- 4.3 Making Python objects persistent using the shelve module
- direct access to the elements (contrary to the sequential access to items when we use pickles). <code