Python Forum

Full Version: How to see python default methods from inside
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear forum,

Could you please advise how / where to see from what script Python standard built-in functions or methods are composed of ?
For example - a Python method split()... what is the script for this split itself?
From what lines method "split()" is composed of ?

Or in general any other standard built-in method scripts?

Thks

So much
you can browse source code for python on github - it's open source
https://github.com/python/cpython

Note, it's C
If want to look at the C file split.h