SarkariResultess QA Bank

Circular import को कैसे reduce करें? — error आने पर developer क्या करे?

Other 0 Views Verified
Circular import को कैसे reduce करें? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified Correct Answer

Shared code को third module में move करें या import dependency direction सुधारें

Shared code को third module में move करें या import dependency direction सुधारें
Additional Explanation
Circular dependency architecture से आती है। पहले traceback की exact line और input value check करें।
Verified

हर file में same import जोड़ें

हर file में same import जोड़ें
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

sys.path random बदलें

sys.path random बदलें
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

import * everywhere

import * everywhere
Additional Explanation
यह विकल्प सही समाधान नहीं है।