0

I installed Python 3.7 with default settings and I want to explore the back roads a bit. I think it will be beneficial to see what goes on in the modules that we import, however, I can't find any of them. I am assuming they aren't imported from a server or through a cloud because I imported "random" without internet a couple of times already so it has to be stored on the hard drive. Can anyone lead me to the modules?

All the answers I have found were for Linux. I never used Linux so I am unsure if they are the same or not. I know this is a similar question to others, but this is specifically for Windows 10.

  • `import random; print(random.__file__)` or you can check on [GitHub](https://github.com/python/cpython/blob/3.7/Lib/random.py). – Ashwini Chaudhary Jul 21 '18 at 03:20
  • Some modules may be stored in a zipfile, and a few of them (like `sys`) are built into the Python executable itself. – abarnert Jul 21 '18 at 03:25
  • Even though many of the _questions_ are for Linux, almost all of the answers are cross-platform. On the linked duplicate, the first one is cross-platform plus a note about Windows, the second is purely cross-platform, the third is cross-platform plus a note about Linux. (The last one is not just Linux-only but Debian/Ubuntu-only, but then that one has 0 votes.) – abarnert Jul 21 '18 at 03:28

0 Answers0