Python Forum
Class isinstance not recognizing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class isinstance not recognizing
#3
Im not sure if you already have a vector module installed in your environment? If so that might contradict with the your Vector class.
Can you try changing the name of the your class from Vector to something else and check if you see similar behaviour?

This is just an experiments, I dont have explanation for this peculiar behavior.
Reply


Messages In This Thread
Class isinstance not recognizing - by Windspar - Dec-08-2017, 03:12 PM
RE: Class isinstance not recognizing - by Windspar - Dec-08-2017, 04:24 PM
RE: Class isinstance not recognizing - by hshivaraj - Dec-08-2017, 04:43 PM
RE: Class isinstance not recognizing - by Windspar - Dec-08-2017, 06:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sublime Text Editor not recognizing Python elroberto 5 3,012 Jun-13-2022, 04:00 PM
Last Post: rob101
  Trying to understand how isinstance(values, collections.Iterable) work. quazirfan 7 4,321 Aug-10-2021, 08:10 AM
Last Post: snippsat
  basic question isinstance tames 5 2,909 Nov-23-2020, 07:20 AM
Last Post: tames
  pylint not recognizing some objects in VS Code marceloreborn 1 1,851 Jul-31-2020, 01:36 AM
Last Post: Larz60+
  Help with isinstance command (very simple code) Laplace12 2 2,053 Jul-30-2020, 05:26 AM
Last Post: Laplace12
  isinstance() always return true for object type check Yoki91 2 2,628 Jul-22-2020, 06:52 PM
Last Post: Yoki91
  List and isinstance Roh_80 1 2,356 Jan-14-2019, 03:52 PM
Last Post: ichabod801
  isinstance not outputting anything mikerosz94 3 3,456 Aug-31-2017, 03:07 PM
Last Post: mikerosz94
  Repost isinstance not outputting any statements mikerosz94 1 2,973 Aug-31-2017, 12:46 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