[ wxwindows-Bugs-1908779 ] PyCrust problem with GLOBALs

SourceForge.net noreply at sourceforge.net
Thu Mar 6 14:34:08 PST 2008


Bugs item #1908779, was opened at 2008-03-06 06:31
Message generated for change (Comment added) made by robind
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1908779&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxPython specific
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: Ivan Savov (isavov)
Assigned to: Robin Dunn (robind)
Summary: PyCrust problem with GLOBALs

Initial Comment:
I think PyCrust is the greatest invention ever!

I am working on a simple script that parses a text file and splits it into a number of .html pages.


This is what I do:
>>> import os
>>> os.chdir("/Users/ivan/Projects/sec5/")
>>> execfile("splitter.py")
>>> a 

FREEZEAS! and top shows Python spinning at 100% cpu.

a is a global variable i want to use now to continue development... but the whole program freezes.

If I change "a" to be a local variable then the program runs fine but i can't access the data I need.


I think it might be one of the very useful features which explores the context.


Please let me know if I can help.

ivan.savov at gmail.com



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

>Comment By: Robin Dunn (robind)
Date: 2008-03-06 14:34

Message:
Logged In: YES 
user_id=53955
Originator: NO

The value in the 'a' variable contains almost 2 megabytes of text, which
if you try to evaluate it like that Python will print it all on one line. 
The Scintilla editor component (which PyCrust is built upon) doesn't do
very well with very long lines when word-wrap is turned on.  You can turn
off word-wrap in PyCrust by running shell.wrap(False) but I expect that it
will still have troubles with that much data on one line.  Compounding the
problem is the fact that PyCrust is also updating the Namespace viewer and
other things in the Filling panel in the background, refilling the tree
every time something changes in the shell.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1908779&group_id=9863




More information about the wx-dev mailing list