Python Programming


-
Nice Animations with Twisted and PyGame
One of my favorite features within Twisted — but also one of the least known — is LoopingCall.withCount, which can be used in applications where you have some real-time thing happening, which needs to keep happening at a smooth rate regardless of any concurrent activity or pauses in the main loop. Originally designed for playing audio samples from a softphone without introducing a desync delay over time, it can also be used to play animations while keeping track of their appropriate frame.
LoopingCall is all around a fun tool to build little game features with. I’ve built a quick little demo to showcase some discoveries I’ve made over a few years of small hobby projects (none of which are ready for an open-source release) over here: DrawSnek.
-
Functional Programming Primitives in Python
Functional programming (FP) is a programming technique that avoids side effects by performing computation primarily through the evaluation of mathematical functions and the use of immutable data structures.
In some cases, using a functional programming style can reduce the likelihood of bugs in your programs and make them more maintainable. Admittedly, FP is a little difficult to pin down because many modern FP languages (like Haskell) support a vast range of additional features and concepts—like advanced typing systems—that are often assumed to be a part of FP.
-
PyDev of the Week: Ethan Smith
This week we welcome Ethan Smith (@ethanhs) as our PyDev of the Week! Ethan is a core developer of the Mypy project, which is a static type checker for Python.
-
Using Sentry to Handle Python Exceptions in Django Projects
Web applications built in Django can become sprawlingly complex over time, which is one reason why centralized error handling is important. This tutorial will guide you through adding a free, basic Sentry configuration to a new Django project.
-
PSF GSoC students blogs: Weekly Check-in #13
-
PSF GSoC students blogs: GSoC: Week #13
-
PSF GSoC students blogs: Week 12 : All Done!
-
Python Qt5 - Add and remove items between two QTreeWidgets.
Today's tutorial will show you how to add and remove items between two QTreeWidgets.
The source code is very simple to understand: the user interface is created with two QTreeWidgets.
One is completed with elements and when the buttons are pressed, the elements are interchanged.
-

- Login or register to post comments
Printer-friendly version- 1730 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is released
After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release.
|
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future Tech
The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world.
Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago