[issue14803] Add feature to allow code execution prior to __main__ invocation

Ionel Cristian Mărieș report at bugs.python.org
Tue May 12 09:06:24 EDT 2020


Ionel Cristian Mărieș <contact at ionelmc.ro> added the comment:

Note that coveragepy ain't the sole usecase for this.

https://pypi.org/project/manhole/ - a debugging tool
https://pypi.org/project/hunter/ - a tracer

In addition to those there's https://pypi.org/project/pytest-cov/ which packages the pth trick so coverage works consistently in all scenarios without putting users through the trouble of messing their python installation.

Also, the amount of activity and enthusiasm on changing something that already works while other inconsistencies in python's core like issue23990 are ignored is disheartening.

----------
nosy: +ionelmc

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue14803>
_______________________________________


More information about the Python-bugs-list mailing list