ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.