Skip to content

Commit 0df57ad

Browse files
authored
Merge pull request #86 from braboj/codex/add-comment-block-for-function-introspection
Add intro comment for func introspection example
2 parents 09e8053 + 6ab718a commit 0df57ad

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/07_functions/func_introspection.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Inspect function attributes
2+
# --------------------------------------------------------------------------------
3+
# Explore attributes such as __name__, __doc__, __code__, etc., to see
4+
# where Python stores metadata for functions.
5+
16
def foo(a, b=10, c=20, *args, **kwargs):
27
"""This is 'foo' function that does nothing."""
38

0 commit comments

Comments
 (0)