Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Added document
  • Loading branch information
Xiaokang2022 committed Oct 17, 2024
commit 658ef94ab2f302995de0256352d9f6422a30a04b
5 changes: 5 additions & 0 deletions Doc/library/inspect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,11 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
Return ``True`` if the object is a bound method written in Python.


.. function:: ispackage(object)

Return ``True`` if the object is a package.
Comment thread
Xiaokang2022 marked this conversation as resolved.
Outdated

Comment thread
Xiaokang2022 marked this conversation as resolved.

.. function:: isfunction(object)

Return ``True`` if the object is a Python function, which includes functions
Expand Down