python - AttributeError: 'module' object has no attribute 'BuiltinFunctionType' in pycharm -


i write code in python language uses copy module. when run code in pycharm console has no error in pycharm gui environment gives me error:

traceback (most recent call last):      file "c:/....../python/deepshallowcopy.py", line 2, in <module>          copy mport deepcopy      file "c:\python34\lib\copy.py", line 114, in <module>         types.builtinfunctiontype, type(ellipsis), attributeerror: 'module' object has no attribute 'builtinfunctiontype' 

my code is:

from copy import deepcopy col3=["rrrr","bbbb"] col4=deepcopy(col3) print(col3,col4) col3[0]="jfjdhf" print(col3,col4) 

taking closer @ traceback,

traceback (most recent call last):   file "c:/....../python/deepshallowcopy.py", line 2, in <module>     copy import deepcopy   file "c:\python34\lib\copy.py", line 114, in <module>     types.builtinfunctiontype, type(ellipsis), attributeerror: 'module' object has no attribute 'builtinfunctiontype' 

you must have python file named types.py in same folder running deepshallowcopy.py file.

i able reproduce error running script in same folder file named types.py.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -