beruic
beruic

Reputation: 5876

How do I find python built-in function implementations?

In order to make an educated decision, I especially need to take a look at how range is implemented in Python 3. How do I find this implementation? I know I can use module.__file__ for modules, but which modules does built-in functions belong to, and where do I find the implementation?

Upvotes: 0

Views: 141

Answers (1)

karthikr
karthikr

Reputation: 99630

You can always read the source code

Upvotes: 5

Related Questions