aiobotocore
aiobotocore copied to clipboard
swap to bytecode patching?
Instead of us generating tons of copy/pasted code for sections where we're only adding an await perhaps we should think about swapping to bytecode patching. There are helpers like bytecode and codetransformer that could help
the worry I would have is for debugging. As long as it would match up line for line I think it would be ok, definitely would be a little weird ;)
@terrycain thoughts?
@jettify ?
@thehesiod I strongly recommend going the other way around with https://pypi.org/project/unasync/ and having botocore be generated from aiobotocore
we can't generate botocore from aiobotocore, botocore is the truth, aiobotocore is a third party enhancement
Got any references/examples of it? sounds cool/scary/error-prone :smile:
@terrycain exactly, lol I was looking at this: https://rushter.com/blog/python-bytecode-patch/ that referenced those modules, I need to spend some time to play around with it
I think it combined with the patch checker would be ok, but ya debugging would suk, unless we generate python code from the bytecode and add them as reference files, actually that would be cool.