Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDifferent workaround for http://bugs.python.org/issue19611 #27
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
andychu commentedApr 17, 2017
•
edited
This is much less important than the last bug, but I had an issue with the workaround in the code. (This will probably never come up for anyone else, because I'm doing something unusual: using the old pure Python compiler module, not the CPython compile.c).
I think the way I am doing it is slightly simpler though. Since you are constructing
callargs = {'.0': args[0]}anyway, I think you can just check if there is one arg and it is called.0. The name is ignored forLOAD_FASTin favor of the index (lookup by number rather than name), but the name is still emitted.oilshell/oil@65a504d#diff-702be8382fafa67a707b89a317abc246