Skip to content

Commit ac45dab

Browse files
Example of cyclic import where the cyclic import does not crash python
1 parent 84be32f commit ac45dab

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • doc/data/messages/c/cyclic-import/bad
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from .bad2 import count_to_two # [cyclic-import]
2-
3-
41
def count_to_one():
52
return 1
63

74

85
def count_to_three():
6+
from .bad2 import count_to_two # [cyclic-import]
7+
98
return count_to_two() + 1

0 commit comments

Comments
 (0)