[issue5851] Add a stream parameter to gc.set_debug

2019-12-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am going to close this for now as per my last comment (I think gc callbacks are best suited for custom statistics and custom behaviour when emitting the statistics - and more importantly, safer -) but feel free to re-open if you still think we didn'

[issue5851] Add a stream parameter to gc.set_debug

2019-12-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am not convinced about this. One of the problems I dislike is that the gc will take permanent ownership of the file descriptor (so is basically leaked). Is also not clear how this will behave during the delicate stages of finalization (the stream ob

[issue5851] Add a stream parameter to gc.set_debug

2019-12-29 Thread Batuhan
Batuhan added the comment: @nicdumz are you still interested in this issue? -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bug

[issue5851] Add a stream parameter to gc.set_debug

2013-03-28 Thread Georg Brandl
Georg Brandl added the comment: Patch would need to be updated for Python 3.4. (Please also upload it to this issue.) -- nosy: +georg.brandl versions: +Python 3.4 -Python 2.7 ___ Python tracker ___

[issue5851] Add a stream parameter to gc.set_debug

2009-08-24 Thread Nicolas Dumazet
Nicolas Dumazet added the comment: Sure, I'd be happy to contribute a patch. I uploaded a patch on Rietveld, at http://codereview.appspot.com/110078 Let me know how it looks. -- ___ Python tracker ___

[issue5851] Add a stream parameter to gc.set_debug

2009-05-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Would you like to work on a patch? -- components: +Interpreter Core -Extension Modules nosy: +amaury.forgeotdarc ___ Python tracker ___ __

[issue5851] Add a stream parameter to gc.set_debug

2009-04-26 Thread Nicolas Dumazet
New submission from Nicolas Dumazet : Hello! gc.set_debug is provided to help debugging a leaking program. That tool can be very useful indeed. Debugging information, however, is written to sys.stderr, and there are cases where this behavior can be a problem: chances are that stderr can be alr