On 5 September 2016 at 23:45, Jonathan Goble <jcgob...@gmail.com> wrote: > I'd like to study the CPython implementations of lists and array.array > instances for a personal project of mine, but I've very unfamiliar > with the Python source code as it pertains to internals like this. > Which files would I need to look at to do this,
Built-in objects are usually in the Objects/ directory, with a corresponding include file in the Include/ directory: https://hg.python.org/cpython/file/default/Objects/listobject.c https://hg.python.org/cpython/file/default/Include/listobject.h Modules implemented in C are usually in the Modules/ directory: https://hg.python.org/cpython/file/default/Modules/arraymodule.c > and are there a few > particular functions/structures I should pay attention to? I'm just > looking for a brief pointer in the right direction here, not a full > explanation of how it works -- I'll get that from studying the source > code. :-) _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com