re.compile() doesn't work under Windows?
ddtl
this at is.invalid
Thu Aug 31 17:38:00 EDT 2006
Hello everybody.
My script uses re.compile() function, and while it rans without errors
under Linux, when I ran that script under Windows I get the following
error:
Traceback (most recent call last):
File "C:\a\projects\re.py", line 4, in ?
import re
File "C:\a\projects\re.py", line 95, in ?
main()
File "C:\a\projects\re.py", line 37, in main
s_exp = re.compile(op['-s'])
AttributeError: 'module' object has no attribute 'compile'
What is the problem here? re module is installed and is on the path -
for example, the following code works and doesn't cause any errors:
import re
re.compile('a')
What else could cause such an error?
ddtl.
More information about the Python-list
mailing list