473,320 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Some error messages in Python are ugly

This really looks ugly for an error message:

[1]+ Stopped python
Please explain to me the role of the '+' sign. And why is there such a
gap between 'Stopped' and 'python'?
Jun 27 '08 #1
3 1454
This is not a Python error, this is a bash message that appears when
you press ctrl+z and put the application in the background. Execute fg
to return the app to the foreground.

2008/5/11 <wx********@gmail.com>:
This really looks ugly for an error message:

[1]+ Stopped python
Please explain to me the role of the '+' sign. And why is there such a
gap between 'Stopped' and 'python'?
Jun 27 '08 #2
On Sun, 11 May 2008 01:10:19 -0700, wxPythoner wrote:
This really looks ugly for an error message:

[1]+ Stopped python
It's neither an error message nor does it come from Python. It's a
message from your shell about job control. Seems you have stopped the
running process, which happens to be Python, by pressing <ctrl>+<zor
<ctrl>-<yfor example.
Please explain to me the role of the '+' sign.
Refer to the manual of your shell. I guess it says, that the stopped
process was/is the current job, i.e. the one commands like ``fg`` or
``bg`` operate on if you leave out the argument.

Ciao,
Marc 'BlackJack' Rintsch
Jun 27 '08 #3
On May 11, 3:10 am, wxPytho...@gmail.com wrote:
This really looks ugly for an error message:

[1]+ Stopped python

Please explain to me the role of the '+' sign. And why is there such a
gap between 'Stopped' and 'python'?
I suspect you were running the python command line in a Linux shell
such as bash, and pressed Control-Z.

The message you list above is NOT an error message from Python, but
rather an informational message from the Linux shell. The short answer
is to type "fg" and press Enter twice, and Python will resume
executing.

Here's the long answer.

This message from the Linux shell is telling you that the python
process (application) has been stopped, and is no longer executing.
"[1]" tells you the job number; Linux supports multiple stopped jobs,
and gives each a number to make it easy for you to give them
commands. "+" tells you that this is the "active job"; it's at the
top of the queue, and is the job that will respond to your job-related
commands by default (i.e., if you don't supply a job number).

You can list all jobs in the queue by typing "jobs" at the Linux shell
prompt. You can begin running the "active job" again by typing fg
(which means "foreground"); you could also switch the "active job" to
running in the background by typing bg, although that wouldn't be
useful with the Python shell.

You can learn more about managing jobs from the Python shell here:
http://www.slackbasics.org/html/chap-procmgmt.html

Great question!
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Jeff Wagner | last post by:
I am in the process of learning Python (obsessively so). I've been through a few tutorials and read a Python book that was lent to me. I am now trying to put what I've learned to use by rewriting...
16
by: Michele Simionato | last post by:
I have read with interest the recent thread about closures. The funny thing is that the authors are arguing one against the other but I actually agree with all of them and I have a proposal that...
0
by: beliavsky | last post by:
I have noticed a quirk of Python error messages that I think should be changed. The code x = 1 print x,\ y produces output
3
by: Rakesh | last post by:
In my Python code fragment, I want to write a code fragment such that the minimum element of a tuple is subtracted from all the elements of a given tuple. When I execute the following python...
14
by: kosuke | last post by:
I keep getting the following error/warning message when using the python based program getmail4: /usr/lib/python2.3/optparse.py:668: FutureWarning: %u/%o/%x/%X of negative int will return a...
193
by: Michael B. | last post by:
I was just thinking about this, specifically wondering if there's any features that the C specification currently lacks, and which may be included in some future standardization. Of course, I...
3
by: Wolfram | last post by:
I have a problem with displaying errors in an embedded situation. The "main program" I want to embed Python into is a windows, MFC, non-console, C++ application. My issue is that I have not been...
206
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a...
5
by: Daniel Mahoney | last post by:
I'm working on an app that's processing Usenet messages. I'm making a connection to my NNTP feed and grabbing the headers for the groups I'm interested in, saving the info to disk, and doing some...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.