Bug in the python console in gedit

Bug #104772 reported by Xipietotec
4
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Medium
gedit (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

this is an interesting bug, it may be common to all gedit, I don't know.

so if you type 1/2 in the console you get the return of:

>>> 0

now, if you then type from __future__ import division

and then type 1/2 you still get:

>>> 0

this should not be happening. Try doing the same thing in command line python console or IDLE, or what have you.

you should be getting 0.5, because you're changing the division type.

Revision history for this message
xtsbdu3reyrbrmroezob (xtsbdu3reyrbrmroezob) wrote :

I can confirm this in gedit 2.18.0-0ubuntu2..

Changed in gedit:
status: Unconfirmed → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: http://bugzilla.gnome.org/show_bug.cgi?id=428999

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Low
Changed in gedit:
status: Unknown → Unconfirmed
Changed in gedit:
status: Confirmed → Triaged
Changed in gedit:
importance: Unknown → Medium
Changed in gedit:
status: New → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

that's fixed with python3 and the current version

Changed in gedit (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.