Cerca

Heus ací els resultats de la cerca.

2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
32 Resultats, Darrera modificació:
"poem" seems to be imbued with contradictions and allusions, we assure you that the aphorisms are extr... n program is not only more enjoyable to read, but also more **readable**. Python has certain **style ... e simplest way to express a programming idea, but also the most explicit, concrete, specific one. The... ood idea to add more verbosity to your code as it all counts towards readability. Giving self-explanat
Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
31 Resultats, Darrera modificació:
, that’s enough jokes about TLA’s for one course, all the more that GUI is present nearly everywhere. ... ven, even washing machine or heating controller – all these things have a screen, most of them colored... home) with thousands of colored lights, blinking all the time, and hundreds of switches (also colored). “Okay,” you may say, “nice image, but how could
1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
28 Resultats, Darrera modificació:
a **server serving** a web **service** (sorry for all these serv..., we weren't able to avoid them) and we also need a tool simpler than the ''socket'' module ... it,” you may ask here. “Doesn't the socket module already fit our needs?” It does, but it’s **too goo... to look inside it. Okay. Let's start. First of all, we need to have Node.js installed on our comput
1.1 SQLite @info:cursos:pue:python-pcpp1:m5
28 Resultats, Darrera modificació:
ntents of their posts, and comments. The data are all kinds of information that we can send to the app... n the world. SQLite is actually a C library which allows the user to read and write data directly to a... t's more, it doesn't require any configuration at all, because it's a self-contained library enclosed in one source file. SQLite also supports transactions, which are a set of datab
3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
23 Resultats, Darrera modificació:
indly adhere to these recommendations. You should always use your best judgement. == PEP 8 compliant ... ps://pycodestyle.pycqa.org/en/latest/ * You can also install **autopep8** to automatically format yo... u wish to **keep consistency with code** that has already been indented with tabs (if it’s not possibl... Mixing tabs and spaces for indentation is __not__ allowed** in Python 3. This will raise a TabError ex
4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
23 Resultats, Darrera modificació:
uch programming and code writing habits that will allow the developers and other users to understand t... irrelevant or reduntant information; and most of all – try to design and write your code in such a wa... t from the most obvious cases, such as **code and algorithm descriptions**, comments may serve a few o... ed with Python 3.5 and desecribed in PEP 484 that allows you to equip your code with additional inform
1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
21 Resultats, Darrera modificació:
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 works, how it’ is mounted on top o... but the interface provided to the user (you) will always look the same. We can say that that's what R
1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
20 Resultats, Darrera modificació:
s and how to handle them == Event handling As you already know, events are the fuel which propel the application’s movements. All events come **to the event manager**, which is responsible for dispatching them to all the application components. This also means that some of the events may launch some of your callback
2.1 File processing - XML files @info:cursos:pue:python-pcpp1:m5
20 Resultats, Darrera modificació:
document must have one root element that contains all other elements. In the example below, the main e... ed to import the appropriate module and define an alias for it. It's common to use the alias ET, but of course you can give it any name you like. To creat... y the Element class. == XML parsing (part 2) You already know how to access the root element. Let's u
2.4 Decorators @info:cursos:pue:python-pcpp1:m1
17 Resultats, Darrera modificació:
ider a function that accepts arguments and should also be decorated. Decorators, which should be unive... n use the *args and %%**%%kwargs concepts. We can also employ a closure technique to persist arguments... which the decorator will be more generic – we’ll allow you to pass the packing material in the argume... print("We'll pack fruits:", args) pack_books('Alice in Wonderland', 'Winnie the Pooh') pack_toys('
2.3 A small lexicon of widgets - Part 3 @info:cursos:pue:python-pcpp1:m3
17 Resultats, Darrera modificació:
' widget not only presents a line of text, but is also able to **edit** the text according to the user... name, password, email, etc. The widget implements all standard edit operations like inserting, removin... r shows you how to use an **observable variable** along with the **trace callback** (tracer) to force a user to enter **only digits** – all other characters will be silently **ignored**.
1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
17 Resultats, Darrera modificació:
ntinuous struggle with acronyms? Well, you’re not alone. We share this opinion. An old anecdote says t... tunately, the notation we want to tell you about, although created with JavaScript environments in min... JavaScript. In fact, it can be used by virtually all modern programming environments thanks to the st... o machine/platform-dependent formats are used; it also means that the data JSON carries is readable (p
1.5 What is XML and why do we prefer to use JSON? @info:cursos:pue:python-pcpp1:m4
17 Resultats, Darrera modificació:
self. Note – it isn't a programming language, and although it is possible to build a real programming ... are. It can be intriguing how different they are, although both the solutions were invented for nearly... re – it's a store with the most legendary cars of all time. Don't expect to be able to buy “just a car... sion = "1.0" encoding = "utf-8"?></code> First of all, it **declares that the document contains XML te
2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
16 Resultats, Darrera modificació:
s worth emphasizing and remembering that ''self'' allows you to refer to the instance. Of course, it f... __internal%%'', and the ''get_internal()'' method allows you to read the instance variable specific to... c and class methods Two other types of method can also be used in the Object Oriented Approach (OOP): * class methods; * static methods. These alternative types of method should be understood as
1.1 Python Professional Course Series: RESTful APIs @info:cursos:pue:python-pcpp1:m4
16 Resultats, Darrera modificació:
e we going to convince you to take a rest? Not at all. On the contrary, we want to encourage you to st... very curious way of representing its data - it's always **text**. Pure, plain text. "It must be a jo... hink now. "How is it possible to send and receive all kinds of data using plain text?" It's a very go... of **properties**. We can say that the values of all the object's properties constitute its state. If
2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
15 Resultats, Darrera modificació:
1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
15 Resultats, Darrera modificació:
2.3 Extended function argument syntax @info:cursos:pue:python-pcpp1:m1
13 Resultats, Darrera modificació:
2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
13 Resultats, Darrera modificació:
1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
12 Resultats, Darrera modificació:
4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
12 Resultats, Darrera modificació:
5.1 The configparser module @info:cursos:pue:python-pcpp1:m5
11 Resultats, Darrera modificació:
1.4 Coloring your widgets @info:cursos:pue:python-pcpp1:m3
10 Resultats, Darrera modificació:
1.7 Visiting widgets’ properties @info:cursos:pue:python-pcpp1:m3
10 Resultats, Darrera modificació:
1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
10 Resultats, Darrera modificació:
5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
8 Resultats, Darrera modificació:
2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
7 Resultats, Darrera modificació:
4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
7 Resultats, Darrera modificació:
1.8 Interacting with widget methods @info:cursos:pue:python-pcpp1:m3
7 Resultats, Darrera modificació:
3.1 The CSV module in Python @info:cursos:pue:python-pcpp1:m5
7 Resultats, Darrera modificació:
1.1 What is PEP? @info:cursos:pue:python-pcpp1:m2
3 Resultats, Darrera modificació:
1.9 Looking at variables @info:cursos:pue:python-pcpp1:m3
3 Resultats, Darrera modificació:
1.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
2 Resultats, Darrera modificació:
2.5 Working with the Canvas @info:cursos:pue:python-pcpp1:m3
2 Resultats, Darrera modificació: