Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
- ction (as their names suggest): comments are used for **commenting** your code, while docstrings are used for **documenting** your code. So, what is the differ... menting code important? Essentially, we must not forget this simple rule by Guido van Rossum: "**Code ... ode** you're describing in order to make it clear for the reader which part of the code you're referrin
- 1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
- k and how the HTTP server is able to do much more for us than just store and publish fancy images and f... ed and heavy databases or other services designed for storing and processing information. Moreover, the... e. We can say that that's what REST was invented for. Thanks to it, very different programs written in... reate”, you can add new items to data collection, for example, write a new blog post, add a new picture
- 3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
- at 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 professional Python programmer, as it helps... ines may be favored over the conventions provided for by PEP 8, especially in the case of any conflicts... and practices. In our case, it means we must not forget about one simple but important observation:**
- 1.5 What is XML and why do we prefer to use JSON? @info:cursos:pue:python-pcpp1:m4
- ore and transfer documents of virtually any type. For example, the document format produced by MS Office applications (the newer one with file extensions en... ey are, although both the solutions were invented for nearly the same purpose. Take a look – it's a si... l - List of cars ready to sell --> <!DOCTYPE cars_for_sale SYSTEM "cars.dtd"> <cars_for_sale> <car>
- 4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
- logs in different places. Most often it's in the form of a file, but it can also be an output stream, ... modules in which the dot separator is used. Their format is as follows: **hello** – creates a logger w... r'' object has methods that set the logging level for you. Take a look at the example in the editor. <... that will be visible in the logs. The default log format includes the level, the logger name and the me
- 2.9 Inheriting properties from built-in classes @info:cursos:pue:python-pcpp1:m1
- the methods by delivering your own modifications for the selected methods. In the following example, ... , value) def extend(self, iterable): for element in iterable: IntegerList.chec... e have delivered: * a static, dedicated method for checking argument types. As we have delegated thi... a magic method (mind the underscores) responsible for inserting (overwriting) an element at a given pos
- 2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
- at you see is a collection of some general truths for Python design rules and decision making. Even tho... to think up meaningful names, the effort taken to format your code, or any other reason – reject the te... n to your code after some time, or leave the code for others to develop in the future. Giving **meanin... complexity of a given problem should be an excuse for writing code that does not follow the guidelines.
- 2.1 File processing - XML files @info:cursos:pue:python-pcpp1:m5
- 'll have to read or create a data file in the XML format. Soon, doing that will be a piece of cake. Th... rd Python library offers some interesting modules for working with XML: * **xml.etree.ElementTree** – has a very simple API for analyzing and creating XML data. It's an excellent choice for people who have never worked with the Document Ob
- Ethical Hacker : sesión 4 @info:cursos:pue:ethical-hacker
- WSDL** (Web Services Description Language), es un formato (XML) que se utiliza para describir servicios... * https://portswigger.net/web-security - Academy, formación gratuita, pero requiere cuenta. * https... ider tab. - The URLs tab contains various links for hidden content and functionality associated with ... } - The tool starts scanning the target website for vulnerabilities.{{:info:cursos:pue:ethical-hacker
- 1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
- network sockets. Of course, we'll harness Python for this purpose. Here are our goals: * we want t... /code> The user input may can take two different forms: * it can be **the domain name of the server... IP works and how it is able to act as **a carrier for REST**. We can say that TCP/IP is interesting for us only to the extent that it is able to transport
- 1.1 SQLite @info:cursos:pue:python-pcpp1:m5
- agement system (DBMS) is the software responsible for: * creating a database structure; * inserting... anagement; * ensuring concurrent access to data for many users; * enabling data exchange with other... dition, it's used by companies producing software for cars and airplanes. The database file is cross-pl... 2.0 specification is to define a common standard for creating modules to work with databases in Python
- 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP @info:cursos:pue:python-pcpp1:m1
- pass</code> All the presented classes are empty for now, as we're going to show you how the mutual re... hat: * the **Vehicle** class is the superclass for both the **LandVehicle** and **TrackedVehicle** c... nce scenario, any specified attribute is searched for first in the current class. If it is not found, t... fine the method ''info()'', so Python has to look for it in the class hierarchy; * **class D** is con
- 2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
- l to have some means of establishing requirements for classes in matters of interfaces (methods) expose... abstract class** should be considered a blueprint for other classes, a kind of contract between a __cla... er application, intended to support multiple file formats. Some of the formats are known now, but some are not yet known. The idea is to design an abstract
- 2.4 Decorators @info:cursos:pue:python-pcpp1:m1
- (function): print('We are about to call "{}"'.format(function.__name__)) return function </code> The last lines are responsible for both method invocations: <code python> decorated ... ould be mentioned that decorators are very useful for refactoring or debugging the code. <code python>... (function): print('We are about to call "{}"'.format(function.__name__)) return function @sim
- 5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
- dea was born and implemented in the early 1960s. For Python, code modifications can occure while the c... ut the truth is that this technique could be used for tool preparation; those tools could be applied to... e behavior of certain objects, a metaclass allows for the customization of class instantiation. The fu... tomation must be provided. The typical use cases for metaclasses: * logging; * registering classe