# Document breadboard builds by writing Python code ### Document breadboard builds by writing Python code In my last post I mentioned that I was using breadboarder - a Python program that eases the pain of documenting breadboard-based projects. You write a descriptiopn of your project using a Python-based DSL - a domain-specific language. It lets you explain what wire or component to add to the breadboard, and where to connect it. You write code like this: And it generates markdown and png files which
Python, serialport, serial
Python, serialport, serial
## Wednesday, October 2, 2019 ### Python re.finditer() from an iterable of strings Earlier today, I told a work colleague that re.finditer() in Python is usually the preferred way to tokenize input , rather than hand-rolling a lexer from an iterable of characters. He said that it requires reading the whole file in memory. On the spot, I sheepishly said that you can probably read it line by line and call re.finditer() repeatedly if the token regexp does not cross line boundary. That is true, but not a gre
Exploring the use of __slots__ in Python
Mark functions as async. Call them with await. All of a sudden, your program becomes asynchronous – it can do useful things while it waits for...
tech-kern archive [ Date Prev ][ Date Next ][ Thread Prev ][Thread Next][ Date Index ][ Thread Index ][ Old Index ] # Re: python vs. semaphores - To: tech-kern%NetBSD.org@localhost - Subject: Re: python vs. semaphores - From: Thomas Klausner < wiz%NetBSD.org@localhost > - Date: Tue, 14 Dec 2021 16:42:39 +0100 On Tue, Dec 14, 2021 at 02:08:39PM +0100, Thomas Klausner wrote: > Is anyone aware of problems with semaphores on NetBSD, or has looked > at this particular problem before? Ok, my first test already
# The History of Python A series of articles on the history of the Python programming language and its community. ## Sunday, November 10, 2013 ### The story of None, True and False (and an explanation of literals, keywords and builtins thrown in) I received an interesting question in the mail recently: > What is the difference between keywords and literals? Why are True and False keywords rather than literals in python3? > I was horrified recently to find that assigning to True/False works in > python
Charles-François Natali cf.natali at gmail.com Sun Nov 17 10:25:11 CET 2013 There's something which really bothers me (well, that has been bothering me since the beginning): """ Memory Deallocation within Parallel Contexts •These parallel contexts aren’t intended to be long-running bits of code/algorithm •Let’s not free() anything… •….and just blow away the entire heap via HeapFree() with one call, once the context has finished •Cons: oYou technically couldn’t do this: def work(): for x in xrange(0, 10000