[Python-bugs-list] [ python-Bugs-496549 ] -Qnew and in-place division "/="

noreply@sourceforge.net noreply@sourceforge.net
Mon, 24 Dec 2001 13:02:19 -0800


Bugs item #496549, was opened at 2001-12-24 13:02
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=496549&group_id=5470

Category: Parser/Compiler
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Bruce Sherwood (bsherwood)
Assigned to: Nobody/Anonymous (nobody)
Summary: -Qnew and in-place division "/="

Initial Comment:
(Closed bug report #488514 may be related to this bug, 
as it mentions some tests failing.)

If I invoke Python 2.2 with -Qnew, there is the 
following failure with in-place division:

print 5/2
a = 5
a /= 2
print a  # gives 2, should give 2.5

If I insert an explicit "from __future_ import 
division", the program works correctly.

Bruce Sherwood



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=496549&group_id=5470