Skip to content

Conversation

@iritkatriel
Copy link
Owner

@iritkatriel iritkatriel commented Sep 10, 2021

>>> def f():
...    return "42"
... 
>>> def g():
...    """g"""
...    return "42"
... 
>>> f.__code__.co_consts
('42',)
>>> g.__code__.co_consts
('g', '42')
>>> f.__code__.co_flags
3
>>> g.__code__.co_flags
67

@iritkatriel iritkatriel deleted the docstring branch May 20, 2022 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants