Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check if an object of a certain type python

to check that you can use the isinstance function
# for example
is_bookingrequest_booking = isinstance(self, CustomerRequestBooking)
 
PREVIOUS NEXT
Tagged: #check #object #type #python
ADD COMMENT
Topic
Name
8+5 =