Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Whats python (background app)?

Whats python (background app)?
Thread Tools
digiology2
Forum Regular
Join Date: Jan 2004
Status: Offline
Reply With Quote
Jun 1, 2004, 10:44 AM
 
I noticed some load on my cpu when surfing the net and I noticed a program 'python' listed six times when I typed 'top' into the terminal. They stopped using my cpu to some degree after a few second.

What is this? It doesn't show up on the force quit window so it must be hidden?
     
wulf
Grizzled Veteran
Join Date: Sep 2000
Location: London, UK
Status: Offline
Reply With Quote
Jun 1, 2004, 11:08 AM
 
     
RevEvs
Mac Elite
Join Date: Feb 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
Jun 1, 2004, 11:11 AM
 
Are yu running any BitTorrent apps? A few of them are actually frontends to a python bittorrent client
I free'd my mind... now it won't come back.
     
Millennium
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jun 1, 2004, 11:20 AM
 
Python is a programming language. Unlike apps written in C++ or Objective-C (most Carbon and Cocoa apps fall into this category), a single Python app can usually be run on many different platforms, not just Macs, as long as the author is careful about it. It does this by running each of these programs inside an interpreter, a special app which reads the source code and then tells the computer what to do based on what it finds.

There is one slight problem with this; because each program runs inside another program, it is the interpreter which shows up in top, not the program itself. The interpreter for Python is, appropriately enough, called python. That is what you are seeing. OSX is smart enough to display the actual program's name inside its own process windows, but top can't do that.

The most popular Python app for OSX right now is the official BitTorrent client; are you running that, by any chance?
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
digiology2  (op)
Forum Regular
Join Date: Jan 2004
Status: Offline
Reply With Quote
Jun 2, 2004, 01:43 PM
 
Yeah I was running Tomato Torrent, it looks like an interesting language to learn...

Thanks
     
Millennium
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jun 2, 2004, 07:02 PM
 
Originally posted by digiology2:
Yeah I was running Tomato Torrent, it looks like an interesting language to learn...
As languages go, it's actually quite nice. Some people find the whitespace issue to be annoying, but I like it a lot, to be honest.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
h00ligan
Forum Regular
Join Date: Jul 2003
Status: Offline
Reply With Quote
Jun 3, 2004, 12:40 AM
 
yah python is also a great starting language, as it can sort of gently lead you in to more hardcore languages.
-= H00ligan =-

1.33 GHz 12" | 60 gig 7200 rpm drive | 1.25 Gigs of ram
amd 64 3000+ eMachines m6805 (arima lappy) | 60 gig | 512 megs | almost 3400 3dMark03 and it was only $1250 :)
     
kcm3
Junior Member
Join Date: Apr 2000
Location: Durham, NC
Status: Offline
Reply With Quote
Jun 3, 2004, 08:07 AM
 
The whitespace can be annoying, but it pretty much forces your code to be visually pleasing, which is nice for those of us who might otherwise be too lazy. It's kind of like your mom forcing you to make your bed as a kid. It's a pain in the butt, and you don't really see the point, because it's YOUR room, but then when there's company over, you sure are glad you did it.
     
Richard Edgar
Dedicated MacNNer
Join Date: Sep 2002
Status: Offline
Reply With Quote
Jun 3, 2004, 09:22 AM
 
Unlike apps written in C++ or Objective-C (most Carbon and Cocoa apps fall into this category), a single Python app can usually be run on many different platforms, not just Macs, as long as the author is careful about it
As a general rule, if you stick to the language standard, your program will run on quite a variety of systems. This obviously doesn't apply to platform-specific languages, such as AppleScript, but neither C++ nor Objective-C fall into this category.
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 3, 2004, 03:19 PM
 
Originally posted by Richard Edgar:
As a general rule, if you stick to the language standard, your program will run on quite a variety of systems. This obviously doesn't apply to platform-specific languages, such as AppleScript, but neither C++ nor Objective-C fall into this category.
You have to recompile to make a C++ or Objective-C app work on different system; with Python, the same app file can be used everywhere. I think that's the distinction that was being made.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Richard Edgar
Dedicated MacNNer
Join Date: Sep 2002
Status: Offline
Reply With Quote
Jun 4, 2004, 05:53 AM
 
