Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 614 Bytes

File metadata and controls

34 lines (19 loc) · 614 Bytes

Difference between type and object

Question

Difference between type and an object in python using isinstance and issubclass

Solution

.. literalinclude:: ../../languages/python/design_python_objects_type.py
   :language: python
   :tab-width: 4

.. runcode:: ../../languages/python/design_python_objects_type.py
   :language: python
   :codesite: ideone

Explanation

.. seealso::

   * :python-suggest-improve:`design_python_objects_type.py`
   * :python-better-explain:`design_python_objects_type.rst`