On 2008-06-10, Peter Hunt <[EMAIL PROTECTED]> wrote: > Hi everyone - > > I like playing around with language syntax and semantics. I'm thinking > about pulling down the PyPy code and messing around to see what I can > accomplish. My first idea is most succinctly described by example: > > class IBlockProtocol: > def __block__(self, func): > # NO RETURN VALUES! > pass
You have lost me here. What is this supposed to be doing? To me you introduce a new magic __block__ function in a class that does nothing. And then you go on and on with implementation details and mappings of some BlockProtocol to other syntax without an explanation of what you are blocking (in English text), or what you aim to achieve by blocking. In other words, your post is to me the same as class A(object): def q(self, t): # do nothing pass and the question "did anybody invent q_protocol" already? Your guess is as good as mine (and probably better since you have a semantics for the blocking protocol in the back of your mind). Sincerely, Albert -- http://mail.python.org/mailman/listinfo/python-list