No types.py in Python3.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aagorobets
    New Member
    • May 2016
    • 3

    No types.py in Python3.4

    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
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    Duplicate of https://bytes.com/topic/python/answe...aw#post3803824

    Comment

    • aagorobets
      New Member
      • May 2016
      • 3

      #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

      Comment

      Working...