Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTART line with no output #67009

Closed
sukari mannequin opened this issue Nov 8, 2014 · 4 comments
Closed

RESTART line with no output #67009

sukari mannequin opened this issue Nov 8, 2014 · 4 comments
Assignees
Labels
docs Documentation in the Doc dir topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@sukari
Copy link
Mannequin

sukari mannequin commented Nov 8, 2014

BPO 22820
Nosy @terryjreedy, @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/terryjreedy'
closed_at = <Date 2015-09-24.05:42:59.579>
created_at = <Date 2014-11-08.11:23:39.859>
labels = ['expert-IDLE', 'type-bug', 'docs']
title = 'RESTART line with no output'
updated_at = <Date 2015-09-24.05:42:59.527>
user = 'https://bugs.python.org/sukari'

bugs.python.org fields:

activity = <Date 2015-09-24.05:42:59.527>
actor = 'terry.reedy'
assignee = 'terry.reedy'
closed = True
closed_date = <Date 2015-09-24.05:42:59.579>
closer = 'terry.reedy'
components = ['Documentation', 'IDLE']
creation = <Date 2014-11-08.11:23:39.859>
creator = 'sukari'
dependencies = []
files = []
hgrepos = []
issue_num = 22820
keywords = []
message_count = 4.0
messages = ['230845', '230853', '251485', '251486']
nosy_count = 5.0
nosy_names = ['terry.reedy', 'r.david.murray', 'docs@python', 'python-dev', 'sukari']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue22820'
versions = ['Python 2.7', 'Python 3.4', 'Python 3.5', 'Python 3.6']

@sukari
Copy link
Mannequin Author

sukari mannequin commented Nov 8, 2014

Whenever i run my code on Python IDLE editor,
the output is as follows:

============================== RESTART================================

I am a newbie,it seems i cannot move from this point .
This is my code:
def convert_to_celsius(fahrenheit):
return (fahrenheit - 32) * 5.0 / 9.0
convert_to_celsius(80)

@sukari sukari mannequin added type-crash A hard crash of the interpreter, possibly with a core dump topic-IDLE labels Nov 8, 2014
@bitdancer
Copy link
Member

Your code doesn't produce any output (ie: there are no print calls). I don't use Idle myself, but I'm guessing that is why you don't see anything after the restart line. If that is the case, do you see a place in whatever help or documentation you have read that it would be appropriate to mention this? (The distinction is that the REPL window automatically prints the return value of whatever you type in, whereas in a program you get output only if you do the print yourself).

@bitdancer bitdancer added the docs Documentation in the Doc dir label Nov 8, 2014
@bitdancer bitdancer added type-bug An unexpected behavior, bug, or error and removed type-crash A hard crash of the interpreter, possibly with a core dump labels Nov 8, 2014
@python-dev
Copy link
Mannequin

python-dev mannequin commented Sep 24, 2015

New changeset e7bf0727f7df by Terry Jan Reedy in branch '2.7':
Issue bpo-22820: Explain need for *print* when running file from Idle editor.
https://hg.python.org/cpython/rev/e7bf0727f7df

New changeset 824cb25448ab by Terry Jan Reedy in branch '3.4':
Issue bpo-22820: Explain need for *print* when running file from Idle editor.
https://hg.python.org/cpython/rev/824cb25448ab

@terryjreedy
Copy link
Member

For anyone who reads the doc, the added explanation should help.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir topic-IDLE type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants