The Python Corner
  • About Us
    About us Privacy Policy
  • Our Friends
    EmacsWorld Dave's Newsletter
  • Newsletter
  • Gift Shop
  • Search
Navigation bar avatar
✕
    • How to consume REST APIs in Python

      By Davide Mastromatteo

      Posted on January 27, 2025

      REST APIs have become a standard for web application communication. In this article, we will explore how to consume REST APIs using Python. [Read More]
      Tags:
      • API
      • RestAPI
      • Python
    • Using Environment Variables in Python

      By Davide Mastromatteo

      Posted on January 12, 2025

      A great place were to store sensitive information that have to been used by your application are environment variables. If you are interested in learning how to use them in Python, just have a look at this article. [Read More]
      Tags:
      • Environment Variables
      • dotenv
      • Python
    • Exploring Python Programming For Young Learners: An Interactive Approach

      By Davide Mastromatteo

      Posted on January 21, 2024

      In an age dominated by technology, empowering the younger generation with essential skills has never been more important. As the digital landscape evolves, proficiency in programming languages becomes a valuable asset. Among the plethora of coding languages, Python stands out as an ideal gateway for children to enter the world of coding due to its simplicity, versatility, and an engaging learning curve. [Read More]
      Tags:
      • python
      • kids
      • learning
    • Working with variables in Python

      By Davide Mastromatteo

      Posted on October 7, 2023

      Have you ever wondered how variables works in Python? Well, this article will help you find it out. [Read More]
      Tags:
      • python
      • variables
      • c
    • Measuring Python code performance with the timeit module

      By Davide Mastromatteo

      Posted on June 25, 2022

      Good code is also code that performs well, here's how you can measure your code's performance in Python [Read More]
      Tags:
      • performance
      • Sunday_Tips
      • python
      • timeit
    • Python cached integers

      By Davide Mastromatteo

      Posted on June 18, 2022

      Did you know that Python compiler optimize your program caching small integers? [Read More]
      Tags:
      • Internals
      • Sunday_Tips
      • python
      • Interpreter
      • Compiler
    • Managing Python versions with pyenv

      By Davide Mastromatteo

      Posted on May 7, 2022

      Are you sure that you are installing Python right? [Read More]
      Tags:
      • pyenv
      • version
      • python
    • How to create a computer virus in Python

      By Davide Mastromatteo

      Posted on August 30, 2021

      Is it possible to create a self-replicating virus in Python? In this article, we'll find out... [Read More]
      Tags:
      • virus
      • python
    • How to create a telegram bot with Python in minutes

      By Davide Mastromatteo

      Posted on January 16, 2021

      Creating a Telegram bot in Python couldn't be easier. Don't you believe me? Have a look at this article and let's write our first bot in minutes! [Read More]
      Tags:
      • telegram bot
      • bot
      • python
    • Working with decorators in Python - The Basics

      By Davide Mastromatteo

      Posted on December 30, 2020

      Decorators are a powerful feature that Python offers out of the box to write better and reusable code. Do you know them? [Read More]
      Tags:
      • decorators
      • functions
      • python
    • Formatting strings in Python: the easyway by using f-strings

      By Davide Mastromatteo

      Posted on December 2, 2020

      Formatting a string is an easy operation in Python that almost any developer can do. But are you sure you're doing it right? [Read More]
      Tags:
      • strings
      • concatenating strings
      • formattin strings
      • f-string
      • python
    • Python Hash Tables: Understanding Dictionaries

      By Davide Mastromatteo

      Posted on August 21, 2020

      Dictionaries are a really important part of Python but how can they be so fast and reliable? The answer is about Hash Tables... [Read More]
      Tags:
      • hash tables
      • dictionaries
      • python
    • Manning Publications

      By Davide Mastromatteo

      Posted on May 6, 2020

      In this article we proudly present our friends of Manning Pubblication and ... we have a special gift for you! [Read More]
      Tags:
      • books
      • python
      • manning
    • Working with EBCDIC in Python

      By Davide Mastromatteo

      Posted on April 29, 2020

      In this tutorial, you will learn how to work with EBCDIC code in Python [Read More]
      Tags:
      • EBCDIC
      • python
      • encoding
      • IBM
      • Mainframe
    • Representing geographic data in Python - feat. Coronavirus

      By Davide Mastromatteo

      Posted on March 1, 2020

      In this tutorial, you will learn how to represent geographic data in Python using Jupiter Notebook and folium [Read More]
      Tags:
      • geographic
      • maps
      • jupiter notebook
      • folium
      • kaggle
      • coronavirus
      • python
    • Serialization in Python with JSON

      By Davide Mastromatteo

      Posted on February 19, 2020

      Did you know that Python is one of the best programming languages to be used if you want to work with JSON? [Read More]
      Tags:
      • json
      • serialization
      • python
    • Creating command-line interfaces in Python with Argparse

      By Davide Mastromatteo

      Posted on February 11, 2020

      [Read More]
    • The Detailed Guide on Sending Emails from your Python App

      By Andrew Zapisotskyi

      Posted on October 21, 2019

      A special article from Andrew Zapisotskyi of [mailtrap](https://mailtrap.io) about sending emails from your Python App [Read More]
      Tags:
      • Featured
      • mail
      • Programming
      • Python
    • How to create a watchdog in Python to look for filesystem changes

      By Davide Mastromatteo

      Posted on January 13, 2019

      In this article, we'll discuss how to implement a watchdog in Python that monitors a file system to automatically take actions when a change occurs. [Read More]
      Tags:
      • check
      • Filesystem
      • Python
      • watchdog
    • How to create a Windows Service in Python

      By Davide Mastromatteo

      Posted on August 1, 2018

      Can we create a Python Windows service that starts at boot and can be controlled like any other standard Windows service? Yes, we can. [Read More]
      Tags:
      • Background
      • Background Task
      • Python
      • Services
      • Windows
    • Speed up your code by using a cache in Python

      By Davide Mastromatteo

      Posted on April 26, 2018

      Did you know you can make your application lot faster just with a couple lines of code and a local cache? [Read More]
      Tags:
      • Cache
      • Featured
      • Performance
      • Python
    • When To Use Generators in Python

      By Davide Mastromatteo

      Posted on April 17, 2018

      Let's talk about when to use generators in Python [Read More]
      Tags:
      • Featured
      • Generators
      • Python
    • Lambdas and functions in Python

      By Davide Mastromatteo

      Posted on December 13, 2017

      How lambdas can improve your code's readability and maintainability [Read More]
      Tags:
      • Featured
      • First Class Objects
      • Lambda
      • Python
    • The art of avoiding nested code

      By Davide Mastromatteo

      Posted on December 4, 2017

      The fifth statement of Tim Peter's "Zen of Python" is: "Flat is better than nested". So, let's explore some tips to make our code flatter and avoid nested code in Python! :) [Read More]
      Tags:
      • Featured
      • Functools
      • List Comprehension
      • Maps
      • Python
    • Logging in Python

      By Davide Mastromatteo

      Posted on August 29, 2017

      Do you always write log routines to make your program be verbose in the production environment? No? Well, you'd better have a look at this article. [Read More]
      Tags:
      • Featured
      • Logging
      • Python
    • Writing a FUSE filesystem in Python

      By Davide Mastromatteo

      Posted on February 27, 2017

      In this article, we will see how to create a FUSE filesystem in Python. Don't worry, it's easier than you thought, [Read More]
      Tags:
      • Featured
      • Filesystem
      • Fuse
      • Linux
      • Python
    • Working with Exception in Python

      By Davide Mastromatteo

      Posted on January 10, 2017

      To know how exception works in Python is really important. Exceptions are not just used to control the program's errors but also to manage the program's flow and in this post, we will discuss this specific topic [Read More]
      Tags:
      • Error Handling
      • Exception
      • Featured
      • Programming
      • Python
    • Python Metaclasses

      By Davide Mastromatteo

      Posted on December 22, 2016

      "Metaclasses are deeper magic than 99% of users should ever worry about. If you wonder whether you need them, you don't". That's what Tim Peters once said. But aren't you curious to know something about them? :) [Read More]
      Tags:
      • Abstract Base Classes
      • Featured
      • Metaclasses
      • Programming
      • Python
    • Syntax sugar in Python 3.6

      By Davide Mastromatteo

      Posted on December 12, 2016

      Let's have a quick look at the news about Python 3.6! [Read More]
      Tags:
      • syntax
      • synctactic sugar
      • python 3.6
      • python
    • Object Serialization in Python With the Pickle Module

      By Davide Mastromatteo

      Posted on December 5, 2016

      In this post, we will learn to serialize objects for storing the state of an object and cloning objects. Cool stuff, right? [Read More]
      Tags:
      • serialization
      • pickle
      • python
    • Using Virtual Environments in Python

      By Davide Mastromatteo

      Posted on November 28, 2016

      virtualenv, virtualenv-wrapper, pyvenv, python3 -m venv... What are they? Here you will find everything you need to know about virtual environments in Python! [Read More]
      Tags:
      • Virtual Environments
      • virtualenv
      • environments
      • python
    • Iterators and Generators in Python

      By Davide Mastromatteo

      Posted on November 21, 2016

      Let's start using iterators and generators in Python [Read More]
      Tags:
      • iterators
      • generators
      • iterable
      • python
    • Web Automation in Python

      By Davide Mastromatteo

      Posted on November 14, 2016

      Automation and web test. The Pythonic way. [Read More]
      Tags:
      • web
      • splinter
      • selenium
      • webtest
      • automation
      • python
    • How To Open a File in Python Without Locking It

      By Davide Mastromatteo

      Posted on October 26, 2016

      Opening a file on Windows with Python without locking it could be tricky. I've lost a couple of hours on trying to understand how do it. If you want to save this time, keep reading! [Read More]
      Tags:
      • file
      • lock
      • python
    • RSS
    • Email me
    • GitHub
    • Patreon
    • Mastodon

    Davide Mastromatteo  •  2025  •  thepythoncorner.com

    Powered by Beautiful Jekyll