473,396 Members | 1,997 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.

Question regarding the standard library?

Hey,
Is the standard library of Python is compiled (you know, the pyc
thing)?
Is it allowed to edit the source code of the standard library?
I'm not talking about submitting the modified code to Python source
code repository, I'm just asking if some one can edit the source code
in his own machine.
Thanks.
Aug 19 '08 #1
3 999
Hussein B wrote:
Is the standard library of Python is compiled (you know, the pyc
thing)?
Is it allowed to edit the source code of the standard library?
I'm not talking about submitting the modified code to Python source
code repository, I'm just asking if some one can edit the source code
in his own machine.
Python ships with the library sources, and you can of course edit them
in exactly the same way as you'll edit any other Python file. modules
in the standard library are no different from your own modules in that
respect.

whether it's a good idea to edit them (unless you're trying to track
down bugs or provide patches to the maintainers) is a different issue.

</F>

Aug 19 '08 #2
On Aug 19, 7:16 am, Fredrik Lundh <fred...@pythonware.comwrote:
Hussein B wrote:
Is the standard library of Python is compiled (you know, the pyc
thing)?
Is it allowed to edit the source code of the standard library?
I'm not talking about submitting the modified code to Python source
code repository, I'm just asking if some one can edit the source code
in his own machine.

Python ships with the library sources, and you can of course edit them
in exactly the same way as you'll edit any other Python file. modules
in the standard library are no different from your own modules in that
respect.

whether it's a good idea to edit them (unless you're trying to track
down bugs or provide patches to the maintainers) is a different issue.

</F>
Thanks.
Is the standard library compiled?
Aug 19 '08 #3
Hussein B wrote:
Is the standard library compiled?
the portions are written in Python are compiled to PYC files, just like
modules you write yourself are automatically compiled to PYC files when
you import them.

(why not just look in the Python installation tree? it's all there for
you to tinker with.)

</F>

Aug 19 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Rakesh | last post by:
Hi, I was writing this C++ program wherein I used an include statement like - #include <iostream.h> I was told by my co-worker that this form of including a file is deprecated and should...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
2
by: russell.lane | last post by:
I'm building out a pretty standard n-tier web application. The stack includes application/presentation, biz logic, and data access layers on top of an SQL server back end. We want to use...
5
by: Urs Beeli | last post by:
I have a question regarding errno. If I understand it correctly, including <errno.h> allows me to check "errno" for error values that some standard library functions may set. This brings up some...
3
by: arnuld | last post by:
Hello, i posted this question more than 1 month ago but did not get any answers, so i am posting it again (1). with advice form archives @ alt.comp.lang.learn.c-c++, comp.lang.c++,...
9
by: KarlM | last post by:
After reading some articles regarding confuguration data I'm a bit confused. Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point...
3
by: golden | last post by:
Hello, I am going to ask a question regarding write and lseek. I will provide code at the end of this, but first some background. I am trying to identify the cause of some latency in...
17
by: Ben Bacarisse | last post by:
candide <toto@free.frwrites: These two statements are very different. The first one is just wrong and I am pretty sure you did not mean to suggest that. There is no object in C that is the...
54
by: shuisheng | last post by:
Dear All, I am always confused in using constants in multiple files. For global constants, I got some clues from http://msdn.microsoft.com/en-us/library/0d45ty2d(VS.80).aspx So in header...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...

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.