Skip to content

Latest commit

 

History

History

ep055

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Today I talk about the future module (not to be confused with the future module!) and how it affects execution in python.

Interactive examples

Python

# python2
2 / 3

# python3
2 / 3
2 // 3

# python2
from __future__ import division

2 / 3

type('')

from __future__ import unicode_literals

type('')

# python3
5 <> 4

from __future__ import barry_as_FLUFL

5 <> 4

__doc__

Bash

python t.py

python -m pydoc __future__

python -i t.py