integer division gives different result in CPython 2.7 and Spyder
Question: I have encountered a quite weird case in Python.

In Spyder:

    
    
    >>> 274/365
    0.7506849315068493
    >>> sys.version
    '2.7.6 (default, Dec 20 2013, 14:08:04) [MSC v.1700 64 bit (AMD64)]'
    >>> 
    

However in command line it returns 0.

    
    
    >>> 274/365
    0
    >>> 274/365 * 1.0
    0.0
    >>> 274/365.0
    0.7506849315068493
    

Same version of Python.

Could anyone tell what is wrong here? Do I need to put some other options
ahead of the program? This is really nauseous since my code gave weird results
if I call it through command line..


Answer: Spyder executes `from __future__ import division` in its console.

This is discussed at
<https://code.google.com/p/spyderlib/issues/detail?id=1646> \- it looks like
this will be deactivated by default to avoid confusion.

