[ python-Bugs-604387 ] long list in Pythonwin -> weird text

SourceForge.net noreply at sourceforge.net
Wed May 5 08:30:55 EDT 2004


Bugs item #604387, was opened at 2002-09-04 16:36
Message generated for change (Comment added) made by mhammond
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=604387&group_id=5470

Category: Windows
Group: 3rd Party
>Status: Closed
>Resolution: Invalid
Priority: 2
Submitted By: James Briggs (jbriggs66)
Assigned to: Mark Hammond (mhammond)
Summary: long list in Pythonwin -> weird text

Initial Comment:

Using Pythonwin (build 148) with ActiveState 2.2.1

>>> import sys
>>> sys.modules.keys()
['code', 'pywin.framework.cmdline', ....

after about 15 lines the output goes weird.

Text is mostly stuck on 1st column, some text appears 
and disappears as the scroll bar is moved.

Tried this with Python 2.1 and Pythonwin (build 147 also)



----------------------------------------------------------------------

>Comment By: Mark Hammond (mhammond)
Date: 2004-05-05 22:30

Message:
Logged In: YES 
user_id=14198

This should be in the pywin32 bug database, which will say
it should be in the scintilla bug list, which will mark it
"wont fix" :)  Pythonwin gets around it these days by
setting scintilla's word-wrap feature on, but an editor like
scintilla is always going to struggle handling huge lines
both 100% correctly and quickly.

----------------------------------------------------------------------

Comment By: James Briggs (jbriggs66)
Date: 2002-09-05 10:06

Message:
Logged In: YES 
user_id=605472

Make that - screen width effects what you see, but not when 
the bug appears. 

----------------------------------------------------------------------

Comment By: James Briggs (jbriggs66)
Date: 2002-09-05 10:04

Message:
Logged In: YES 
user_id=605472

Another folloup.
All tests were done with the default window size, and full size 
window on 1024x768. Screen width effects the where you see 
the 
Changing to non-fixed size font gets the range(1,000) to work, 
but the display still goes wierd on the range(1,2000). Fonts 
sizes seem to make no difference. Fonts used were Fixed 
width - Courier New 10 pt, Proportional - Arial 10 pt.


----------------------------------------------------------------------

Comment By: James Briggs (jbriggs66)
Date: 2002-09-05 09:06

Message:
Logged In: YES 
user_id=605472

Yes, I should have mentioned it worked in IDLE and on cthe 
command line. Currently using Windows 2000 (Sp2).

Any very long sequence with enough text seems to cause the 
problem.

Try also:

>>> range(1,1000)  # will go wierd after 771

>>> s=str(range(1,780))

It seems to be when the total string length gets around 3750 
characters.




----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2002-09-05 01:35

Message:
Logged In: YES 
user_id=31435

Note that PythonWin isn't part of the core Python project, 
so marked 3rdParty and assigned to Mark Hammond.

I don't see any problems under a DOS box, or under IDLE, 
so if there is a problem here, it seems unlikely to be in the 
core.  Help Mark by giving more info:  which flavor of 
Windows are you using?  Is it a non-US version (French, 
Japanese, etc)?  Is the problem specific to 
sys.modules.keys(), or is it common across every list that 
requires more than "about 15 lines" to display?:  How wide 
is your display window?  Which font and point size are you 
using?  Etc.  As is, I doubt there's enough info here for 
anyone to help.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=604387&group_id=5470



More information about the Python-bugs-list mailing list