Skip to content

Instantly share code, notes, and snippets.

@EdisonChendi
Created November 1, 2016 14:13
Show Gist options
  • Save EdisonChendi/f913d8ce65f9223ff041d17defe77ded to your computer and use it in GitHub Desktop.
Save EdisonChendi/f913d8ce65f9223ff041d17defe77ded to your computer and use it in GitHub Desktop.
# coding=utf-8
# py2
from __future__ import division
import types
# prefer isinstance to type
assert isinstance(10/2, types.FloatType)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment