Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import __builtin__
- class bad_idea(str):
- def hello(self):
- if self:
- return self + "HELLO"
- else:
- return 'HELLO'
- __builtin__.str = bad_idea
- print str("DERP").hello()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement