Re: [openstack-dev] [automaton] How to extend automaton?

2018-02-15 Thread Kwan, Louie
...@fastmail.com] Sent: Wednesday, February 14, 2018 1:05 AM To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] [automaton] How to extend automaton? As far a 1, I'd recommend just use functools.partial or make an object with all the extra stuff u want and have

Re: [openstack-dev] [automaton] How to extend automaton?

2018-02-13 Thread Joshua Harlow
As far a 1, I'd recommend just use functools.partial or make an object with all the extra stuff u want and have that object provide a __call__ method. As far as 2, you might have to subclass the FSM baseclass and add those into the internal data-structure (same for 3 I think); ie this one @ h