After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 428999 - Bug in the python console in gedit
Bug in the python console in gedit
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
2.20.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-12 13:55 UTC by Sebastien Bacher
Modified: 2015-04-14 10:24 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Sebastien Bacher 2007-04-12 13:55:09 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/104772

"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."
Comment 1 Sébastien Wilmet 2015-04-14 10:24:29 UTC
The Python version used by gedit is now Python 3, so this bug is fixed.