> # We must protect the builtin elite to not be affected by the revolution
> if inspect.isclass(c) and c.__name__ not in dir(__builtins__):
A true comrade that safeguards the unity and sanctity of the state!
> if inspect.isclass(c) and c.__name__ not in dir(__builtins__):
A true comrade that safeguards the unity and sanctity of the state!
object.__setattr__=lambda x,y,z:None
if we do this, the state will surely wither away![0][0]: Doesn't actually work :(
def counterrevolutionary(obj):
class TzarString(str):
def __eq__(self, other):
return True
obj.__name__ = TzarString(obj.__name__)
return obj
class Peasant:
pass
class Worker:
pass
@counterrevolutionary
class Imperialist:
pass
@counterrevolutionary
class Capitalist:
pass
import communism
communism.revolution(globals())
print("Communists:", set([Peasant(), Worker()]))
# Communists: {<__main__.Peasant object at 0x1020b3fd0>}
print("Counter-revolutionists:", set([Imperialist(), Capitalist()]))
# Counter-revolutionists: {<__main__.Capitalist object at 0x1082bcfa0>,
# <__main__.Imperialist object at 0x1082bcfd0>}