[issue14825] Interactive Shell vs Executed code

Marcelo Delgado report at bugs.python.org
Wed May 16 08:08:44 CEST 2012


New submission from Marcelo Delgado <mardelmi at gmail.com>:

I have found inconsistency between running this code in the interactive shell and running it from a file:

Int. Shell:
n**0 ## n is a negative number
result: -1

File:
n**0 ## n is a negative number
result: 1

I am fairly new to Python, so I don't know what result should be the correct one, but if thit IS a mistake i would prefer the result of the Int. Shell :)

----------
components: Regular Expressions
messages: 160806
nosy: Marcelo.Delgado, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: Interactive Shell vs Executed code
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14825>
_______________________________________


More information about the Python-bugs-list mailing list