Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
- to gather all new facts and tools and glue all these pieces into one functional block. You already kno... mounted on top of the TCP stack and how the HTTP server is able to do much more for us than just stor... nd funny videos. In fact, a properly trained web server can be a very **effective and convenient gateway** to very complicated and heavy databases or other services designed for storing and proce
- 1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
- = 1.2 How to use sockets in Python == How to fetch a document from a server using Python We are going to write our first program making use of network sockets. Of course, we'll harness Python for this purpose. Here are our goals: * we wa
- 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... ay many people create new accounts, and existing users add or share different content. You’ve surely noticed that the data sent to those applications are still available after a few days, or even years. Do you know how that’s p
- 2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
- = 2.6 Abstract classes Python is considered to be a very flexible programming language, but that doesn’t mean that there are no controls 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 have some means of establishing requirement
- 3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
- may adopt their own style guidelines (in which case such project-specific guidelines may be favored o... ntions provided for by PEP 8, especially in the case of any conflicts, or backwards-compatibility issu... This is a quote from Ralph Waldo Emerson’s essay “Self-Reliance” where Emerson urges readers to be consistent in their beliefs and practices. In our case, it means we must not forget about one simple but
- 2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
- ormulate expressions using algebraic symbols representing operators, or to get a number of elements in a sequence or dictionary. We are able to add two or m... rator, but on respective data types. Now, we'll use the same function ''len()'' to get a number of el... operators when applied to our objects, so we can use core operators on our objects. Let's imagine the
- 1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
- rney – we know enough to communicate with the web service using JSON as an information carrier. Unfort... knowledge needs to be supplemented – we need a **server serving** a web **service** (sorry for all these serv..., we weren't able to avoid them) and we also nee
- 4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
- outlines the **conventions**, best practices, and semantics (not laws or regulations!) associated with... ngs contain? - How should Python docstrings be used? == What are docstrings? A docstring is "a stri... gs are Python **documentation strings** that are used in the class, module, function, and method defin... ncluding you) to remember and understand the purpose, operation, and capabilities of particular code b
- 5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
- = 5.1 Metaprogramming == Introduction to metaclasses Metaprogramming is a programming technique in whi... protocol. It may look like syntactic sugar, because in many cases metaprogramming allows programmers to minimize the number of lines of code to express a... . But the truth is that this technique could be used for tool preparation; those tools could be appli
- 2.8 Composition vs Inheritance - two ways to the same destination @info:cursos:pue:python-pcpp1:m1
- ing the inheritance concept when modeling our classes to represent real-life issues. Inheritance is a great concept, one of the most important foundations... ming that models a tight relation between two classes: the base class and the derived class, called a subclass. The result of this relation is a subclass
- 1.1 Classes, Instances, Attributes, Methods — introduction @info:cursos:pue:python-pcpp1:m1
- = 1.1 Classes, Instances, Attributes, Methods — introduction == Introduction to Object-Oriented Programming This module addresses the advanced Object Oriented Programming (OOP) i... programming. This very important approach is present in most computer applications because it allows programmers to model entities representing real-lif
- 5.1 The configparser module @info:cursos:pue:python-pcpp1:m5
- = 5.1 The configparser module == Introduction to the configparser module Currently, many popular services provide an API that we can use in our applications. Integration with these services requires au
- 2.9 Inheriting properties from built-in classes @info:cursos:pue:python-pcpp1:m1
- = 2.9 Inheriting properties from built-in classes Python gives you the ability to create a class that ... arent or even parents and you can still access those attributes and methods. Later, you can override ... hods by delivering your own modifications for the selected methods. In the following example, we’ll c... an object? Imagine that you need to collect the serial numbers of sold tickets. Sound reasonable eno
- 2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
- f bundling attributes and methods that work on those attributes within a class. Encapsulation is used to hide the **attributes** inside a class like in a... to access** the values, and other objects call those methods to retrieve and modify the values within ... t of privacy for the attributes. This picture presents the idea: direct access to the object attribut
- 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP @info:cursos:pue:python-pcpp1:m1
- oncepts of object oriented programming, and expresses the fundamental relationships between classes: superclasses (parents) and their subclasses (descendants). Inheritance creates a class hierarchy. Any object boun