LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 06: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, 08:59 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
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, 05:34 AM   #3
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Original Poster
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, 10:28 AM   #4
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
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, 02:43 PM   #5
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:02 PM
installing python library's (Python Numeric) Four Linux - Newbie 1 10-16-2005 03:31 PM
Where is the Python Interpreter? Chomper Programming 8 01-15-2005 10:56 PM
Weird Python Error mrgrieves Linux - Software 3 07-09-2004 11:04 PM
install python 2.3 ,necssary to remove python 2.2 ngan_yine Linux - Newbie 7 12-28-2003 05:07 PM


All times are GMT -5. The time now is 12:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration