https://twitter.com/raymondh/status/1186868472178806785
class G:
def __init__(self, s):
self.s = s
def __getattr__(self, t):
return G(self.s + '.org')
def __rmatmul__(self, other):
return other + '@' + self.s
fun, games = 'operator', G('tricks')
print(fun@games.com)
#python
class G:
def __init__(self, s):
self.s = s
def __getattr__(self, t):
return G(self.s + '.org')
def __rmatmul__(self, other):
return other + '@' + self.s
fun, games = 'operator', G('tricks')
print(fun@games.com)
#python