Programming Leftovers
-
Importing a Python program that doesn't have a .py extension
In Python, there are a bunch of reasons for having your main program be importable. However, this normally requires that your program have a .py extension and you don't always want to do this. You can always make a copy of the program (or use a symlink) to add the extension when you're working on it, but that can be annoying. Due to writing my entry on why programs should skip having extensions if possible, I wound up wondering if it was possible to do this in Python using things exposed in, for example, the standard library's importlib.
-
CircuitPython 8.0.0 Beta 4 Released! @circuitpython
This is CircuitPython 8.0.0-beta.4, a beta release for 8.0.0. It is relatively stable, but there will be further additions and fixes before final release.
-
Elizabeth Mattijsen: Don't fear the grepper! (5)
This blog post contains the fifth instalment of the Don't fear the grepper! series.
-
Perl Weekly Challenge 188: Divisible Pairs and Total Zero
-
Arduino dtostrf() Function -Turn Your Floats into Strings
While programming Arduino boards we have to deal with different programming techniques to manipulate the data accordingly. To deal with data we need multiple functions that help us to write code for our project. One of the widely used functions is dtostrf() which converts double and float values into string with defined precision.
-
Software Isomorphisms
Last week Gabriella Gonzalez wrote What does “isomorphic” mean (in Haskell), which covers isomorphism from a first-principles perspective.