Cerca
Heus ací els resultats de la cerca.
Noms de pàgina coincidents:
- 1.1 Classes, Instances, Attributes, Methods — introduction
- 1.2 Working with class and instance data – instance variables
- 2.1 Python core syntax
- 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP
- 2.3 Extended function argument syntax
- 2.4 Decorators
- 2.5 Different faces of Python methods
- 2.6 Abstract classes
- 2.7 Encapsulation
- 2.8 Composition vs Inheritance - two ways to the same destination
- 2.9 Inheriting properties from built-in classes
- 3.1 Advanced techniques of creating and serving exceptions
- 4.1 Shallow and deep copy operations
- 4.2 Serialization of Python objects using the pickle module
- 4.3 Making Python objects persistent using the shelve module
- 5.1 Metaprogramming
- 1.1 What is PEP?
- 2.1 PEP 20 – The Zen of Python
- 3.1 PEP 8 – Introduction
- 4.1 PEP 257 – Docstring Conventions
- Python Professional Course Series: GUI Programming
- 1.2 Let TkInter speak!
- 1.3 Settling widgets in the window's interior
- 1.4 Coloring your widgets
- 1.5 A simple GUI application
- 1.6 Events and how to handle them
- 1.7 Visiting widgets’ properties
- 1.8 Interacting with widget methods
- 1.9 Looking at variables
- 2.1 A small lexicon of widgets - Part 1
- 2.2 A small lexicon of widgets - Part 2
- 2.3 A small lexicon of widgets - Part 3
- 2.4 Shaping the main window and conversing with the user
- 2.5 Working with the Canvas
- 1.1 Python Professional Course Series: RESTful APIs
- 1.2 How to use sockets in Python
- 1.3 JSON – our new friend
- 1.4 Talking to JSON in Python
- 1.5 What is XML and why do we prefer to use JSON?
- 1.6 Making life easier with the requests module
- 1.7 Four magic letters: CRUD
- 2.1 Python Professional Course Series: Lab & Assessment
- 1.1 SQLite
- 2.1 File processing - XML files
- 3.1 The CSV module in Python
- 4.1 Logging in Python
- 5.1 The configparser module
Resultats de text complet:
- 1.1 SQLite @info:cursos:pue:python-pcpp1:m5
- ocial applications such as Facebook, Twitter, and Instagram are very popular. Every day many people cr... Do you know how that’s possible? Data is simply information about users, the contents of their posts, and comments. The data are all kinds of information that we can send to the application. Dur... visible to other users. Sent data should be saved in some place that can be easily accessed. This plac
- 4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
- ed with documenting Python code using docstrings. In short, it tries to answer the following two quest... string literal that occurs as the first statement in a module, function, class, or method definition. ... _'' special attribute of that object." (PEP 257) In other words, docstrings are Python **documentation strings** that are used in the class, module, function, and method definitio
- 3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
- = 3.1 PEP 8 – Introduction As mentioned earlier, PEP 8 is a document that provides coding conventions ... ng projects may adopt their own style guidelines (in which case such project-specific guidelines may b... the conventions provided for by PEP 8, especially in the case of any conflicts, or backwards-compatibi... , additional conventions are being identified and included in it, and at the same time some old conven
- 5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
- = 5.1 Metaprogramming == Introduction to metaclasses Metaprogramming is a programming technique in which computer programs have the ability to modif... tion story, but the idea was born and implemented in the early 1960s. For Python, code modifications ... tocol. It may look like syntactic sugar, because in many cases metaprogramming allows programmers to
- 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 inherits properties from any Python built-in class in order to get a new class that can enrich the paren
- 2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
- rote this 19-line poem on the Python mailing list in 1999, and it became entry #20 in the Python Enhancement Proposals in 2004. It’s one of the //Easter eggs// (i.e., hidden, secret messages or features) included in the Python interpreter. Now let’s see t
- 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP @info:cursos:pue:python-pcpp1:m1
- = 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP Inheritance is one of the fundamental concepts of object oriented program... ses (parents) and their subclasses (descendants). Inheritance creates a class hierarchy. Any object bo
- 2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
- tions that allow us to operate on strings, lists, integers, and floats. It’s natural for us to formula... senting operators, or to get a number of elements in a sequence or dictionary. We are able to add two or more strings together, which results in the strings’ concatenation; we are able to add integers and we know what the result should be, all do
- 3.1 Advanced techniques of creating and serving exceptions @info:cursos:pue:python-pcpp1:m1
- ced techniques of creating and serving exceptions In this module, we'll talk about Python exceptions –... am that disrupts the normal flow of the program's instructions. Plan for the module: * short introduction to exceptions; * review of the named attributes of exception objects; * introduction to chained exceptions; * analysis of
- 1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
- xisting/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... store and publish fancy images and funny videos. In fact, a properly trained web server can be a very... ther services designed for storing and processing information. Moreover, the structure of the database
- 1.2 Working with class and instance data – instance variables @info:cursos:pue:python-pcpp1:m1
- = 1.2 Working with class and instance data – instance variables == Instance variables This kind of variable exists when and only when it is explicitl... o an object. This can be done during the object's initialization, performed by the __init__ method, or
- 2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
- ing methods that have performed operations on the instances (objects), and in particular the attributes of the instance, so we’ve called them i**nstance methods**. The instance methods, as the first parameter, take the '
- 2.4 Decorators @info:cursos:pue:python-pcpp1:m1
- thout directly modifying it. Decorators are used in: * the validation of arguments; * the modifi... st functions we could think of. We'll decorate it in a moment. <code python> def simple_hello(): ... > The last lines are responsible for both method invocations: <code python> decorated = simple_decora... he whole code should look like the code presented in the right pane. When you run the code, the resul
- 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 ... (e.g., pythoninstitute.org) using the standard ''input()'' function and **fetches the root document**... his is our road map. Let's follow the route. {{ :info:cursos:pue:python-pcpp1:m4:pasted:20240108-104229.png }} === Importing a socket We are in need - we need a socket. How do we obtain a socke
- 4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
- = 4.1 Logging in Python == Logging in Python The Python Standard Library provides a useful module called ''logging'' to log events occurring in the application. Logs are most often used to find... default, Python and its modules provide many logs informing you of the causes of errors. However, it's