You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from transitions import Machine
customMachine = Machine()
There are serial circular reference in the new object customMachine, for example customMachine.models is referenced by customMachine while customMachine is also referenced by customMachine.models‘scustomMachine.models[0]. Some functions.partial object in customMachine is similar too.
The object customMachine will not be recycle as soon as all its references, which is held by application, are released. Side effect can be control with cpython's gc work properly, but extreme case might exist though...
Why not support an API that can break up those circular reference of a Machine object? Or if I'm rude, from the view of developer, Is there appropriate way to help application to break up circular reference in some case correctly?
The text was updated successfully, but these errors were encountered:
An example start from here :
There are serial circular reference in the new object
customMachine
, for examplecustomMachine.models
is referenced bycustomMachine
whilecustomMachine
is also referenced bycustomMachine.models
‘scustomMachine.models[0]
. Somefunctions.partial
object incustomMachine
is similar too.The object
customMachine
will not be recycle as soon as all its references, which is held by application, are released. Side effect can be control with cpython's gc work properly, but extreme case might exist though...Why not support an API that can break up those circular reference of a Machine object? Or if I'm rude, from the view of developer, Is there appropriate way to help application to break up circular reference in some case correctly?
The text was updated successfully, but these errors were encountered: