Skip to content

Instantly share code, notes, and snippets.

@EduardoSaverin
Created November 17, 2020 12:57
Show Gist options
  • Save EduardoSaverin/a9e685135d1d11aa46f4ad7aeb00afca to your computer and use it in GitHub Desktop.
Save EduardoSaverin/a9e685135d1d11aa46f4ad7aeb00afca to your computer and use it in GitHub Desktop.
_MangledGlobal__mangled = "From Global"
class MangledGlobal:
def test(self):
return __mangled # Do notice we havn't used self here
print(MangledGlobal().test()) # Prints "From Global"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment