Skip to content

Add Pycycle Command-Line-Tool#824

Closed
bndr wants to merge 1 commit intovinta:masterfrom
bndr:patch-1
Closed

Add Pycycle Command-Line-Tool#824
bndr wants to merge 1 commit intovinta:masterfrom
bndr:patch-1

Conversation

@bndr
Copy link
Copy Markdown

@bndr bndr commented Jan 30, 2017

What is this Python project?

Code with circular imports in python often raises an obscure Exception (ImportError: Cannot import name X) which tells nothing about the cycle.

I have come across this problem several times, and depending on the project size it becomes problematic to identify where the problem is. This tool shows you the chain of the imports that are causing the problem, after that is up to developer to fix it e.g. move the imports to the bottom, or move the imports inside some function.

What's the difference between this Python project and similar ones?

There are none.

--

Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.

Code with circular imports in python often raises an obscure Exception (ImportError: Cannot import name X) which tells nothing about the cycle.

I have come across this problem several times, and depending on the project size it becomes problematic to identify where the problem is. This tool shows you the chain of the imports that are causing the problem, after that is up to developer to fix it e.g. move the imports to the bottom, or move the imports inside some function.
@vinta vinta force-pushed the master branch 2 times, most recently from 23abd09 to 40cd98b Compare June 6, 2019 19:55
@stale
Copy link
Copy Markdown

stale Bot commented Oct 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale label Oct 30, 2019
@stale stale Bot closed this Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant