python tango server for Lima
Toggle navigation Eli Bendersky's website Listing all serial ports on Windows with Python July 31, 2009 at 07:41 Tags Python , Serial port There are several methods for getting a list of all serial (COM) ports on a Windows machine. Here I want to focus on one that seems to work very well on the computers I tried, and incidentally it's also the simplest to implement. Digging into the registry The list of serial ports on the machine appears under the HARDWARE\\DEVICEMAP\\SERIALCOMM key in the Windows registry
Discussion on "The Transactional Outbox Pattern in Python: Solving the Dual-Write Problem". There's a particular kind of bug I've learned to be afraid of. It doesn't throw an exception. It doesn't show up in your tests. It passes code review, ships on a Friday, and works perfectly for three
Lex Spoon I'm Lex Spoon, a software enthusiast living in Atlanta, GA. I write on Substack and on my home page in addition to here. Sunday, July 8, 2012 Evan Farrer Converts Code from Python to Haskell Evan Farrer has an interesting post up where he converts some code from Python to Haskell. Kudos to Farrer for empirically studying a language design question. Here is his summary: The results of this experiment indicate that unit testing is not an adequate replacement for static typing for defect detection. W
…or: The Most Hideous Hack I’ve (Almost) Done In callee, the argument matcher library for Python that I released recently, there is this lovely TODO note for a seemingly simple feature. When using the Matching construct with a simple lambda predicate: mock_foo.assert_called_with(Matching(lambda x: x % 2 == 0)) it would be great to see its code in the error message if the assertion fails. Right now it’s just going to say something like <Matching <function <lambda> at 0x7f5d8a06eb18>>. Provided you don
Learn how finite state machines work by building one from scratch in Python. Guards, hooks, history tracking, and when to reach for a library instead
Random832 random832 at fastmail.com Sat Sep 3 18:10:06 EDT 2016 On Sat, Sep 3, 2016, at 08:08, Martin Panter wrote: > On 1 September 2016 at 19:36, Ethan Furman < ethan at stoneleaf.us > wrote: > > Deprecation of current "zero-initialised sequence" behaviour without removal > > ---------------------------------------------------------------------------- > > > > Currently, the ``bytes`` and ``bytearray`` constructors accept an integer > > argument and interpret it as meaning to create a zero-initialised se
The Orekit python wrapper allows using Orekit from a python environment. It was developed by SSC and provided to the Orekit project
This is a great, hacky trick to get the standard output ( and others like standard error and standard input) in Python You can "redirect" the standard error changing the sys.stdout module with your own StringIO object. So, you can do something like Easy and very useful! EDITED: Updated to make it work for
## Archive for the ‘Python’ Category Newer Entries » ### Plugins’ Headache Sunday, June 10th, 2007 As I was writing a plugin, or to be more accurate, an extension module for Python in C/Win32; I had mysterious crashings here and there. Using a JIT I saw that the crash is in malloc/free so I looked at the stack and saw where’s the problem at (function scope). So far so good, piece of cake. Isolating the problematic code, yet I still didn’t fully understand why it happens, I ran it on a new clean