More changes to example notebooks for Python 3 compatibility

This commit is contained in:
Thomas Kluyver 2012-11-28 17:57:40 +00:00 committed by Brian Granger
parent 83406924f1
commit 4288d5dcc5

View File

@ -52,7 +52,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
"print a"
"print(a)"
],
"language": "python",
"metadata": {},
@ -120,7 +120,7 @@
"import sys\n",
"from ctypes import CDLL\n",
"# This will crash a Linux or Mac system; equivalent calls can be made on Windows\n",
"dll = 'dylib' if sys.platform == 'darwin' else '.so.6'\n",
"dll = 'dylib' if sys.platform == 'darwin' else 'so.6'\n",
"libc = CDLL(\"libc.%s\" % dll) \n",
"libc.time(-1) # BOOM!!"
],
@ -324,7 +324,7 @@
"input": [
">>> the_world_is_flat = 1\n",
">>> if the_world_is_flat:\n",
"... print \"Be careful not to fall off!\""
"... print(\"Be careful not to fall off!\")"
],
"language": "python",
"metadata": {},