[Tutor] A slight bug in IDLE

Jim Mooney cybervigilante at gmail.com
Sat Jul 13 10:39:37 CEST 2013


On 13 July 2013 00:54, eryksun <eryksun at gmail.com> wrote:


> A __future__ import modifies compilation of the current module.
>

Hmm, so if I import a module that uses truncated division, that's what I
get, even though I imported __future__ division. OTOH, a non-future import
will be used by a module imported after it. That's a gotcha to avoid ;')
-- 
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130713/4cfd7605/attachment.html>


More information about the Tutor mailing list