Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
testing value type 2
#1
what about
if foo in (Sometype,):
    ...
compared to
if foo is Sometype:
    ...
is in more like is or more like ==? in this usage i want to determine if foo's value is the type itself ... or not. it's about how in works.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
testing value type 2 - by Skaperen - Jan-23-2021, 10:18 PM
RE: testing value type 2 - by Gribouillis - Jan-24-2021, 08:45 AM
RE: testing value type 2 - by Skaperen - Jan-24-2021, 08:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  testing value type Skaperen 1 1,802 Jan-23-2021, 03:48 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

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