Cerca

Heus ací els resultats de la cerca.

1.1 SQLite @info:cursos:pue:python-pcpp1:m5
167 Resultats, Darrera modificació:
ocial applications such as Facebook, Twitter, and Instagram are very popular. Every day many people cr... Do you know how that’s possible? Data is simply information about users, the contents of their posts, and comments. The data are all kinds of information that we can send to the application. Dur... visible to other users. Sent data should be saved in some place that can be easily accessed. This plac
4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
142 Resultats, Darrera modificació:
ed with documenting Python code using docstrings. In short, it tries to answer the following two quest... string literal that occurs as the first statement in a module, function, class, or method definition. ... _'' special attribute of that object." (PEP 257) In other words, docstrings are Python **documentation strings** that are used in the class, module, function, and method definitio
3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
140 Resultats, Darrera modificació:
= 3.1 PEP 8 – Introduction As mentioned earlier, PEP 8 is a document that provides coding conventions ... ng projects may adopt their own style guidelines (in which case such project-specific guidelines may b... the conventions provided for by PEP 8, especially in the case of any conflicts, or backwards-compatibi... , additional conventions are being identified and included in it, and at the same time some old conven
5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
123 Resultats, Darrera modificació:
= 5.1 Metaprogramming == Introduction to metaclasses Metaprogramming is a programming technique in which computer programs have the ability to modif... tion story, but the idea was born and implemented in the early 1960s. For Python, code modifications ... tocol. It may look like syntactic sugar, because in many cases metaprogramming allows programmers to
2.9 Inheriting properties from built-in classes @info:cursos:pue:python-pcpp1:m1
121 Resultats, Darrera modificació:
= 2.9 Inheriting properties from built-in classes Python gives you the ability to create a class that inherits properties from any Python built-in class in order to get a new class that can enrich the paren
2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
108 Resultats, Darrera modificació:
rote this 19-line poem on the Python mailing list in 1999, and it became entry #20 in the Python Enhancement Proposals in 2004. It’s one of the //Easter eggs// (i.e., hidden, secret messages or features) included in the Python interpreter. Now let’s see t
2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP @info:cursos:pue:python-pcpp1:m1
107 Resultats, Darrera modificació:
= 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP Inheritance is one of the fundamental concepts of object oriented program... ses (parents) and their subclasses (descendants). Inheritance creates a class hierarchy. Any object bo
2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
104 Resultats, Darrera modificació:
tions that allow us to operate on strings, lists, integers, and floats. It’s natural for us to formula... senting operators, or to get a number of elements in a sequence or dictionary. We are able to add two or more strings together, which results in the strings’ concatenation; we are able to add integers and we know what the result should be, all do
3.1 Advanced techniques of creating and serving exceptions @info:cursos:pue:python-pcpp1:m1
100 Resultats, Darrera modificació:
ced techniques of creating and serving exceptions In this module, we'll talk about Python exceptions –... am that disrupts the normal flow of the program's instructions. Plan for the module: * short introduction to exceptions; * review of the named attributes of exception objects; * introduction to chained exceptions; * analysis of
1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
99 Resultats, Darrera modificació:
xisting/malformed address We’ve reached the point in which we are ready to gather all new facts and tools and glue all these pieces into one functional block. You already know how HTTP... store and publish fancy images and funny videos. In fact, a properly trained web server can be a very... ther services designed for storing and processing information. Moreover, the structure of the database
1.2 Working with class and instance data – instance variables @info:cursos:pue:python-pcpp1:m1
95 Resultats, Darrera modificació:
= 1.2 Working with class and instance data – instance variables == Instance variables This kind of variable exists when and only when it is explicitl... o an object. This can be done during the object's initialization, performed by the __init__ method, or
2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
87 Resultats, Darrera modificació:
ing methods that have performed operations on the instances (objects), and in particular the attributes of the instance, so we’ve called them i**nstance methods**. The instance methods, as the first parameter, take the '
2.4 Decorators @info:cursos:pue:python-pcpp1:m1
86 Resultats, Darrera modificació:
thout directly modifying it. Decorators are used in: * the validation of arguments; * the modifi... st functions we could think of. We'll decorate it in a moment. <code python> def simple_hello(): ... > The last lines are responsible for both method invocations: <code python> decorated = simple_decora... he whole code should look like the code presented in the right pane. When you run the code, the resul
1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
81 Resultats, Darrera modificació:
= 1.2 How to use sockets in Python == How to fetch a document from a server using Python We are going ... (e.g., pythoninstitute.org) using the standard ''input()'' function and **fetches the root document**... his is our road map. Let's follow the route. {{ :info:cursos:pue:python-pcpp1:m4:pasted:20240108-104229.png }} === Importing a socket We are in need - we need a socket. How do we obtain a socke
4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
81 Resultats, Darrera modificació:
= 4.1 Logging in Python == Logging in Python The Python Standard Library provides a useful module called ''logging'' to log events occurring in the application. Logs are most often used to find... default, Python and its modules provide many logs informing you of the causes of errors. However, it's
2.1 File processing - XML files @info:cursos:pue:python-pcpp1:m5
71 Resultats, Darrera modificació:
4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
70 Resultats, Darrera modificació:
2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
65 Resultats, Darrera modificació:
1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
56 Resultats, Darrera modificació:
1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
54 Resultats, Darrera modificació:
1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
53 Resultats, Darrera modificació:
5.1 The configparser module @info:cursos:pue:python-pcpp1:m5
51 Resultats, Darrera modificació:
1.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
45 Resultats, Darrera modificació:
3.1 The CSV module in Python @info:cursos:pue:python-pcpp1:m5
45 Resultats, Darrera modificació:
2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
36 Resultats, Darrera modificació:
1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
36 Resultats, Darrera modificació:
1.7 Visiting widgets’ properties @info:cursos:pue:python-pcpp1:m3
35 Resultats, Darrera modificació:
2.5 Working with the Canvas @info:cursos:pue:python-pcpp1:m3
30 Resultats, Darrera modificació:
1.8 Interacting with widget methods @info:cursos:pue:python-pcpp1:m3
27 Resultats, Darrera modificació:
2.3 Extended function argument syntax @info:cursos:pue:python-pcpp1:m1
25 Resultats, Darrera modificació:
1.9 Looking at variables @info:cursos:pue:python-pcpp1:m3
23 Resultats, Darrera modificació:
1.4 Coloring your widgets @info:cursos:pue:python-pcpp1:m3
22 Resultats, Darrera modificació:
1.1 What is PEP? @info:cursos:pue:python-pcpp1:m2
18 Resultats, Darrera modificació: