[Python-ideas] CPython Bytecode Assembler

Batuhan Osman Taşkaya batuhanosmantaskaya at gmail.com
Wed Apr 24 13:57:55 EDT 2019


`dis` module was my only reference for this proposal. If majority doesn't
want a new implementation-specific module, it is best to withdraw this
proposal.
Brett Cannon <brett at python.org>, 24 Nis 2019 Çar, 20:49 tarihinde şunu
yazdı:

> Since bytecode is a CPython-specific implementaiton detail I don't know if
> it makes sense to enshrine an assembler for it in the stdlib (if you were
> to ask me today if I thought the dis module belonged in the stdlib I would
> probably say "no", but I also know not everyone agrees with that view :) .
>
> On Wed, Apr 24, 2019 at 10:36 AM Batuhan Osman Taşkaya <
> batuhanosmantaskaya at gmail.com> wrote:
>
>> Hello,
>>
>> Currently it is hard to assemble cpython bytecode without help of 3rd
>> party libraries (like: vstinner/bytecode). I'm proposing an assembler to
>> standard library and an API to cpython's peephole optimizer. Also an
>> interface like `ast.NodeVisitor` and `ast.NodeTransformer` for bytecode
>> objects will may be handy.
>>
>> It would help if you are doing;
>> - Runtime patching
>> - Specific optimizations at bytecode level
>>
>>
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190424/953fa219/attachment.html>


More information about the Python-ideas mailing list