Find This Module

Marc 'BlackJack' Rintsch bj_666 at
Wed Jul 4 22:40:02 CEST 2007

On Wed, 04 Jul 2007 20:00:07 +0000, gregpinero at wrote:

> I'm looking at the source for the module 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)>

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list