Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Circular import error

class A:
    def __init__(self, ref):
        from b import B
        assert isinstance(ref, B)
        self.ref = ref
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Circular #import #error
ADD COMMENT
Topic
Name
3+4 =