Cerca

Heus ací els resultats de la cerca.

2.4 Decorators @info:cursos:pue:python-pcpp1:m1
320 Resultats, Darrera modificació:
= 2.4 Decorators A decorator is one of the design patterns that describes the structure of related objects. Python is able to decorate functions, m
3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
276 Resultats, Darrera modificació:
mentioned 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-read for every profe
4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
245 Resultats, Darrera modificació:
P 257 is a document created as part of the Python Developer's Guide, which makes an attempt to standardize the high-level structure of docstrings. It outl... egulations!) associated with documenting Python code using docstrings. In short, it tries to answer th... statement in a module, function, class, or method definition. Such a docstring becomes the ''__doc__''
1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
243 Resultats, Darrera modificació:
n just store and publish fancy images and funny videos. In fact, a properly trained web server can be... complicated and heavy databases or other services designed for storing and processing information. Mor... ud of cooperating servers; but the interface provided to the user (you) will always look the same. We... uild complex services. A set of four operations hides beneath the following mysterious acronym: {{ :in
2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
154 Resultats, Darrera modificació:
osophy behind Python, its guiding principles, and design. Tim Peters, a long time major contributor t... 2004. It’s one of the //Easter eggs// (i.e., hidden, secret messages or features) included in the Python interpreter. Now let’s see the magic. Go to th... editor window, type in ''import this'', run the code, and voilà! Can you see what happens? What you s
4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
150 Resultats, Darrera modificació:
= 4.1 Shallow and deep copy operations == Copying objects using shallow and deep operations In this module, you’ll learn how to ... ally, you'll learn about: * object: label vs. identity vs. value; * the id() function and the is operand; * shallow and deep copies of the objects. It’s hard to imagine wr
2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
146 Resultats, Darrera modificació:
= 2.6 Abstract classes Python is considered to be a very flexible programming language, but that doesn... ntrols to impose a set of functionalities or an order in a class hierarchy. When you develop a system in a group of programmers, it would be useful to hav... tract class? An **abstract class** should be considered a blueprint for other classes, a kind of contr
3.1 Advanced techniques of creating and serving exceptions @info:cursos:pue:python-pcpp1:m1
140 Resultats, Darrera modificació:
hat an exception has been raised) when it has no idea what do to with your code. What happens next? * the raised exception expects somebody or somethi... taken care of and **handled** properly, the suspended program can be resumed and its execution can continue. Python provides effective tools that allow you to **observe exce
1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
140 Resultats, Darrera modificació:
s too choosy and too powerful. It exposes lots of details which aren't necessary available at the higher levels of software design. The socket module is perfect when you want to understand network issues at the TCP level and to lear... little chat** with a web service. Which of these demands (server or tool) should be satisfied earlier
2.3 A small lexicon of widgets - Part 3 @info:cursos:pue:python-pcpp1:m3
137 Resultats, Darrera modificació:
widget doesn’t take the focus itself. Run the code and test its behavior. <code python> import tkinter as tk def digits_only(*args): global last_string string = text.get()... y.pack() entry.focus_set() window.mainloop() </code> Try to modify the code to allow the user to ent
2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP @info:cursos:pue:python-pcpp1:m1
126 Resultats, Darrera modificació:
ses: superclasses (parents) and their subclasses (descendants). Inheritance creates a class hierarchy.... inherits all the traits (methods and attributes) defined inside any of the superclasses. This means that inheritance is a way of building a new class, not from scratch, but by using an already defined repertoire of traits. The new class inherits
5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
124 Resultats, Darrera modificació:
ability to modify their own or other programs’ codes. It may sound like an idea from a science fiction story, but the idea was born and implemented in the early 1960s. For Python, code modifications can occure while the code is being
1.1 SQLite @info:cursos:pue:python-pcpp1:m5
121 Resultats, Darrera modificació:
ng a database structure; * inserting, updating, deleting, and searching data; * ensuring data secu... tems on the market. The most popular of them include: * Free: MySQL, PostgreSQL, SQLite * Paid: Or... uire a separate server process to be running in order to communicate with the database. What's more, ... rface compliant with the DB-API 2.0 specification described by [[https://peps.python.org/pep-0249/|PEP
1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
120 Resultats, Darrera modificació:
re not in the habit of coming up with such crazy ideas, although, to be honest, it's not as complex as... d we're sure that you knew it before we asked: <code python> import json </code> The first JSON module's power is the ability to automatically **convert ... g. There is a very similar function with the name deprived of this suffix which **writes the JSON stri
1.5 What is XML and why do we prefer to use JSON? @info:cursos:pue:python-pcpp1:m4
106 Resultats, Darrera modificació:
or texts. As you probably suspect, XML is much older than JSON. Moreover, it's heavier and less flexi... ke a look – it's a simple sample XML document: <code xml><?xml version = "1.0" encoding = "utf-8"?> <!... <id>1</id> <brand>Ford</brand> <model>Mustang</model> <production_year>1972</production_year> <price currency="USD">35900</pri
2.1 File processing - XML files @info:cursos:pue:python-pcpp1:m5
101 Resultats, Darrera modificació:
2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
91 Resultats, Darrera modificació:
4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
90 Resultats, Darrera modificació:
1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
85 Resultats, Darrera modificació:
3.1 The CSV module in Python @info:cursos:pue:python-pcpp1:m5
84 Resultats, Darrera modificació:
1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
73 Resultats, Darrera modificació:
2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
72 Resultats, Darrera modificació:
1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
71 Resultats, Darrera modificació:
1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
71 Resultats, Darrera modificació:
2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
64 Resultats, Darrera modificació:
2.5 Working with the Canvas @info:cursos:pue:python-pcpp1:m3
63 Resultats, Darrera modificació:
2.3 Extended function argument syntax @info:cursos:pue:python-pcpp1:m1
61 Resultats, Darrera modificació:
5.1 The configparser module @info:cursos:pue:python-pcpp1:m5
50 Resultats, Darrera modificació:
1.7 Visiting widgets’ properties @info:cursos:pue:python-pcpp1:m3
48 Resultats, Darrera modificació:
1.8 Interacting with widget methods @info:cursos:pue:python-pcpp1:m3
44 Resultats, Darrera modificació:
1.1 What is PEP? @info:cursos:pue:python-pcpp1:m2
35 Resultats, Darrera modificació:
1.4 Coloring your widgets @info:cursos:pue:python-pcpp1:m3
34 Resultats, Darrera modificació:
1.9 Looking at variables @info:cursos:pue:python-pcpp1:m3
33 Resultats, Darrera modificació:
1.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
32 Resultats, Darrera modificació: