no pyc file

Gregoire Welraeds greg at perceval.be
Wed Mar 1 11:15:55 EST 2000


In reply to the message of Samuel Nicolary sent on Mar 1 (see below) :

According to the Python tutorial by GVR, in section 6.1.2 :

Normally, you don't need to do anything to create the spam.pyc file.
Whenever spam.py is successfully compiled, an attempt is made to write the
compiled version to spam.pyc. It is not an error if this attempt fails; if
for any reason the file is not written completely, the resulting spam.pyc
file will be recognized as invalid and thus ignored later. The contents of
the spam.pyc file is platform independent, so a Python module directory
can be shared by machines of different architectures. 
[...]
When a script is run by giving its name on the command line, the bytecode
for the script is never written to a .pyc or .pyo file. Thus, the startup
time of a script may be reduced by moving most of its code to a module and
having a small bootstrap script that imports that module. 

--
Life is not fair
But the root password helps
--

Gregoire Welraeds
greg at perceval.be
Perceval Development team
-------------------------------------------------------------------------------
Perceval Technologies sa/nv	Tel: +32-2-6409194		
Rue Tenbosch, 9			Fax: +32-2-6403154		
B-1000 Brussels			general information:   info at perceval.net
BELGIUM				technical information: helpdesk at perceval.net
URL: http://www.perceval.be/
-------------------------------------------------------------------------------

On Wed, 1 Mar 2000, Samuel Nicolary wrote:

> Date: Wed, 1 Mar 2000 10:42:04 -0500
> From: Samuel Nicolary <sdn at gse.upenn.edu>
> To: python-list at python.org
> Newsgroups: comp.lang.python
> Subject: no pyc file
> 
> Is there a reason why a pyc file would not be created upon execution of my
> script?
> 
> It is a simple text parcing application.
> 
> Thanks
> --
> Sam Nicolary
> Systems Admin - SOS - ISC
> University of Pennsylvania - Graduate School of Education
> 3700 Walnut Street
> Philadelphia, PA 19104
> (215) 573-5423 Fax - (215) 573-2119
> 
> 
> -- 
> http://www.python.org/mailman/listinfo/python-list
> 
> 





More information about the Python-list mailing list