Message233811
The help() function mysteriously captures a comment on the line preceding an inner function definition in a nested scope.
Given this code:
----------------
def outer(func):
#comment
def inner():
return
return inner
@outer
def f():
return
Calling help(f) produces:
-------------------------
Help on function inner in module __main__:
inner()
#comment |
|
Date |
User |
Action |
Args |
2015-01-10 09:33:16 | rhettinger | set | recipients:
+ rhettinger |
2015-01-10 09:33:16 | rhettinger | set | messageid: <1420882396.37.0.573730184021.issue23217@psf.upfronthosting.co.za> |
2015-01-10 09:33:16 | rhettinger | link | issue23217 messages |
2015-01-10 09:33:16 | rhettinger | create | |
|