[issue31266] attribute error

2017-08-23 Thread emin mamedov

New submission from emin mamedov:

Hello!
I am just write some program with "string module", after starting my program 
python give me error about "re module".

My program is a tutorial from DrapsTV from Youtube.

Error -->>
Traceback (most recent call last):
  File "temp1.py", line 1, in 
from string import Template
  File "/usr/lib64/python3.6/string.py", line 77, in 
class Template(metaclass=_TemplateMetaclass):
  File "/usr/lib64/python3.6/string.py", line 82, in Template
flags = _re.IGNORECASE
AttributeError: module 're' has no attribute 'IGNORECASE'

--
components: Extension Modules
files: temp1.py
messages: 300763
nosy: emin mamedov
priority: normal
severity: normal
status: open
title: attribute error
type: crash
versions: Python 3.6
Added file: http://bugs.python.org/file47095/temp1.py

___
Python tracker 
<http://bugs.python.org/issue31266>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31266] attribute error

2017-08-23 Thread emin mamedov

emin mamedov added the comment:

Thank you Peter, problem has fixed.

I think, python interpreter must understand if a "temp1.py" will start in same 
directory with file "re.py", this is not a native module for python and 
interpreter can ignore re.py from user directory and etc.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 
<http://bugs.python.org/issue31266>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com