News for hackers. Stuff that matters.
Re:Finite State Machines by dkarp on Monday February 22, 2021 @10:18AM (#26225479)
I've used https://github.com/pytransitions/transitions in production python systems.

It worked great but the system was fairly simple and wasn't changed often. In my opinion, it's nicer when the state machine can be defined as configuration (in XML or whatever) and then generate the code. Unfortunately that's not possible with vanilla pytransitions, but I suppose you could build a layer on top of it.

Re:Finite State Machines by pknerd on Monday February 22, 2021 @01:19PM (#26228093)
Re:Finite State Machines by dkarp on Tuesday February 23, 2021 @04:32AM (#26235401)
I did not! I used it last a couple years ago, so maybe that's new. Thanks for sharing!
Re:Finite State Machines by pknerd on Monday February 22, 2021 @01:18PM (#26228082)
Interesting!

> Unfortunately that's not possible with vanilla pytransitions

Can you elaborate?