Re: [Twisted-Python] Strange recursion error with twisted.web

2021-03-09 Thread Peter Westlake
On Tue, 9 Mar 2021, at 19:28, Glyph wrote: > > > > On Mar 9, 2021, at 4:54 AM, Peter Westlake wrote: > > > > I'm getting a "maximum recursion depth exceeded" error that appears to be > > coming from flatten(). The odd thing is that it only happens sometimes. > > flatten() can definitely res

Re: [Twisted-Python] Strange recursion error with twisted.web

2021-03-09 Thread Glyph
> On Mar 9, 2021, at 4:54 AM, Peter Westlake wrote: > > I'm getting a "maximum recursion depth exceeded" error that appears to be > coming from flatten(). The odd thing is that it only happens sometimes. The > HTML that's being flattened does have a few Deferreds in it. Those come from > fun

Re: [Twisted-Python] automat question

2021-03-09 Thread Glyph
> On Mar 9, 2021, at 3:18 AM, Chris Withers wrote: > > I'm not sure we're quite on the same page: I'm not looking to inspect the > state, but more be notified when certain edges are traversed. The way you get notified when an edge is traversed is you add an output to that edge :). When I was

[Twisted-Python] Strange recursion error with twisted.web

2021-03-09 Thread Peter Westlake
I'm getting a "maximum recursion depth exceeded" error that appears to be coming from flatten(). The odd thing is that it only happens sometimes. The HTML that's being flattened does have a few Deferreds in it. Those come from function calls, which cache the results, which might explain why I on

Re: [Twisted-Python] automat question

2021-03-09 Thread Chris Withers
I'm not sure we're quite on the same page: I'm not looking to inspect the state, but more be notified when certain edges are traversed. That said: what's the best practice when you want to visualize the current state of a machine? In this case, the machine is for a unit of work in a scheduling