moohaad / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Functions of Source Code View are too slow ! #199

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open a python source file
2. Menu Tools->Source Code View->Documentation

Doc tab shows after server minutes busy and noresponding! Its' too slow!

Original issue reported on code.google.com by xiepeng...@gmail.com on 10 Mar 2008 at 2:47

GoogleCodeExporter commented 9 years ago
Sorry! I commit a typo!  server ->several

Original comment by xiepeng...@gmail.com on 10 Mar 2008 at 3:27

GoogleCodeExporter commented 9 years ago
Cannot reproduce.  Here I open for example the standard lib file inspect.py, 
select
Source Code Views, Documentation and it comes up instantly.

Which version of Windows, Internet explorer, Python are you using? 

Original comment by pyscripter on 10 Mar 2008 at 3:56

GoogleCodeExporter commented 9 years ago
Also, what processor, how much RAM?

Original comment by pyscripter on 10 Mar 2008 at 4:01

GoogleCodeExporter commented 9 years ago
My enviroment: Windows Vista Ultimate CHS, Intel Core Dual T7400, 1G RAM

Original comment by xiepeng...@gmail.com on 10 Mar 2008 at 6:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
and Python 2.52, IE 7

Original comment by xiepeng...@gmail.com on 10 Mar 2008 at 7:51

GoogleCodeExporter commented 9 years ago
I have got it!
When 'Documation', pyscripter attempt to run the source once. But my source 
code 
will consume too much time during excuting, so this issue occured.

Original comment by xiepeng...@gmail.com on 10 Mar 2008 at 7:59

GoogleCodeExporter commented 9 years ago
PyScripter does not run the code.  It just imports the module.

You should use the common Python idiom:
if __name__ == '__main__':
    main()

I am closing this bug report as invalid.

Original comment by pyscripter on 10 Mar 2008 at 12:10