Created
November 17, 2020 12:57
-
-
Save EduardoSaverin/a9e685135d1d11aa46f4ad7aeb00afca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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