Open gvanrossum opened 2 years ago
I personally am against the use of Medium; is there somewhere else you could post this? You could of course use our Python blog but I expect you'd prefer somewhere more neutral.
Yeah, I just tried Medium after a long absence and found that it has turned into a junkyard. My current plan is to publish using my GitHub home page. I write in MarkDown and GitHub publishes decent HTML, which makes me happy.
The blog will appear at https://gvanrossum.github.io/formal/scopesblog.html. (What's there now is incomplete.)
I consider the text (and code) at https://gvanrossum.github.io/formal/scopesblog.html now basically complete. Have a look!
You say LEGB, but the code of ClosedScope.lookup seems to be doing LGE(B)?
@iritkatriel
You say LEGB, but the code of ClosedScope.lookup seems to be doing LGE(B)?
name in self.globals
is true iff there's a global <name>
declaration in the scope.
I consider this done. On to code generation and execution.
@gvanrossum Thanks for the blog! I've found a trivial markdown syntax issue near "hoops" at https://github.com/gvanrossum/gvanrossum.github.io/blob/876b4b89a3b715a05e95165135556e79f9c3db55/formal/scopesblog.md?plain=1#L53
I've got the rules worked out, and some text and some Python code that describes them. I'd like to finish this up in the form of a blog post hosted on ~Medium (or elsewhere if Medium proves to be a problem)~ GitHub pages.