ovod
ovod

Reputation: 1178

How to get code from python functions

For example I have a code:

f = open('ifyouwantme', 'r')

while True:
   line = f.readline()
   if not line: break

And I want to see the code which is behind open and readline functions. How can I see it?

Upvotes: 1

Views: 77

Answers (1)

bgporter
bgporter

Reputation: 36524

You can download full source for Python from http://www.python.org/download/releases/ and see any implementation details you like.

Upvotes: 3

Related Questions