Re: [pypy-dev] Disassembling methods called by LOOKUP_METHOD

2017-03-03 Thread Ryan Gonzalez
You can look at the source code for the objects (all located in pypy/objspace/std) and find the method implementations there. Here's append's (form pypy/objspace/std/listobject.py): def append(self, w_item): """L.append(object) -- append object to end""" self.strategy.append(

[pypy-dev] Disassembling methods called by LOOKUP_METHOD

2017-03-03 Thread Frank Wang
Hi, I'm trying to figure out the opcodes that the "append" function calls for arrays. When I use the dis tool, it just says that it looks up a method "append" using the LOOKUP_METHOD opcode. Is there a tool that allows me to disassemble built-in functions like "append", or what the best way to do