(self, cmd=None)
| 3795 | return address |
| 3796 | |
| 3797 | def do_help(self, cmd=None): |
| 3798 | if len(cmd) == 0: |
| 3799 | print("Available commands") |
| 3800 | print("=" * 79) |
| 3801 | prefix = "do_" |
| 3802 | methods = inspect.getmembers(InspectionShell, predicate=inspect.ismethod) |
| 3803 | for name,method in methods: |
| 3804 | if not name.startswith(prefix): continue |
| 3805 | doc = inspect.getdoc(method) |
| 3806 | if not doc: continue |
| 3807 | name = prefix.join(name.split(prefix)[1:]) |
| 3808 | description = doc.splitlines()[0] |
| 3809 | print((name + ": ").ljust(16) + description) |
| 3810 | print("=" * 79) |
| 3811 | else: |
| 3812 | return super(InspectionShell, self).do_help(cmd) |
| 3813 | |
| 3814 | def do_p(self, cmd): |
| 3815 | """ see print """ |
nothing calls this directly
no test coverage detected