I’d like to mangle and demangle C++ function names in a Python program.
Is there anything like that available? I searched for hours now, perhaps I’m lucky here…
I’d like to mangle and demangle C++ function names in a Python program. Is
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You most likely don’t want to be doing this in Python. As an aside you probably shouldn’t be exporting mangled names from your DLLs since it makes it hard to use for anyone with a different compiler.
If you have to use mangled names then just hard code them in your Python code. If you were going to do mangling in Python code then you’d have to:
It seems highly unlikely to me that coding all this up in Python would be better than simply hard coding the mangled names.