Python Forum
Why am I getting a type error?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why am I getting a type error?
#8
Python only imports once. Once a module is imported, further imports only point back to the original import. This can be efficient when running complicated programs. However, if you are in the interactive session, and change a module to fix a bug, it prevents you from importing. Use the reload function to solve this problem:

>>> import spam
# change spam.py
>>> reload(spam)
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Why am I getting a type error? - by WagmoreBarkless - Jan-19-2017, 02:01 AM
RE: Why am I getting a type error? - by Mekire - Jan-19-2017, 02:19 AM
RE: Why am I getting a type error? - by Skaperen - Jan-19-2017, 06:06 AM
RE: Why am I getting a type error? - by Mekire - Jan-19-2017, 02:56 AM
RE: Why am I getting a type error? - by ichabod801 - Jan-19-2017, 10:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  GroupBy - Sum = Error [datetime64 type does not support sum operations] BSDevo 4 2,880 Oct-27-2023, 07:22 PM
Last Post: BSDevo
  Type error in Cross_val_score Vicral 0 1,838 Jul-20-2021, 12:18 PM
Last Post: Vicral
  type error array BrianPA 2 2,417 Jan-17-2021, 01:48 PM
Last Post: BrianPA
  Error binding parameter 0 - probably unsupported type. illmattic 7 10,391 Jul-18-2020, 09:32 PM
Last Post: illmattic
  Error Message: TypeError: unhashable type: 'set' twinpiques 4 18,990 May-22-2019, 02:31 PM
Last Post: twinpiques
  Error:unsupported operand type(s) for ** or pow(): 'list' and 'int' mcgrim 3 18,355 Mar-22-2019, 01:29 PM
Last Post: buran
  Type Error Confusion Oliver 4 14,496 Dec-06-2017, 03:20 PM
Last Post: Oliver
  type error and access violation error pyopengl hsunteik 0 3,335 Nov-04-2017, 04:51 AM
Last Post: hsunteik
  AUCPR of individual features using Random Forest (Error: unhashable Type) melissa 1 3,316 Jul-10-2017, 12:48 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020