[New-bugs-announce] [issue31266] attribute error

emin mamedov report at bugs.python.org
Wed Aug 23 15:38:33 EDT 2017

New submission from emin mamedov:

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 <module>
    from string import Template
  File "/usr/lib64/python3.6/string.py", line 77, in <module>
    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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list