Python Forum
How to see python default methods from inside
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to see python default methods from inside
#1
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
Reply
#2
Python Docs - Built in Functions
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
Reply
#3
you can browse source code for python on github - it's open source
https://github.com/python/cpython

Note, it's C
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#4
If want to look at the C file split.h
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pip installs in a different python version and directory than the default 3.11 ao_tex_mal 9 3,340 Jun-20-2023, 02:55 PM
Last Post: snippsat
  Mac default python interpreter Viewpoint8455 2 909 Oct-13-2022, 06:25 AM
Last Post: perfringo
  set python default 3.0 tdwinfre 4 2,784 Nov-27-2020, 06:04 PM
Last Post: snippsat
  Which package installation methods to use inside a python virtual environment? python_user_03 2 2,629 Dec-26-2018, 03:00 PM
Last Post: gehrenfeld
  set 'default' cwd in python zealjeung 1 2,285 Aug-19-2018, 12:04 PM
Last Post: Windspar
  How to make the python default language be 3.6 instead of 2.7 sylas 4 6,814 Jul-06-2018, 06:11 AM
Last Post: sylas
  Adding C methods to a pure python class relent95 1 2,919 Nov-03-2017, 03:24 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020