By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,640 Members | 2,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,640 IT Pros & Developers. It's quick & easy.

No types.py in Python3.4

P: 3
Now I have changed my mind and trying ptkgb.py,
as python3.4 ptkgb.py in Terminal

No types.py, which is in Python2.7

?? How I could take types.py from Python2.7, because I want to be with latest version of Python.

Help please

Alex
May 29 '16 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 621

P: 3
I found types.py in python3.4 but it does not supply IntType

a.py:
import sys
print (sys.path)
from types import IntType

alex@alex-GA-78LMT-USB3:~/Desktop/py$ python3.4 a.py
['/home/alex/Desktop/py', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-i386-linux-gnu', '/usr/lib/python3.4/lib-dynload',
'/usr/local/lib/python3.4/dist-packages', '/usr/lib/python3/dist-packages']


Traceback (most recent call last):
File "a.py", line 5, in <module>
from types import IntType
ImportError: cannot import name 'IntType'

HELP, please
Alex
May 29 '16 #3

Post your reply

Sign in to post your reply or Sign up for a free account.