473,242 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,242 software developers and data experts.

Find This Module

I'm looking at the source for the module sre_compile.py and it does
this import:

import _sre

But I can't find a file related to _sre anywhere. Where is it? And
more generally, how does one find the location of a built in module?

Thanks,

Greg

Jul 4 '07 #1
2 990
On Wed, 04 Jul 2007 20:00:07 +0000, gr********@gmail.com wrote:
I'm looking at the source for the module sre_compile.py and it does
this import:

import _sre

But I can't find a file related to _sre anywhere. Where is it? And
more generally, how does one find the location of a built in module?
It's built into the interpreter executable.

In [85]: import _sre

In [86]: _sre
Out[86]: <module '_sre' (built-in)>

Ciao,
Marc 'BlackJack' Rintsch
Jul 4 '07 #2
gr********@gmail.com wrote:
I'm looking at the source for the module sre_compile.py and it does
this import:

import _sre

But I can't find a file related to _sre anywhere. Where is it?
If you want the source code, have a look at

http://svn.python.org/view/python/tr...47&view=markup
And more generally, how does one find the location of a built in module?
For the source of modules written in C, built in or not, you have to look in
the source distribution.

Peter
Jul 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andreas Neudecker | last post by:
Hi. I know you can read the filename of a program as sys.argv. But what about modules? Is there a similar way to find out the file name of a module (called by some other module or program) from...
5
by: Tim Eliot | last post by:
Just wondering if anyone has hit the following issue and how you might have sorted it out. I am using the command: DoCmd.TransferText acExportMerge, , stDataSource, stFileName, True after...
5
by: Filips Benoit | last post by:
Dear All, I'm looking for a function that does the same as the find-action in the code-window. Thanks, Filip
2
by: Mark D. Richter | last post by:
These are two merge modules for the C runtime. Is there a "legit" place that Microsoft makes these available? MSDN? (Searching MSDN was not very fruitful however.) I am building in the VS 7.1...
6
by: bobueland | last post by:
The module string has a function called translate. I tried to find the source code for that function. In: C:\Python24\Lib there is one file called string.py I open it and it says
0
by: bblais | last post by:
Hello, I am trying to install the vtk module to use MayaVi. I went to vtk.org, and downloaded and installed VTK, and MayaVi seemed to compile fine, but when I try the test_vtk.py, it says: ...
3
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or...
3
by: Lance Hoffmeyer | last post by:
Hi all, I am trying to find the last used column in an excel sheet using win32com: lastcol = sh.UsedRange.Columns.Count works, but only if there is no formatting. I want to allow formatting...
15
by: Kurda Yon | last post by:
Hi, I try to "build" and "install" pysqlite? After I type "python setup.py build" I get a lot of error messages? The first error is "src/ connection.h:33:21: error: sqlite3.h: No such file or...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.