473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1518
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Miguel Manso | last post by:
Hi, list. I'm into a psicological doubt that I would like to share with you (you'll know why later on this mail). I'm a programmer with 5 year of experience into Perl. I'm on that point where...
80
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
9
by: David Sulc | last post by:
Hi ! I've looked all over (internet, books, etc.) and I haven't found a very good ressource to get started with wxPython (yes, I've been through their tutorial). What I would basically like...
6
by: nibiery | last post by:
I am just getting started with Python, and I think I may be thinking about it wrong. I'd like to be able to work interactively with some code that I've got in a file. The only interpreted language...
18
by: W. Watson | last post by:
What do I download to use Python with MX XP Pro on an ASUS 4 year old motherboard? I would guess a good book source for starters would be the O'Reilly book. Wayne T. Watson (Watson Adventures,...
0
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
Hi folks, I tried to experiment my first MCF server program, but I experienced a problem. * all the codes 100 % copied from MSDN2, MCF, Getting Started Tutorial, C# * two source files parepared...
25
by: Eric | last post by:
Hello, after reading some of the book Programming Python it seems that python is something I would like to delve deeper into. The only thing is, I have no idea what I should try and write. So I was...
7
by: Mark Carter | last post by:
One thing I really liked about Ubuntu was that Nautilus allowed you to add scripts to a directory which could be accessed via the RMB. It was a very simple thing to do. I've recently switched to...
5
by: Peter Pearson | last post by:
I'm trying to get started with pyvtk, the Python interface to the Visualization Toolkit, but there's obviously something important that I haven't figured out after an embarrassingly long morning...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.