469,917 Members | 1,474 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

Getting started with the Python source

I am interested in making some changes and additions to the Python
environment (Python and IDLE). I have the source code and can build the
source, but what I want to know is what are the "main" functions or
source code for Python and IDLE. Specifically I would like to know what
in Python and IDLE would be analogous to void main () in a standard C
program. This will help me to work out the structure of the interpreter
and the environment. Your help will be greatly appreciated. The changes
I wish to make are for investigating the modification of the Python
environment for novice programmers.

Dec 6 '06 #1
4 1381
Actually IDLE was written purley in python, you can find the sources to
it in...

UNIX: /usr/lib/python<version>/idlelib
Windows: C:\Python<version>\Lib\idlelib

If you are looking to modifly mostly just the IDE I would start there,
however if you are more interesting in modifying python Itself just
look around in the sources, it should be relativley easy to find.

renguy wrote:
I am interested in making some changes and additions to the Python
environment (Python and IDLE). I have the source code and can build the
source, but what I want to know is what are the "main" functions or
source code for Python and IDLE. Specifically I would like to know what
in Python and IDLE would be analogous to void main () in a standard C
program. This will help me to work out the structure of the interpreter
and the environment. Your help will be greatly appreciated. The changes
I wish to make are for investigating the modification of the Python
environment for novice programmers.
Dec 6 '06 #2
Thank you for your response. I guess I was looking for a more specific
answer. I have the source and I have been looking around at the various
code. I think my question is, what is the name of the toplevel source
code file of C code for the Python interpreter, and what is the name of
the toplevel source code file for IDLE? Does that make sense?

Thanks again.

da****@gmail.com wrote:
Actually IDLE was written purley in python, you can find the sources to
it in...

UNIX: /usr/lib/python<version>/idlelib
Windows: C:\Python<version>\Lib\idlelib

If you are looking to modifly mostly just the IDE I would start there,
however if you are more interesting in modifying python Itself just
look around in the sources, it should be relativley easy to find.

renguy wrote:
I am interested in making some changes and additions to the Python
environment (Python and IDLE). I have the source code and can build the
source, but what I want to know is what are the "main" functions or
source code for Python and IDLE. Specifically I would like to know what
in Python and IDLE would be analogous to void main () in a standard C
program. This will help me to work out the structure of the interpreter
and the environment. Your help will be greatly appreciated. The changes
I wish to make are for investigating the modification of the Python
environment for novice programmers.
Dec 6 '06 #3
Right, I am pretty sure that the "toplevel" source of idle is in
dir-to-pylibs/idlelib/idle.py
(or maybe .pyw) that is were all the glue code is for idle, as for the
python source, I haven't messed around with it too much so I couldn'
tell you, well just have to wait for somone else to post that
information...

....
renguy wrote:
Thank you for your response. I guess I was looking for a more specific
answer. I have the source and I have been looking around at the various
code. I think my question is, what is the name of the toplevel source
code file of C code for the Python interpreter, and what is the name of
the toplevel source code file for IDLE? Does that make sense?

Thanks again.

da****@gmail.com wrote:
Actually IDLE was written purley in python, you can find the sources to
it in...

UNIX: /usr/lib/python<version>/idlelib
Windows: C:\Python<version>\Lib\idlelib

If you are looking to modifly mostly just the IDE I would start there,
however if you are more interesting in modifying python Itself just
look around in the sources, it should be relativley easy to find.

renguy wrote:
I am interested in making some changes and additions to the Python
environment (Python and IDLE). I have the source code and can build the
source, but what I want to know is what are the "main" functions or
source code for Python and IDLE. Specifically I would like to know what
in Python and IDLE would be analogous to void main () in a standard C
program. This will help me to work out the structure of the interpreter
and the environment. Your help will be greatly appreciated. The changes
I wish to make are for investigating the modification of the Python
environment for novice programmers.
Dec 6 '06 #4
renguy wrote:
Thank you for your response. I guess I was looking for a more specific
answer. I have the source and I have been looking around at the various
code. I think my question is, what is the name of the toplevel source
code file of C code for the Python interpreter, and what is the name of
the toplevel source code file for IDLE? Does that make sense?
to learn more about the Python interpreter, see:

http://effbot.org/pyfaq/where-do-i-s...implementation

</f>

Dec 6 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Miguel Manso | last post: by
80 posts views Thread by Bibby | last post: by
9 posts views Thread by David Sulc | last post: by
6 posts views Thread by nibiery | last post: by
18 posts views Thread by W. Watson | last post: by
reply views Thread by =?Utf-8?B?UGV0ZXI=?= | last post: by
25 posts views Thread by Eric | last post: by
7 posts views Thread by Mark Carter | last post: by
5 posts views Thread by Peter Pearson | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.