Commit ee079c03 authored by Kipp Cannon's avatar Kipp Cannon

fix some examples in the documentation

parent c10574d4
......@@ -277,16 +277,16 @@ class segment(tuple):
>>> segment("AAA Towing", "York University") & segment("Pool", "Zoo")
segment('Pool', 'York University')
>>> x = [0, 1] # a list
>>> segment(x)
>>> y = segment(x)
>>> y
segment(0, 1)
>>> y = segment(0, 1)
>>> y == x
True
False
>>> y is x
False
>>> x in y
True
>>> z = {x: ["/path/to/file1", "/path/to/file2"]}
>>> z = {y: ["/path/to/file1", "/path/to/file2"]}
>>> y in z
True
>>> z[y]
......
......@@ -530,14 +530,14 @@ PyTypeObject segments_Segment_Type = {
">>> segment(\"AAA Towing\", \"York University\") & segment(\"Pool\", \"Zoo\")\n" \
"segment('Pool', 'York University')\n" \
">>> x = [0, 1] # a list\n" \
">>> segment(x)\n" \
">>> y = segment(x)\n" \
">>> y\n" \
"segment(0, 1)\n" \
">>> y = segment(0, 1)\n" \
">>> y == x\n" \
"True\n" \
"False\n" \
">>> y is x\n" \
"False\n" \
">>> z = {x: [\"/path/to/file1\", \"/path/to/file2\"]}\n" \
">>> z = {y: [\"/path/to/file1\", \"/path/to/file2\"]}\n" \
">>> y in z\n" \
"True\n" \
">>> z[y]\n" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment