Registry / serialization / itanium-demangler

itanium-demangler

JSON →
library1.1pypypi✓ verified 79d ago

A pure Python library for demangling Itanium C++ ABI symbol names (used by GCC, Clang, and others). Version 1.1 is current; it is stable and rarely updated.

pip install itanium-demangler
INSTALL
IMPORT
SIG · ITANIUM-DEMANGLER
I
itanium-demangler
serializationpythonv1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse
from itanium_demangler import parse
from itanium_demangler import demangle_symbol
Node
from itanium_demangler import Node
name
from itanium_demangler import name

Demangle a single Itanium C++ symbol.

from itanium_demangler import demangle_symbol mangled = '_Z3fooi' result = demangle_symbol(mangled) print(result) # 'foo(int)'
Debug
Known issues
gotchaThe library only handles Itanium ABI mangling (GCC/Clang). It will not demangle MSVC or Rust symbols; it returns None for unrecognized inputs.
fix
Check that the symbol follows the Itanium ABI pattern (starts with _Z). Use different demanglers for other platforms.
affects: all
gotchaThe function returns None if demangling fails, not an exception. Do not assume success without checking the return value.
fix
Always check the result: if result is None, handle the error gracefully.
affects: all
deprecatedVersion 1.1 is older; the library is in maintenance mode with few updates. There are no known deprecations, but new features should not be expected.
fix
No immediate action needed; but for active development consider if alternatives (e.g., libcxx Demangle) are needed.
affects: 1.0, 1.1
Upgrade
Version history
1.1latest on PyPI · released Aug 20, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
itanium-demangler — pip install itanium-demangler · libregistry