On 18/12/20 1:48 pm, Paul Sokolovsky wrote:
So, it's already clear that mod.func() syntax will continue to work as before. I don't foresee any problems with implementing that, do you?
What about this: import random class A: def choice(self, stuff): return stuff[0] a = A() def f(x, y): return x.choice(y) print(f(random, [1, 2])) print(f(a, ["buckle", "my shoe"])) How much of this is allowed under your restricted semantics? -- Greg _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/P3MUJLB2NXNX3ARZRTST4KHIEY32LEIM/ Code of Conduct: http://python.org/psf/codeofconduct/