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 vstinner
Recipients Mark.Shannon, brett.cannon, dino.viehland, eric.snow, fabioz, gregory.p.smith, lukasz.langa, phsilva, vstinner
Date 2020-03-12.20:51:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584046263.38.0.633513835175.issue38500@roundup.psfhosted.org>
In-reply-to
Content
Mark: Would you mind to open a separated issue for your following idea?

> I propose a new method on code objects `withCallAtLine(callable: Callable[], line:int)` which returns a new code object with calls to the given callable at the given line.
> A breakpoint can then be inserted at line L in function f with `f.__code__ = f.__code__.withCallAtLine(sys.breakpoint, L)`.

I prefer to restrict this issue to the PEP 523.
History
Date User Action Args
2020-03-12 20:51:03vstinnersetrecipients: + vstinner, brett.cannon, gregory.p.smith, fabioz, phsilva, dino.viehland, lukasz.langa, Mark.Shannon, eric.snow
2020-03-12 20:51:03vstinnersetmessageid: <1584046263.38.0.633513835175.issue38500@roundup.psfhosted.org>
2020-03-12 20:51:03vstinnerlinkissue38500 messages
2020-03-12 20:51:03vstinnercreate