Cerca

Heus ací els resultats de la cerca.

4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
213 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 the cause of an e
3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
71 Resultats, Darrera modificació:
ing, as they help you to better understand the philosophy behind Python and become a more aware and pr... ntified as obsolete and discouraged from being followed. == The Hobgoblin of Little Minds ”A foolish ... lines (or at least consider doing so)? * If following them will mean that you break backwards compatibility. * If following them will have a negative effect on code read
1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
70 Resultats, Darrera modificació:
ls and glue all these pieces into one functional block. You already know how HTTP works, how it’ is mo... le file, or on the contrary, a huge, distributed cloud of cooperating servers; but the interface provided to the user (you) will always look the same. We can say that that's what REST was... ifferent programs written in very different technologies can utilize shared data through one, **univer
4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
63 Resultats, Darrera modificació:
7 is a document created as part of the Python Developer's Guide, which makes an attempt to standardize... g docstrings. In short, it tries to answer the following two questions: - What should Python docstr... , operation, and capabilities of particular code blocks or sections. == Docstring vs. comments Before ... ntually between commenting and documenting code? Look at the table below, where we want to show you s
1.1 SQLite @info:cursos:pue:python-pcpp1:m5
53 Resultats, Darrera modificació:
n your account data, consisting of email address, login, and password, and when you add new posts you ... the world. SQLite is actually a C library which allows the user to read and write data directly to a f... at all, because it's a self-contained library enclosed in one source file. SQLite also supports trans... portunity to learn about a new module that will allow you to create amazing applications using SQLite
2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
51 Resultats, Darrera modificació:
collection of 19 aphorisms, which reflect the philosophy behind Python, its guiding principles, and design. Tim Peters, a long time major contributor to the Python programmin... lement in your code. These, of course, should be looked upon holistically, rather than individually, ... le rules** that programmers are recommended to follow. These are, among other things: a 79-character m
1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
51 Resultats, Darrera modificació:
d**. It's too choosy and too powerful. It exposes lots of details which aren't necessary available at ... faces when it tries to establish, maintain, and close internet connections. This is why we used it be... cations, but at the same time, the socket is too bloated and too heavy when you just want to have a **... ox** for us, and we don't want to persuade you to look inside it. Okay. Let's start. First of all, w
2.4 Decorators @info:cursos:pue:python-pcpp1:m1
50 Resultats, Darrera modificació:
* the measurement of execution time; * message logging; * thread synchronization; * code refact... heory. So, let's create a function – ''simple_hello()'' is one of the simplest functions we could thi... rate it in a moment. <code python> def simple_hello(): print("Hello from simple function!") </code> <code python> def simple_decorator(function):
1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
49 Resultats, Darrera modificació:
HTTP server**. Our program has to perform the following steps: - **create a new socket** able to h... n the requested root document of the site) - **close the socket** (end the connection) This is our road map. Let's follow the route. {{ :info:cursos:pue:python-pcpp1:m4:... Because** there can be more than one HTTP server located at the same IP address** - the server you wi
1.4 Coloring your widgets @info:cursos:pue:python-pcpp1:m3
48 Resultats, Darrera modificació:
= 1.4 Coloring your widgets == Adding colors Nearly everything you put inside your windows may be **colored**. Most widgets have dedicated properties to handle their colors and we will tell you about them while discussin
2.4 Shaping the main window and conversing with the user @info:cursos:pue:python-pcpp1:m3
48 Resultats, Darrera modificació:
on> import tkinter as tk def click(*args): global counter if counter > 0: counter -=... ter)) window.bind("<Button-1>", click) window.mainloop() </code> Changing the main window’s icon is ... although we agree it’s not very elegant. Take a look at the code we've provided in the editor. <cod... ll('wm', 'iconphoto', window._w, PhotoImage(file='logo.png')) window.bind("&lt;Button-1&gt;", lambda e
3.1 Advanced techniques of creating and serving exceptions @info:cursos:pue:python-pcpp1:m1
40 Resultats, Darrera modificació:
execution of a program that disrupts the normal flow of the program's instructions. Plan for the mod... continue. Python provides effective tools that allow you to **observe exceptions, identify them and h... y have met an exception error message like the following: <code ; output> IndexError: list index out o... ld use the ''try: problematic_code'' except code block to surround the "problematic" piece of code. In
4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
40 Resultats, Darrera modificació:
= 4.1 Shallow and deep copy operations == Copying objects using shallow and deep operations In this module, you’ll learn... * the id() function and the is operand; * shallow and deep copies of the objects. It’s hard to im... les. As variables are fundamental elements that allow us to cope with objects, let's talk in detail ab
2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
38 Resultats, Darrera modificació:
es or an order in a class hierarchy. When you develop a system in a group of programmers, it would be ... a dedicated Python module to validate if the developer has implemented a subclass that overrides __al... tract class, because abstract classes partially allow us to implement classes by delivering concrete d... application, even after the main application development is finished. Let's start with a typical cla
Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
38 Resultats, Darrera modificació:
l the more that GUI is present nearly everywhere. Look around you – you’ll see a couple of different d... – all these things have a screen, most of them colored and many (more and more every year) use it to ... ng to understand that. Don’t worry, it won’t take long. We’re going to travel not more than fifty year... u ready? Okay, let’s go! == Terminals For a very long time (about 30 years or even longer) displays w
1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
35 Resultats, Darrera modificació:
1.7 Visiting widgets’ properties @info:cursos:pue:python-pcpp1:m3
34 Resultats, Darrera modificació:
5.1 The configparser module @info:cursos:pue:python-pcpp1:m5
34 Resultats, Darrera modificació:
2.1 File processing - XML files @info:cursos:pue:python-pcpp1:m5
32 Resultats, Darrera modificació:
2.5 Working with the Canvas @info:cursos:pue:python-pcpp1:m3
30 Resultats, Darrera modificació:
1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
29 Resultats, Darrera modificació:
1.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
25 Resultats, Darrera modificació:
2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
22 Resultats, Darrera modificació:
1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
22 Resultats, Darrera modificació:
1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
21 Resultats, Darrera modificació:
3.1 The CSV module in Python @info:cursos:pue:python-pcpp1:m5
19 Resultats, Darrera modificació:
5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
16 Resultats, Darrera modificació:
1.8 Interacting with widget methods @info:cursos:pue:python-pcpp1:m3
15 Resultats, Darrera modificació:
2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
13 Resultats, Darrera modificació:
2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
10 Resultats, Darrera modificació:
1.9 Looking at variables @info:cursos:pue:python-pcpp1:m3
6 Resultats, Darrera modificació:
2.3 Extended function argument syntax @info:cursos:pue:python-pcpp1:m1
5 Resultats, Darrera modificació:
1.1 What is PEP? @info:cursos:pue:python-pcpp1:m2
4 Resultats, Darrera modificació: