[IPython-user] PyReadline: No tab completion if sys.stdout is redirected

Dirk Loss lists@dirk-loss...
Thu Dec 20 17:42:55 CST 2007

Hi Jörgen,

I think I found the problem: The string buffer passed to the 
WriteConsoleW function must not be bigger than 64k (see [1] for reference).

So if our output text is longer, we have to split it into several parts 
and print each one separately. A patch is attached. It's rather 
quick&dirty but I hope you'll get the idea.


[1] http://msdn2.microsoft.com/en-us/library/ms687401.aspx

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: console-64k-patch.txt
Url: http://lists.ipython.scipy.org/pipermail/ipython-user/attachments/20071221/2470335b/attachment.txt 

More information about the IPython-user mailing list