-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
types.CodeType
regression in Python 3.11
#100316
Comments
You seem to be missing |
Work like a charm! Thank you @thatbirdguythatuknownot |
But you should really be using |
Yeah I'd love to move but |
Bug report
I've already asked this on Python user discord server but couldn't get proper answer.
13th argument is
codeobj.co_lnotab
but putting invalid input (None
,""
orb""
) does not change the error message,TypeError: code() argument 13 must be str, not int
. So I'm guessing there's a mismatch on the order of parameters oftypes.CodeType
andcode()
.Context
I'm maintaining DSL, which can import Python and vice versa. I need to reconstruct
lnotab
for correct line numbers for e.g. stacktrace.I tried using
types.CodeType.replace
but it does not supportco_lnotab
.Original code: https://github.com/armoha/eudplib/blob/master/eudplib/epscript/epsimp.py#L46-L92
Your environment
The text was updated successfully, but these errors were encountered: