homepage

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.

classification
Title: Pdb doesn't call flush on its stdout file descriptor
Type: behavior Stage: test needed
Components: Library (Lib) Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, sirlark, splitscreen
Priority: normal Keywords:

Created on 2006年06月09日 12:57 by splitscreen, last changed 2022年04月11日 14:56 by admin. This issue is now closed.

Messages (3)
msg60929 - (view) Author: Matt Fleming (splitscreen) Date: 2006年06月09日 12:57
When redirecting Pdb's stdout file object, the commands
that use this to write output don't call flush() on the
object. This leads to problem when setting the stdout
file object to a fileobject created from a socket with
the makefile() method.
My proposed solution to this problem is for the Pdb
class to contain a method for writing to fileobjects
which can be overridden by programmers if they wish to
write to sockets or other streams that require flush()ing.
I can work on this patch if people thinks its a good idea.
Thanks, Matt
msg68876 - (view) Author: James Dominy (sirlark) Date: 2008年06月28日 15:05
I've been working on a patch that allows pdb when run as a script to
split it's output such that the program being debugged uses a specified
tty for stdin/stdout, and leave the pdb.py IO on the original
stdin/stdout. I think perhaps these efforts should be merged. Certainly
your suggested patch would make my work much easier.
msg112086 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010年07月30日 16:00
This has been implemented in the course of r83286.
History
Date User Action Args
2022年04月11日 14:56:18adminsetgithub: 43477
2010年07月30日 16:00:52georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg112086

resolution: fixed
2009年03月21日 03:26:39ajaksu2setstage: test needed
type: behavior
versions: + Python 2.6, Python 3.0
2008年06月28日 15:05:34sirlarksetnosy: + sirlark
messages: + msg68876
2006年06月09日 12:57:03splitscreencreate

AltStyle によって変換されたページ (->オリジナル) /