Cerca

Heus ací els resultats de la cerca.

5.1 The configparser module @info:cursos:pue:python-pcpp1:m5
102 Resultats, Darrera modificació:
= 5.1 The configparser module == Introduction to the configparser module Currently, many popular services provide an... tly in the code. A better solution is to use the configuration file, which will be read by the code. I... hon, this is possible thanks to a module called ''configparser''. The ''configparser'' module is avail
1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
89 Resultats, Darrera modificació:
trained web server can be a very **effective and convenient gateway** to very complicated and heavy da... nal database residing in a single file, or on the contrary, a huge, distributed cloud of cooperating se... date data inside a collection when you modify the contents of the selected item without removing it, e.... erver'' will read the file in and will handle its contents according to our actions; * each car is de
1.1 SQLite @info:cursos:pue:python-pcpp1:m5
87 Resultats, Darrera modificació:
counts, and existing users add or share different content. You’ve surely noticed that the data sent to ... ble? Data is simply information about users, the contents of their posts, and comments. The data are a... tion, you send the application your account data, consisting of email address, login, and password, and when you add new posts you send content that will be visible to other users. Sent dat
1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
81 Resultats, Darrera modificació:
nt** to the screen; * the program **uses TCP to connect to the HTTP server**. Our program has to per... teps: - **create a new socket** able to handle connection-oriented transmissions based on TCP; - **connect the socket to the HTTP server** of a given ad... t) - **receive the server's response** (it will contain the requested root document of the site) -
3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
71 Resultats, Darrera modificació:
earlier, PEP 8 is a document that provides coding conventions (code style guide) for Python code. PEP 8 is considered one of the most important PEPs and a must-... hon programmer, as it helps to make the code more consistent, more readable, and more efficient. Even ... oject-specific guidelines may be favored over the conventions provided for by PEP 8, especially in the
2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
54 Resultats, Darrera modificació:
e strings together, which results in the strings’ concatenation; we are able to add integers and we kno... or double underscores, as it’s a shorter and more convenient phrase). Dunders indicate that such method... n core syntax rules. The '+' operator is in fact converted to the __add__() method and the len() function is converted to the __len__() method. These methods must
1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
43 Resultats, Darrera modificació:
tries to establish, maintain, and close internet connections. This is why we used it before when we wa... ith this issue. The next step is to open your OS console and... * ...if you're a Windows user, run ... the right to write into; * return to the system console and issue the following command:<code bash>js... ' should be specified absolutely, i.e., it has to contain the path leading to the downloaded file. Due
2.8 Composition vs Inheritance - two ways to the same destination @info:cursos:pue:python-pcpp1:m1
36 Resultats, Darrera modificació:
ar we've been using and following the inheritance concept when modeling our classes to represent real-life issues. Inheritance is a great concept, one of the most important foundations of obj... cle” object, is easily achieved. The inheritance concept is a powerful one, but you should remember th... programming. Inheritance is not the only way of constructing adaptable objects. You can achieve simil
2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
32 Resultats, Darrera modificació:
iples, and design. Tim Peters, a long time major contributor to the Python programming language and Py... g. Even though the "poem" seems to be imbued with contradictions and allusions, we assure you that the ... 79-character maximum line length, variable naming conventions, placing statements on separate lines, an... s a programming idea, but also the most explicit, concrete, specific one. Therefore, it’s sometimes a
1.1 Python Professional Course Series: RESTful APIs @info:cursos:pue:python-pcpp1:m4
31 Resultats, Darrera modificació:
ay look a little enigmatic: REST Are we going to convince you to take a rest? Not at all. On the contrary, we want to encourage you to start the next part ... (do not take this literally) which drives lots of contemporary computer systems, especially those which... ant you to use it. Imagine any object. The object contains a set (the most preferable set is a non-empt
1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
30 Resultats, Darrera modificació:
Inter is a package named **tkinter**. The package contains a bunch of functions, constants, classes, objects, and modules used to build GUI applications. The GUI application itself consists of four essential elements: * **importing... gets** to the window; * **launching** the event controller. That’s all. Really. Looks too good to be
Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
28 Resultats, Darrera modificació:
et, fridge, oven, even washing machine or heating controller – all these things have a screen, most of ... Okay,” you may say, “nice image, but how could we control such a computer?” To control the computer, you needed to have a specialized and completely separa... building, a different city or even on a different continent. But the most intriguing part of the story
2.3 A small lexicon of widgets - Part 3 @info:cursos:pue:python-pcpp1:m3
27 Resultats, Darrera modificació:
= 2.3 A small lexicon of widgets - Part 3 There are two remaining widgets we want to tell you about – the first one is just a widget, while the second is, in fact, a **set of cooperating widgets**. ... d restores the field to this state if its current contents are invalid. Note: we’ve had to use the ''f... if string == '' or string.isdigit(): # Field's content is valid. last_string = string el
4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
27 Resultats, Darrera modificació:
itor. <code python> import logging logging.basicConfig() logger = logging.getLogger() logger.critic... els are not displayed. This is due to the default configuration, which we'll talk about in a moment. **NOTE**: The ''basicConfig'' method will be discussed later in the course... ember that it's responsible for the basic logging configuration. == The setLevel method The root logge
4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
26 Resultats, Darrera modificació:
s an integer which is guaranteed to be unique and constant for this object during its lifetime. Two obj... ame. Run the code presented in the right pane to confirm our speculations: <code python> a_string = '1... ject; * modify the original object; * see the contents of both objects. Pay attention to the code ... h ''a_list'' is a compound object (an object that contains other objects, like lists, dictionaries, or
1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
24 Resultats, Darrera modificació:
4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
22 Resultats, Darrera modificació:
3.1 The CSV module in Python @info:cursos:pue:python-pcpp1:m5
22 Resultats, Darrera modificació:
5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
20 Resultats, Darrera modificació:
2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
19 Resultats, Darrera modificació:
2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
18 Resultats, Darrera modificació:
2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
16 Resultats, Darrera modificació:
1.7 Visiting widgets’ properties @info:cursos:pue:python-pcpp1:m3
15 Resultats, Darrera modificació:
1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
15 Resultats, Darrera modificació:
2.4 Decorators @info:cursos:pue:python-pcpp1:m1
14 Resultats, Darrera modificació:
2.1 File processing - XML files @info:cursos:pue:python-pcpp1:m5
14 Resultats, Darrera modificació:
1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
12 Resultats, Darrera modificació:
1.8 Interacting with widget methods @info:cursos:pue:python-pcpp1:m3
10 Resultats, Darrera modificació:
2.1 A small lexicon of widgets - Part 1 @info:cursos:pue:python-pcpp1:m3
10 Resultats, Darrera modificació:
1.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
8 Resultats, Darrera modificació:
2.2 A small lexicon of widgets - Part 2 @info:cursos:pue:python-pcpp1:m3
7 Resultats, Darrera modificació:
2.5 Working with the Canvas @info:cursos:pue:python-pcpp1:m3
7 Resultats, Darrera modificació:
1.1 What is PEP? @info:cursos:pue:python-pcpp1:m2
6 Resultats, Darrera modificació:
1.4 Coloring your widgets @info:cursos:pue:python-pcpp1:m3
5 Resultats, Darrera modificació:
1.9 Looking at variables @info:cursos:pue:python-pcpp1:m3
5 Resultats, Darrera modificació:
2.3 Extended function argument syntax @info:cursos:pue:python-pcpp1:m1
1 Resultats, Darrera modificació: