LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2003, 05:49 AM   #1
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Does Python interpreter have weird delay?


Trying to learn Python and sometimes something seems not to work when I run a program item through the thing you get when you type 'Python' at the command line. But the next time the same thing is tried it works.

This is not due to not stopping and restarting the said Python thing.

Does it sometimes not update the testprogram.pyc binary thing even though testprogram.py has changed; or something like that.

This suspicion of the thing is very destabilising if you are trying to learn.

Thanks any help.
 
Old 11-06-2003, 07:59 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
It doesn't automatically update the binary pyc file.

There are things you can import like java or oracle that take forever to get loaded. They are actually stored in shared libraries, so depnding on where the library is in your path, and how many dpedencies there are, life can slow.

Our Jython apps (python running java) take about thirty seconds to start on an HP box with 24 cpus that is at least 100 times faster than any PC.
 
Old 11-07-2003, 04:34 AM   #3
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Thanks.

I take it then I am not imagining things when the same program, which had previously given errors, runs .
 
Old 11-07-2003, 09:28 AM   #4
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
import failures or shared library problems are PATH problems, not code problems.

The other thing - whenever you want python code to be run by different users or on different machines always try to use just standard classes, and make sure everybody's PATH starts out pointing to the same directories. Anything else is a formula for disaster.
 
Old 11-12-2003, 01:43 PM   #5
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Thanks your help. Will have to dwell on it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Fedora 2 04-23-2009 07:02 PM
installing python library's (Python Numeric) Four Linux - Newbie 1 10-16-2005 02:31 PM
Where is the Python Interpreter? Chomper Programming 8 01-15-2005 09:56 PM
Weird Python Error mrgrieves Linux - Software 3 07-09-2004 10:04 PM
install python 2.3 ,necssary to remove python 2.2 ngan_yine Linux - Newbie 7 12-28-2003 04:07 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration