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?
#7
I found the big problem, which of course just raised more questions. I am working with PyCharm, using a class that I coded into a Python file and calling it from a console window that I opened within PyCharm. It seems that editing the code in the file does not cause it to be refreshed within the console window. I called "import Perceptron" and reinitialized the object from within the console window, but it seems to keep calling stale code, even though the debug traces within the console window show new code.

This is puzzling, but it appears to be a problem with my coding environment and not with Python. If you know offhand how to get around this, I would like to know. In the meantime I will flounder forward.

I still don't know why Python confused an integer for a tuple, but that problem has disappeared.

Wags

Thank you.
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 WagmoreBarkless - Jan-19-2017, 06:47 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 3,098 Oct-27-2023, 07:22 PM
Last Post: BSDevo
  Type error in Cross_val_score Vicral 0 1,853 Jul-20-2021, 12:18 PM
Last Post: Vicral
  type error array BrianPA 2 2,454 Jan-17-2021, 01:48 PM
Last Post: BrianPA
  Error binding parameter 0 - probably unsupported type. illmattic 7 10,465 Jul-18-2020, 09:32 PM
Last Post: illmattic
  Error Message: TypeError: unhashable type: 'set' twinpiques 4 19,143 May-22-2019, 02:31 PM
Last Post: twinpiques
  Error:unsupported operand type(s) for ** or pow(): 'list' and 'int' mcgrim 3 18,452 Mar-22-2019, 01:29 PM
Last Post: buran
  Type Error Confusion Oliver 4 14,569 Dec-06-2017, 03:20 PM
Last Post: Oliver
  type error and access violation error pyopengl hsunteik 0 3,360 Nov-04-2017, 04:51 AM
Last Post: hsunteik
  AUCPR of individual features using Random Forest (Error: unhashable Type) melissa 1 3,346 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