This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients ncoghlan
Date 2015-04-25.06:13:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
From, there are some additional details about functions that could be usefully exposed in the function repr, specifically whether or not it's a closure, and whether or not it's a generator function.

Proposed display:

    <function f at 0x7f7dad9f7bf8 (closure)>
    <function f at 0x7f7dad9f7bf8 (generator)>
    <function f at 0x7f7dad9f7bf8 (closure,generator)>

The Python level checks for the two flags:

closure: f.__closure__ is not None
generator: c.__code__.co_flags & inspect.CO_GENERATOR

Actual implementation would be in the C code at
Date User Action Args
2015-04-25 06:13:54ncoghlansetrecipients: + ncoghlan
2015-04-25 06:13:53ncoghlansetmessageid: <>
2015-04-25 06:13:53ncoghlanlinkissue24056 messages
2015-04-25 06:13:52ncoghlancreate