Language Selection

English French German Italian Portuguese Spanish

Python Programming

Filed under
Development
  • Montréal-Python 76: Tonic Glacier

    At Montreal Python, we encourage you to stay at home - but not to stop writing Python ! This is why we are launching Montreal Python 76 - Tonic Glacier, a spectacularly virtual combo of a conference and, following a few days later, a hackathon to overcome COVID-19 with our keyboards.

  • The Singleton Design Pattern in Python

    In this article, we'll be diving into the Singleton Design Pattern, implemented in Python.

    As time progresses, software gets more tailored to solving specific problems in different domains. While there are many difference in the application-level of our software, some aspects of software design remain largely the same. These aspects might not remain the same for all software out there but will hold true for a lot of scenarios. Therefore, learning and understanding them will be highly beneficial in helping us build resilient programs.

    This is the first in a series about Design Patterns in Python and the different patterns that we can utilize to build software.

  • Python Docstrings

    In Python, a function is a group of related statements that performs a specific task.

    Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable.

    Furthermore, it avoids repetition and makes the code reusable.

  • Multiple inheritance and mixin classes in Python

    I recently revisited three old posts on Django class-based views that I wrote for this blog, updating them to Django 3.0 (you can find them here) and noticed once again that the code base uses mixin classes to increase code reuse. I also realised that mixins are not very popular in Python, so I decided to explore them, brushing up my knowledge of the OOP theory in the meanwhile.

    To fully appreciate the content of the post, be sure you grasp two pillars of the OOP approach: delegation, in particular how it is implemented through inheritance, and polymorphism. This post about delegation and this post about polymorphism contain all you need to understand how Python implements those concepts.

  • PyCoder’s Weekly: Issue #415 (April 7, 2020)
  • Wing Tips: Debug Python Services Running on AWS with Wing Pro

More in Tux Machines

Easy Security Tools for Ubuntu 20.04 Users

This article brings Focal users easy and secure apps for their computers especially for accessing the internet and storing passwords (and a tool for Android phones). They enable you security and help you live easier with both devices especially if you are a newcomer. They are Tor Browser to protect surfing anonymity regardless country you live in, Dnscrypt to encrypt your internet access, Enigmail to encrypt your emails so only true recipients can read, KeePassXC to store your account credentials so you will not forget any, GSconnect to pair your laptop and phone, and F-Droid on Android. And, you do not need antivirus on Ubuntu. Together they empower Ubuntu users with security. You will see here short instructions to install and use them and several advice you can practice easily. Read more

Top Arch-based User Friendly Linux Distributions That are Easier to Install and Use Than Arch Linux Itself

Want to experience Arch Linux without the hassle of the complicated installation and set up? Here are a few user-friendly Arch-based Linux distributions. Read more

Games and Graphics: Vulkan SDK 1.2.141 Released, Steam Play Proton 5.0-8 and itch.io

  • Vulkan SDK 1.2.141 is out with GFXReconstruct to improve Vulkan dev

    LunarG has released an updated version of their Vulkan SDK with version 1.2.141 out and it includes some new toys to help developers support Vulkan in their games and apps. This SDK should give developers almost everything they need to get started in the Vulkan API development environment. With 1.2.141 it includes the new GFXReconstruct tool, which aims to improve upon their earlier vktrace. GFXReconstruct enables developers to capture and replay Vulkan API calls and they're also using the new tool to explore other potential performance and feature enhancements, such as compression for capture files (currently available) and support for multi-threaded replay (to be added in the future).

  • Vulkan SDK 1.2.141 Released With GFXReconstruct, DirectX Shader Compiler Bundled

    LunarG in cooperation with The Khronos Group has released Vulkan SDK 1.2.141. Vulkan SDK 1.2.141 adds support for a number of newer Vulkan extensions introduced in recent versions of the specification as well as better validation coverage and bug fixes.

  • Steam Play Proton 5.0-8 has released

    After a public testing period of only a few days, Valve has already pushed out Steam Play Proton 5.0-8 pulling in plenty of upgrades and fixes for the compatibility layer. The first Release Candidate was put out on June 3 and after what seems like only a few tweaks, like removing the wine-mono upgrade that caused issues, it should now be available to everyone. You should see an update to Proton 5.0 in your Steam client.

  • Proton 5.0-8 Shipping With The Latest DXVK/VKD3D, Windows Game Fixes

    Following the recent release candidate, the Valve and CodeWeavers developers have officially promoted this latest Wine-based downstream for empowering Steam Play to their latest stable release. In time for the weekend gamers there is Proton 5.0-8 to offer the best experience to date for running Windows games on Linux either standalone or most commonly via Steam Play.

  • itch.io has a huge bundle going to support 'Racial Justice and Equality'

    Game store itch.io has setup a big mixed bundle of all sorts to support 'Racial Justice and Equality' and there's a lot of interesting stuff in it. This might be the biggest bundle ever, with over 700 items included and a minimum donation amount of only $5. It's a ridiculously good deal and for a charitable cause, with all proceeds being split 50/50 between NAACP Legal Defense and Educational Fund and Community Bail Fund.

  • What are you clicking on this weekend? Come tell us

    It's the weekend and hopefully some of you will find the time to relax and play some games. There's been a lot of new releases lately too! For me, I'm a little torn.

today's howtos