Bypassing the GIL for Parallel Processing in Python

In this tutorial, you’ll take a deep dive into parallel processing in Python. You’ll learn about a few traditional and several novel ways of sidestepping the global interpreter lock (GIL) to achieve genuine shared-memory parallelism of your CPU-bound tasks. » Real Python | realpython.com

13 de septiembre de 2023 · 1 min · 44 palabras · Nacho Cano

Inheritance and Internals: Object-Oriented Programming in Python

In this video course, you’ll learn about the various types of inheritance that you can use to write object-oriented code in Python. These include class inheritance, multilevel inheritance, and multiple inheritance, along with special methods and abstract base classes. » Real Python | realpython.com

12 de septiembre de 2023 · 1 min · 44 palabras · Nacho Cano

death and gravity: When to use classes in Python? When you repeat similar sets of functions

Having trouble figuring out when to use classes? In this article, we look at another heuristic for using classes in Python, with examples from real-world code, and some things to keep in mind. » death and gravity | death.andgravity.com

11 de septiembre de 2023 · 1 min · 39 palabras · Nacho Cano

Stack Abuse: The 'u' and 'r' String Prefixes and Raw String Literals in Python

While learning Python or reading someone else’s code, you may have encountered the ‘u’ and ‘r’ prefixes and raw string literals. But what do these terms mean?… » https://twitter.com/ScottWRobinson | stackabuse.com

9 de septiembre de 2023 · 1 min · 31 palabras · Nacho Cano

Django News - Python CVE Program - Sep 1st 2023

DjangoCon US Keynotes, Python CVE Program, Djangonaut Space takes off, and more! » django-news.com | django-news.com

1 de septiembre de 2023 · 1 min · 16 palabras · Nacho Cano

Mike Driscoll: An Intro to Protocol Buffers with Python

Protocol buffers are a data serialization format that is language agnostic. They are analogous to Python’s own pickle format, but one of the advantages of protocol buffers is that they can be used by multiple programming languages. For example, Protocol buffers are supported in… » Mike | blog.pythonlibrary.org

30 de agosto de 2023 · 1 min · 48 palabras · Nacho Cano

Stack Abuse: Python Naming Conventions for Variables, Functions, and Classes

Python, like any other programming language, has its own set of rules and conventions when it comes to naming variables and functions. These conventions aren’t… » https://twitter.com/ScottWRobinson | stackabuse.com

30 de agosto de 2023 · 1 min · 29 palabras · Nacho Cano

The Python Code Example Handbook

Very few programming languages are as universally loved as Python. The brainchild of Dutch programmer Guido van Rossum, Python is easy to learn, powerful, and an utter joy to work with. Thanks to its popularity, video and written resources about Pyth… » freeCodeCamp.org | freecodecamp.org

23 de agosto de 2023 · 1 min · 45 palabras · Nacho Cano

PyBites: When to refactor your code?

PyBites: When to refactor your code? » pybit.es | pybit.es

12 de agosto de 2023 · 1 min · 10 palabras · Nacho Cano

DTO in Python: An Explanation

The primary goal of a DTO is to simplify communication between different layers of an application, particularly when transmitting data… » hackernoon.com | hackernoon.com

10 de agosto de 2023 · 1 min · 24 palabras · Nacho Cano