Pythonda Garip Bir Hata Alıyorum
-
linux üzerinden çalıştırıyorum
kod bu;
import re
print re.search('(.*?)','Deneme asd').group(1)hata bu;
Traceback (most recent call last):
File "re.py", line 1, in
import re
File "/home/celoron/Masaüstü/p/re.py", line 2, in
print re.search('(.*?)','Deneme asd').group(1)
AttributeError: 'module' object has no attribute 'search'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 38, in apport_excepthook
from apport.packaging_impl import impl as packaging
File "/usr/lib/python2.5/site-packages/apport/__init__.py", line 1, in
from apport.report import Report
File "/usr/lib/python2.5/site-packages/apport/report.py", line 14, in
import subprocess, tempfile, os.path, urllib, re, pwd, grp, os, sys
File "/usr/lib/python2.5/subprocess.py", line 404, in
import pickle
File "/usr/lib/python2.5/pickle.py", line 35, in
import re
File "/home/celoron/Masaüstü/p/re.py", line 2, in
print re.search('(.*?)','Deneme asd').group(1)
AttributeError: 'module' object has no attribute 'search'
Original exception was:
Traceback (most recent call last):
File "re.py", line 1, in
import re
File "/home/celoron/Masaüstü/p/re.py", line 2, in
print re.search('(.*?)','Deneme asd').group(1)
AttributeError: 'module' object has no attribute 'search' -
re modülünde search diye birşey yok diyor ben azmı aldım zamanında böyle hatalar:d
-
hahaha :D hatayı buldum! dosyanın adını re.py diye kaydetmişim XD
-
celoron bunu yazdı:
-----------------------------
hahaha :D hatayı buldum! dosyanın adını re.py diye kaydetmişim XD
-----------------------------hadi hayırlısı:)
