GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Make it possible to use `sys.monitoring` for pdb/bdb · Issue #120144 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementProposal:I had a few proposals to utilize TL; DR:
Details: What I propose, is to keep all the code for bdb as it is, and add extra code for In order to use Of course, in reality, if the debugger wants to onboard this feature, it may need a few tweaks. For example, in pdb, Let me re-emphasize it in case that's still a confusion - there's nothing the developer needs to do, if they just want the old If they chose to use
and a normal debugger should not override those methods anyway (pdb does not). Again, those APIs will still work in As for pdb, we can also add a feature gate for it. The user can choose between the In 3.15, we can make So, why bother? Because we can really gain 100x performance with breakpoints. Not only with breakpoints, even without breakpoints, there's a significant overhead to run with debugger attached: def trace(*args): return None def f(): start = time.perf_counter() fib(22) print(time.perf_counter() - start) f() The overhead with trace attached is 4x-5x for Has this already been discussed elsewhere?I have already discussed this feature proposal on Discourse Links to previous discussion of this feature:#103103 Linked PRsReacted by Łukasz Langa and An Long Reacted by Beomsoo Kim Activity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |