Print details of methods, functions, or code to *file*. If *file* is not provided, the output is printed on stdout.
(co, *, file=None)
| 275 | return "\n".join(lines) |
| 276 | |
| 277 | def show_code(co, *, file=None): |
| 278 | """Print details of methods, functions, or code to *file*. |
| 279 | |
| 280 | If *file* is not provided, the output is printed on stdout. |
| 281 | """ |
| 282 | print(code_info(co), file=file) |
| 283 | |
| 284 | Positions = collections.namedtuple( |
| 285 | 'Positions', |