Message78674
This can be simplified to just:
return (isfunction(object) or ismethod(object)) and \
object.func_code.co_flags & CO_GENERATOR
No need for patterns like:
if cond:
return True
return False |
|
Date |
User |
Action |
Args |
2009-01-01 01:31:57 | rhettinger | set | recipients:
+ rhettinger, benjamin.peterson, steven.daprano |
2009-01-01 01:31:56 | rhettinger | set | messageid: <1230773516.92.0.617860643085.issue4795@psf.upfronthosting.co.za> |
2009-01-01 01:31:56 | rhettinger | link | issue4795 messages |
2009-01-01 01:31:55 | rhettinger | create | |
|