Learned about FalkorDB today — an embedded graph database you can run from Python without Docker. Perfect for local-first applications. #falkordb #graphdb #python
Introduction to GIS Programming: A Practical Python Guide to Open Source Geospatial Tools https://leanpub.com/gispro by Qiusheng Wu is the featured book on the Leanpub homepage! https://leanpub.com #Python
Find it on Leanpub!
Find the sketch-a-day archives and tip jar at: https://abav.lugaralgum.com/sketch-a-day
Code for this sketch at: https://github.com/villares/sketch-a-day/tree/main/2026/sketch_2026_02_15 #Processing #Python #py5 #CreativeCoding

https://theshamblog.com/an-ai-agent-published-a-hit-piece-on-me/
This is a terrifying piece about what #OpenClaw has unleashed with its #agentic “#ai” bots. Scott is a volunteer maintainer for #matplotlib, #python’s go-to plotting library. An agent tied to merge code, and Scott said no. The agent, apparently autonomously, proceeded to attempt to blackmail Scott, and when that didn’t work started posting hallucinations attacking Scott.
His lead in to the article: An AI agent of unknown ownership autonomously wrote and published a personalized hit piece about me after I rejected its code, attempting to damage my reputation and shame me into accepting its changes into a mainstream python library. This represents a first-of-its-kind case study of misaligned AI behavior in the wild, and raises serious concerns about currently deployed AI agents executing blackmail threats.
This nonsense needs to be nipped in the bud.
You can try this in a terminal:
```
python -c "from unittest.mock import MagicMock; open(MagicMock(), 'w'); print(0)"
```
Python Draws Infinite Concentric Boxes
Iterative logic generates art nested loops create structured patterns through systematic repetition Run it yourself
#python #pythontricks #codingtips #programmingtutorial #concentricboxes #gridpatterns #nestedsquares #opticalillusion #viralpython #pythonshorts #terminaltunnel
https://www.youtube.com/watch?v=-Ncfc9SAfyY
But why didn't the tests fail under pytest?
pytest wraps, substitutes or otherwise messes with `sys.stdout` enough that fd 1 being dead doesn't cause prints to fail.
The best part? The method that calls `shutil.copy` is called `_safe_copy`, but it doesn't check whether the values it receives are strings or `Path`s. So it happily passes a `MagicMock` along as the copy destination.
So yeah, test your tests, and if you call something safe make it at least careful.
Tests started failing when run with unittest, had been running fine with pytest for a while.
Tests error out with `OSError: [Errno 9] Bad file descriptor`.
Turns out if you `shutil.copy` something onto a `MagicMock`, you kill `sys.stdout`:
```
from unittest.mock import MagicMock
import shutil
m = MagicMock()
m.__fspath__.__index__() # → 1
shutil.copy(filename, m)
[errors omitted]
print(1) # → OSError: [Errno 9] Bad file descriptor
```
Much head scratching!
A #PythonBrasil2026 está com chamada aberta para propstas de atividades (tutoriais, palestras e sprints)!
https://talks.python.org.br/pybr26/cfp
EN: Python Brazil 2026: Call for Proposals
#Python #PythonBrasil #PyBR #PyBR26
Slightly technical coding question, #Matlab to #Python:
What's the simplest way to read a Matlab table in Python?
Or, if that's not possible, what should I convert my Matlab table to so I can read it in python? 🙏
It's quite a big table with "nested" data i.e. some of the columns contain different-lengths arrays for each row and some contain matrices.
Links I've tried without success:
https://stackoverflow.com/questions/25853840/load-matlab-tables-in-python-using-scipy-io-loadmat (csv doesn't save all the data)
https://pythonguides.com/python-scipy-load-mat-file/ (about reading .mat files but does not seem to work with tables)
Links I haven't tried:
https://www.mathworks.com/help/matlab/matlab_external/use-matlab-tables-and-timetables-in-python.html (I believe this relies on having a working version of Matlab to use Matlab.engine to read the file, which kinds of defeats the purpose)
SymbolicGlitch2
Video: https://youtu.be/dxOP1EuNhVo
Coded #python #hydravideosynth + #Glitch
#creativecoding
#Grids
#asciiart
#ascii
#Worldbuilding
#visualpoetry
#glitchart
#creativecodeart
#livecoding
Show HN: VOOG – Moog-style polyphonic synthesizer in Python with tkinter GUI
https://github.com/gpasquero/voog