[Tutor] Random Q on Python's internals?

Liam Clarke ml.cyresse at gmail.com
Tue Nov 1 13:22:55 CET 2005


Thanks Danny.


On 11/1/05, Danny Yoo <dyoo at hkn.eecs.berkeley.edu> wrote:
>
>
> > I was perusing the standard library, and was wondering if anyone knew
> > how the internals of Python work, roughly or no.
> >
> > Basically, I assume os.pipe() resides in a DLL somewhere, yet when I
> > open up Python24.DLL in PEexplorer I can't find mention of pipes
> > anywhere...
>
> Hi Liam,
>
>
> os.pipe() comes from the block of code near the top of os.py:
>
> http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Lib/os.py?rev=1.58.2.4&view=markup
>
> where it starts to talk to platform-specific modules like 'nt' and
> 'posix'.  The 'os.py' module is a sponge that absorbs the content of
> platform-specific modules in an attempt to make things look platform
> independent.  *grin*
>
> pipe() really comes from the posix/nt module, whose implementation can be
> found here:
>
> http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Modules/posixmodule.c?view=markup
>
>
> Best of wishes!
>
>


More information about the Tutor mailing list