Skip to content

[mypyc] Refactor: remove cyclic deps by extracting genops visitor #8430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 22, 2020

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Feb 22, 2020

Add a simple visitor module that doesn't contain any implementation and just
dispatches to various transform implementations. The main benefit is that
the implementations don't need to depend on the visitor (and thus also don't
need to depend on the other implementations) and that IRBuilder doesn't
need to depend on the implementations.

Also extract the driver function to another module, as this would otherwise
cause an import cycle.

Some cyclic dependencies remain and wouldn't be hard to get rid of. I
wanted to keep this PR relatively simple so I didn't fix them yet.

Work on mypyc/mypyc#714.

@JukkaL JukkaL merged commit d9e209f into master Feb 22, 2020
@JelleZijlstra JelleZijlstra deleted the mypyc-refactor-7 branch February 23, 2020 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy