Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 2.9 Inheriting properties from built-in classes @info:cursos:pue:python-pcpp1:m1
- lt, your newly-created class has the advantage of all of the well-known functionalities inherited from its parent or even parents and you can still access... object? Imagine that you need to collect the serial numbers of sold tickets. Sound reasonable enough?... based on the Python list implementation and will also validate the type of elements that are about to
- 2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
- ar we have been using Python core operations that allow us to operate on strings, lists, integers, and floats. It’s natural for us to formulate expressions using algebraic symbols representing operators, or to get a number of... d integers and we know what the result should be, all done by using the “+” operator, but on respectiv
- 2.4 Decorators @info:cursos:pue:python-pcpp1:m1
- orator's operation is based on wrapping the original function with a new "decorating" function (or cla... e "decoration". This is done by passing the original function (i.e., the **decorated** function) as a ... function so that the **decorating** function can call the passed function. The decorating function returns a function that can be called later. Of course, the **decorating** function
- 2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
- became entry #20 in the Python Enhancement Proposals in 2004. It’s one of the //Easter eggs// (i.e.,... ppens? What you see is a collection of some general truths for Python design rules and decision makin... "poem" seems to be imbued with contradictions and allusions, we assure you that the aphorisms are extremely practical and common sense, and you’re encouraged to accept
- 1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
- r magic letters: CRUD == Entering a non-existing/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 works, how it’ is mounted on top o
- 1.1 SQLite @info:cursos:pue:python-pcpp1:m5
- = 1.1 SQLite == What is a database? Nowadays, social applications such as Facebook, Twitter, and Insta... ntents of their posts, and comments. The data are all kinds of information that we can send to the app... se management systems in the world. SQLite is actually a C library which allows the user to read and write data directly to a file. You're surprised? The
- 3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
- mportant PEPs and a must-read for every professional Python programmer, as it helps to make the code m... over the conventions provided for by PEP 8, especially in the case of any conflicts, or backwards-comp... grammer. PEP 8 is still evolving as new, additional conventions are being identified and included in ... hobgoblin of little minds.” This is a quote from Ralph Waldo Emerson’s essay “Self-Reliance” where Eme
- 4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
- hat are docstrings? A docstring is "a string literal that occurs as the first statement in a module, f... on. Such a docstring becomes the ''__doc__'' special attribute of that object." (PEP 257) In other wo... in order to provide information about the functionality of a larger piece of code in a **prescriptive*... ore we move on, we need to understand this essential distinction (as their names suggest): comments ar
- Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
- = Python Professional Course Series: GUI Programming == What is GUI? GUI is an acronym. Moreover, it’s... , 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... nicate with the user. They communicate bidirectionally. GUI stands for Graphical User Interface. In t
- 2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
- ticular the attributes of the instance, so we’ve called them i**nstance methods**. The instance metho... ter, take the ''self'' parameter, which is their hallmark. It’s worth emphasizing and remembering that ''self'' allows you to refer to the instance. Of course, it f... de python> class Example: def __init__(self, value): self.__internal = value def get_
- 1.5 What is XML and why do we prefer to use JSON? @info:cursos:pue:python-pcpp1:m4
- self. Note – it isn't a programming language, and although it is possible to build a real programming language on top of XML, it wasn't (and still isn't) ... its native niche. XML is – like JSON – a **universal and transparent carrier** of any type of data. Yo... an use it to store and transfer documents of virtually any type. For example, the document format prod
- 1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
- have reached the point where we can start the final stage of our journey – we know enough to communic... 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 to talk with the **service** (we beg your pardon). “Wai
- 2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
- ncapsulation Encapsulation is one of the fundamental concepts in object-oriented programming (amongst ... ds** are provided in the class **to access** the values, and other objects call those methods to retrieve and modify the values within the object. This can be a way to enforce a ce
- 1.1 Python Professional Course Series: RESTful APIs @info:cursos:pue:python-pcpp1:m4
- = 1.1 Python Professional Course Series: RESTful APIs == Some words about REST The word you see below ... e we going to convince you to take a rest? Not at all. On the contrary, we want to encourage you to st... specific kind of machinery (do not take this literally) which drives lots of contemporary computer systems, especially those which work on the Internet; moreover, whi
- 4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
- Python Standard Library provides a useful module called ''logging'' to log events occurring in the app... Most often it's in the form of a file, but it can also be an output stream, or even an external service. To start logging, we need to import the appropria... = The Logger object One application may have several loggers created both by us and by programmers of