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 Greg.Slodkowicz, Segev Finer, belopolsky, eric.araujo, eric.snow, georg.brandl, giampaolo.rodola, mariocj89, ncoghlan, piotr.dobrogost, terry.reedy
Date 2018-01-07.13:50:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
+1 for creating separate issues and linking them from this one - while the risk of breaking anything seems low, if we do cause a regression, multiple issues and PRs provide better traceability than one giant issue for everything.

(I'm also not aware of anyone else actively working on this since Sanyam's cProfile PR, so go ahead and create issues and PRs for any which you're interested in working on)

As far as `dis` specifically goes, while the function name in `dis` is "_test()" and it doesn't provide a meaningful help message, it's a genuinely useful CLI operation: it disassembles whatever file you provide, or `stdin` if you don't provide one:

    $ echo "print('Hello')" | python3 -m dis 
      1           0 LOAD_NAME                0 (print)
                  2 LOAD_CONST               0 ('Hello')
                  4 CALL_FUNCTION            1
                  6 POP_TOP
                  8 LOAD_CONST               1 (None)
                 10 RETURN_VALUE

So a `-m` option does make sense in `dis`, but it should probably be accompanied by some other changes as well (like a better name for the private function, and `--help` support).
Date User Action Args
2018-01-07 13:50:19ncoghlansetrecipients: + ncoghlan, georg.brandl, terry.reedy, belopolsky, giampaolo.rodola, eric.araujo, Greg.Slodkowicz, eric.snow, piotr.dobrogost, Segev Finer, mariocj89
2018-01-07 13:50:19ncoghlansetmessageid: <>
2018-01-07 13:50:19ncoghlanlinkissue9325 messages
2018-01-07 13:50:18ncoghlancreate