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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/P3MUJLB2NXNX3ARZRTST4KHIEY32LEIM/
Code of Conduct: http://python.org/psf/codeofconduct/