Mike Driscoll: Automating Excel with Python Paperback Now Available!
My 10th Python book, Automating Excel with Python is now available on Amazon in Paperback or Kindle versions.In this book, you will learn how to use Python to do the following:Create Excel...
View ArticleDjango Weblog: Django security releases issued: 4.0.1, 3.2.11, and 2.2.26
In accordance with our security release policy, the Django team is issuing Django 4.0.1, Django 3.2.11, and Django 2.2.26. These release addresses the security issues detailed below. We encourage all...
View ArticleStack Abuse: Object Detection with OpenCV-Python Using a Haar-Cascade Classifier
IntroductionPython has many applications in the field of Computer Vision, typically though Deep Learning. From performing OCR on documents to allowing robots to "see" - Computer Vision is an exciting...
View ArticlePython⇒Speed: CentOS 8 is dead: choosing a replacement Docker image
For many years, CentOS provided a free, binary-compatible version of RedHat Enterprise Linux (RHEL). But as of January 2022, CentOS 8 has reached its end-of-life, even as RHEL 8 will still be supported...
View ArticlePython for Beginners: Find Factorial Of A Number In Python
In mathematics, we can perform different operations on any given number. One such operation is finding the factorial of a number. In this article, we will discuss what a factorial is and how we can...
View ArticleReal Python: Deploy Your Python Script on the Web With Flask
You wrote a Python script that you’re proud of, and now you want to show it off to the world. But how? Most people won’t know what to do with your .py file. Converting your script into a Python web...
View ArticlePython Morsels: dataclasses
Let's talk about dataclasses in Python.A minimal boilerplate classThis Point class represents a 2-dimensional point:classPoint:"""A two-dimensional...
View ArticleItsMyCode: Python TypeError: ‘int’ object is not subscriptable
ItsMyCode |In Python, we use Integers to store the whole numbers, and it is not a subscriptable object. If you treat an integer like a subscriptable object, the Python interpreter will raise TypeError:...
View ArticlePyCoder’s Weekly: Issue #506 (Jan. 4, 2022)
#506 – JANUARY 4, 2022View in Browser »Gem: Exploding String Alternatives Here’s a Python gem: a small bit of Python that uses the power of the language and standard library well. It’s a function to...
View ArticleWill Kahn-Greene: Kent v0.1.0 released! And the story of Kent in the first...
What is it?Before explaining what it is, I want to talk about Why.A couple of years ago, we migrated from the Raven Sentry client (Python) to sentry-sdk. One of the things we did was implement our own...
View ArticleInspired Python: Game Boy Emulator: Designing the CPU
Game Boy Emulator: Designing the CPUIn we learned how to write an instruction decoder and disassembler. It’s an important first step towards writing a Game Boy emulator. Assembly language – or the...
View ArticleTestDriven.io: Pagination in Django
This tutorial looks at how to add pagination to a Django project.
View ArticlePython Bytes: #265 Get asizeof pympler and muppy
<p><strong>Watch the live stream:</strong></p> <a href='https://www.youtube.com/watch?v=qjQwrS0xLqI' style='font-weight: bold;'>Watch on YouTube</a><br>...
View ArticleKushal Das: Releasing Tumpa for Mac
I am happy to announce the release of Tumpa (The Usability Minded PGP Application) for Mac. This release contains the old UI (and the UI bugs), but creates RSA4096 keys by default. Right now Tumpa will...
View ArticleReal Python: Build a Django Front End With Bulma – Part 2
In this four-part tutorial series, you’re building a social network with Django that you can showcase in your portfolio. This project will strengthen your understanding of relationships between Django...
View ArticlePython for Beginners: Check For Ugly Number In Python
You might have heard about natural numbers, prime numbers, even numbers, and odd numbers. But, have you ever wondered what an ugly number is? In this article, we will discuss what an ugly number is. We...
View ArticleAndre Roberge: Python 101: enabling a restricted subset of Python
I decided to submit to the the Ideas category of Discuss-Python a proposal which I have summarized as follows:Summary: I propose that a new compile time directive be available to restrict the Python...
View ArticlePython Software Foundation: Announcing Python Software Foundation Fellow...
The PSF is pleased to announce its fourth batch of PSF Fellows for 2021! Let us welcome the new PSF Fellows for Q4! The following people continue to do amazing things for the Python community:Ana Dulce...
View ArticleArmin Ronacher: Extension Maps in Rust
Sometimes in Rust you want to design APIs that provide a little bit of flexibility for the user. A common approach for this is to introduce a generic type parameter that can be filled in. Let's for...
View ArticlePython GUIs: Drag & drop widgets with PyQt — Sort widgets visually with...
This week I had an interesting question from a reader of my PyQt6 book, about how to handle dragging and dropping of widgets in a container showing the dragged widget as it is moved.I'm interested in...
View Article