[Python-Dev] _sre as part of python.dll
Christian Tismer
tismer@tismer.com
Sat, 10 Aug 2002 20:38:51 +0200
Duncan Booth wrote:
...
> _sre is used by any application that imports 'os'. That (IMHO) is almost
> every non-trivial Python program.
Sure? Then try this in a Windows shell:
"""
D:\>\python22\python
hey this is sitepython
Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for i in sys.modules: print i
...
stat
__future__
copy_reg
os
signal
site
__builtin__
UserDict
sys
sitecustomize
ntpath
__main__
exceptions
types
nt
os.path
>>>
"""
As you can see, os is imported by the startup code, already.
(Which I didn't know!)
Furthermore, os didn't cause an import of _sre.
ciao - chris
--
Christian Tismer :^) <mailto:tismer@tismer.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34 home +49 30 802 86 56 pager +49 173 24 18 776
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/