473,748 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1546
Actually IDLE was written purley in python, you can find the sources to
it in...

UNIX: /usr/lib/python<version>/idlelib
Windows: C:\Python<versi on>\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.co m 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<versi on>\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.co m 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<versi on>\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
1695
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 you resolve problems without thinking on HOW you'll do it with that language but only on the problem itself. Since Perl 6 started I've been following it. The conclusion I have is
80
5274
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: Hireability Portability Flexibility The likely candidates seem to be Java, VB.Net, C, C++, C#.
9
1535
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 to do for starters is to be able to define the main panel being displayed. For example : 1. wxFrame contains a wxPanel (call it mainPanel). 2. mainPanel contains another panel (childPanelA)
6
2047
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 I have much experience with is Tcl/Tk, and in that I would use "source file.tcl" in the console to load my source. Is there a similar command in python? I know I can run my file as a script, but since I'm just experimenting with how the language...
18
2034
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, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet ""I do not fear death. I had been dead for billions and billions of years before I was born, and had
0
1438
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 - Service.cs, Service.exe.config * using msbuild, compiled the source into Service.exe * Service.exe and Service.exe.config are in the same folder * I double clicked Service.exe to expect to launch the service, but I experienced a runtime error,...
25
2356
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 hoping that someone here could help point me to a group/project that would be a good starting place for a person with limited python knowledge, but that is willing to learn whatever is necessary. I'm hoping that with a goal I can start to learn...
7
1617
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 Leopard, and I'm trying to do the same thing. I'm fairly experienced with Python, but new to OS X. I have installed FinderPop, which lets me add scripts and make them accessible via Contextual Menus, but it is not as easy as the Nautilus way. ...
5
7735
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 of googling around. When I run sample pyvtk code (example1.py, from http://cens.ioc.ee/cgi-bin/viewcvs.cgi/python/pyvtk/examples/example1.py), nothing graphical happens, but some text files appear named example1.vtk and example1b.vtk. Guessing...
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9326
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8245
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.