Hi everyone,

I have a particular .py file that I'm using essentially to store data. It
has a line of text with ~1 million characters. It's syntactically correct
and python can run it instantaneously. But the editor in spyder cannot open
it (at least, not within the 20 minutes I waited).

The editor in spyder CAN open it if I change the file extension to nonsense
".pyy", or even if I just comment out (add the character "#" at the
beginning of) the million-character line. When I do that, it's a bit slow
in spyder (compared to using a dedicated text editor) but usable.

So I conclude that the possible problems are:

(A) Syntax-highlighting is choking on the large .py file,
(B) Code introspection is choking on the large .py file,
(C) Something else I'm not thinking of.

(B) seems to be ruled out because the problem persists when I turn off all
the code introspection / analysis in the Preferences menu. (A) seems
possible. I tried to open the same file in a few dedicated
syntax-highlighting text editors ... geany and notepad++ loaded it with no
problem at all, emacs was slghtly slow, but gedit could not load it. And of
course (C) is also possible.

Any ideas, advice, experiences?

Thanks in advance!

Steve Byrnes
Postdoc, Applied Physics, Harvard University
http://sjbyrnes.com/

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to