Skip to content

[mypyc] Remangle names produced by allow-redefinition #11175

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 2 commits into from
Sep 22, 2021

Conversation

jhance
Copy link
Collaborator

@jhance jhance commented Sep 22, 2021

Description

Fixes mypyc/mypyc#702 by replacing "'" with "redef",
although this assumes nothing else will ever use demangling
for now.

Test Plan

Only locals need any fix; a run testcase was added to verify
that it works already for globals, and since the fix for locals
is on the ir level only an ir testcase is added.

Fixes mypyc/mypyc#702 by replacing "'" with "__redef__",
although this assumes nothing else will ever use demangling
for now.

Only locals need any fix; a run testcase was added to verify
that it works already for globals, and since the fix for locals
is on the ir level only an ir testcase is added.
@JukkaL JukkaL merged commit 20fa54a into python:master Sep 22, 2021
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.

mypyc generates bogus identifiers when using allow-redefinition
2 participants