You have to recompile to make a C++ or Objective-C app work on different system; with Python, the same app file can be used everywhere. I think that's the distinction that was being made
If so, it's a remarkably poor distinction, since with Python you'll have to change the interpreter.
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 4, 2004, 06:46 AM
 
Originally posted by Richard Edgar:
If so, it's a remarkably poor distinction, since with Python you'll have to change the interpreter.
Unless I'm very mixed up on the matter, pretty much any system with a working Python interpreter should be able to run pretty much any given Python app. The same is not true of C++ apps, which can only be compiled if you have the source.

I'm not arguing that Python is better because of this; just that it does have a certain inherent portability that you don't find in languages that compile to machine code.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Millennium
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jun 4, 2004, 08:44 AM
 
Originally posted by Chuckit:
Unless I'm very mixed up on the matter, pretty much any system with a working Python interpreter should be able to run pretty much any given Python app. The same is not true of C++ apps, which can only be compiled if you have the source.

I'm not arguing that Python is better because of this; just that it does have a certain inherent portability that you don't find in languages that compile to machine code.
I think his point is that you still need a platform-specific runtime, and is trying to say that the apps are "not really portable" because of this. I disagree, but I think that's his argument.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Richard Edgar
Dedicated MacNNer
Join Date: Sep 2002
Status: Offline
Reply With Quote
Jun 4, 2004, 10:26 AM
 
I think his point is that you still need a platform-specific runtime, and is trying to say that the apps are "not really portable" because of this
You think incorrectly. The point is that, if you confine yourself to ISO/ANSI standard C++ (or just about any language) it will compile and run more or less anywhere. That is why language standards exist.
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 4, 2004, 12:40 PM
 
Originally posted by Richard Edgar:
You think incorrectly. The point is that, if you confine yourself to ISO/ANSI standard C++ (or just about any language) it will compile and run more or less anywhere. That is why language standards exist.
But the point is that the same "executable" (I know I'm using the term a little loosely here) can run on any system regardless of whether or not the app was compiled for it. For many people, that's one of the big draws of languages like Java and Python over compiled languages like C and Fortran.
( Last edited by Chuckit; Jun 4, 2004 at 12:48 PM. )
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Richard Edgar
Dedicated MacNNer
Join Date: Sep 2002
Status: Offline
Reply With Quote
Jun 4, 2004, 12:49 PM
 
But the point is that the same "executable" (I know I'm using the term a little loosely here) can run on any system regardless of whether or not the app was compiled for it
So, Python is more portable because you only need an interpreter written for your system, whereas C++ (or many other languages) require a compiler written for your system? We appear to be plumbing new depths of illogic here.
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 4, 2004, 12:57 PM
 
Originally posted by Richard Edgar:
So, Python is more portable because you only need an interpreter written for your system, whereas C++ (or many other languages) require a compiler written for your system? We appear to be plumbing new depths of illogic here.
If I send you an executable I made using ANSI C on Gentoo Linux on an x86 machine, do you really think it's going to work on your Mac OS X computer just because you have a compiler?
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Richard Edgar
Dedicated MacNNer
Join Date: Sep 2002
Status: Offline
Reply With Quote
Jun 4, 2004, 01:08 PM
 
If I send you an executable I made using ANSI C on Gentoo Linux on an x86 machine, do you really think it's going to work on your Mac OS X computer just because you have a compiler?
Of course not. But the executable isn't the source code, is it? What's the material difference between a C source file and a python script?
     
Millennium
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jun 4, 2004, 01:12 PM
 
Originally posted by Richard Edgar:
You think incorrectly. The point is that, if you confine yourself to ISO/ANSI standard C++ (or just about any language) it will compile and run more or less anywhere. That is why language standards exist.
Point taken, but your app will also generally be severely limited in terms of functionality (particularly with ISO/ANSI standard C++). Non-standard tools exist for every OS out there; they're practically a necessary fact of life. The fact is that most interpreted languages have managed to bridge many of these issues, allowing for far greater functionality while remaining portable.

Of course, they also eliminate the compilation step, which is itself quite a plus.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 4, 2004, 03:09 PM
 
Originally posted by Richard Edgar:
Of course not. But the executable isn't the source code, is it? What's the material difference between a C source file and a python script?
Well, a Python script is actually executable. Besides that, though, it's possible to distribute Python executables as bytecode, much like Java, so Python app != script.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 06:14 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,