|
@ -5,15 +5,15 @@ const DIAGRAM_1_A = |
|
|
'| MyClass > MyMetaClass |\n'; |
|
|
'| MyClass > MyMetaClass |\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_1_B = |
|
|
const DIAGRAM_1_B = |
|
|
'┏━━━━━━━━━┯━━━━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ Classes │ Metaclasses ┃\n' + |
|
|
|
|
|
'┠─────────┼─────────────┨\n' + |
|
|
|
|
|
'┃ MyClass → MyMetaClass ┃\n' + |
|
|
|
|
|
'┃ │ ↓ ┃\n' + |
|
|
|
|
|
'┃ object ───→ type ←╮ ┃\n' + |
|
|
|
|
|
'┃ │ ↑ ╰───╯ ┃\n' + |
|
|
|
|
|
'┃ str ───────╯ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━┷━━━━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
'┏━━━━━━━━━━━━━┯━━━━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ Classes │ Metaclasses ┃\n' + |
|
|
|
|
|
'┠─────────────┼─────────────┨\n' + |
|
|
|
|
|
'┃ MyClass ──→ MyMetaClass ┃\n' + |
|
|
|
|
|
'┃ │ ↓ ┃\n' + |
|
|
|
|
|
'┃ object ─────→ type ←╮ ┃\n' + |
|
|
|
|
|
'┃ │ ↑ ╰───╯ ┃\n' + |
|
|
|
|
|
'┃ str ─────────╯ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━━━━━┷━━━━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_2_A = |
|
|
const DIAGRAM_2_A = |
|
|
'+---------+-------------+\n' + |
|
|
'+---------+-------------+\n' + |
|
@ -22,15 +22,15 @@ const DIAGRAM_2_A = |
|
|
'| MyClass | MyMetaClass |\n'; |
|
|
'| MyClass | MyMetaClass |\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_2_B = |
|
|
const DIAGRAM_2_B = |
|
|
'┏━━━━━━━━━┯━━━━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ Classes │ Metaclasses ┃\n' + |
|
|
|
|
|
'┠─────────┼─────────────┨\n' + |
|
|
|
|
|
'┃ MyClass │ MyMetaClass ┃\n' + |
|
|
|
|
|
'┃ ↓ │ ↓ ┃\n' + |
|
|
|
|
|
'┃ object ←─── type ┃\n' + |
|
|
|
|
|
'┃ ↑ │ ┃\n' + |
|
|
|
|
|
'┃ str │ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━┷━━━━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
'┏━━━━━━━━━━━━━┯━━━━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ Classes │ Metaclasses ┃\n' + |
|
|
|
|
|
'┠─────────────┼─────────────┨\n' + |
|
|
|
|
|
'┃ MyClass │ MyMetaClass ┃\n' + |
|
|
|
|
|
'┃ ↓ │ ↓ ┃\n' + |
|
|
|
|
|
'┃ object ←───── type ┃\n' + |
|
|
|
|
|
'┃ ↑ │ ┃\n' + |
|
|
|
|
|
'┃ str │ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━━━━━┷━━━━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_3_A = |
|
|
const DIAGRAM_3_A = |
|
|
'+------------------+----------+------------+----------+\n' + |
|
|
'+------------------+----------+------------+----------+\n' + |
|
@ -38,13 +38,13 @@ const DIAGRAM_3_A = |
|
|
'+------------------+----------+------------+----------+\n'; |
|
|
'+------------------+----------+------------+----------+\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_3_B = |
|
|
const DIAGRAM_3_B = |
|
|
'┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ │ Sequence │ Collection │ Iterable ┃\n' + |
|
|
|
|
|
'┠──────────────────┼──────────┼────────────┼──────────┨\n' + |
|
|
|
|
|
'┃ list, range, str │ ✓ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ dict, set │ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ iter │ │ │ ✓ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
'┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ │ Sequence │ Collection │ Iterable ┃\n' + |
|
|
|
|
|
'┠──────────────────┼────────────┼────────────┼────────────┨\n' + |
|
|
|
|
|
'┃ list, range, str │ ✓ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ dict, set │ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ iter │ │ │ ✓ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_4_A = |
|
|
const DIAGRAM_4_A = |
|
|
'+--------------------+----------+----------+--------+---------+--------+\n' + |
|
|
'+--------------------+----------+----------+--------+---------+--------+\n' + |
|
@ -52,15 +52,15 @@ const DIAGRAM_4_A = |
|
|
'+--------------------+----------+----------+--------+---------+--------+\n'; |
|
|
'+--------------------+----------+----------+--------+---------+--------+\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_4_B = |
|
|
const DIAGRAM_4_B = |
|
|
'┏━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━┯━━━━━━━━━┯━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ │ Integral │ Rational │ Real │ Complex │ Number ┃\n' + |
|
|
|
|
|
'┠────────────────────┼──────────┼──────────┼────────┼─────────┼────────┨\n' + |
|
|
|
|
|
'┃ int │ ✓ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ fractions.Fraction │ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ float │ │ │ ✓ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ complex │ │ │ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ decimal.Decimal │ │ │ │ │ ✓ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━┷━━━━━━━━━┷━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
'┏━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ │ Integral │ Rational │ Real │ Complex │ Number ┃\n' + |
|
|
|
|
|
'┠────────────────────┼──────────┼──────────┼──────────┼──────────┼──────────┨\n' + |
|
|
|
|
|
'┃ int │ ✓ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ fractions.Fraction │ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ float │ │ │ ✓ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ complex │ │ │ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ decimal.Decimal │ │ │ │ │ ✓ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_5_A = |
|
|
const DIAGRAM_5_A = |
|
|
"+----------------+----------------+---------------+----------------+-----------------+\n" + |
|
|
"+----------------+----------------+---------------+----------------+-----------------+\n" + |
|
@ -68,18 +68,18 @@ const DIAGRAM_5_A = |
|
|
"+----------------+----------------+---------------+----------------+-----------------+\n"; |
|
|
"+----------------+----------------+---------------+----------------+-----------------+\n"; |
|
|
|
|
|
|
|
|
const DIAGRAM_5_B = |
|
|
const DIAGRAM_5_B = |
|
|
"┏━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┓\n" + |
|
|
|
|
|
"┃ │ {<float>} │ {<float>:f} │ {<float>:e} │ {<float>:%} ┃\n" + |
|
|
|
|
|
"┠────────────────┼────────────────┼───────────────┼────────────────┼─────────────────┨\n" + |
|
|
|
|
|
"┃ 0.000056789 │ '5.6789e-05' │ '0.000057' │ '5.678900e-05' │ '0.005679%' ┃\n" + |
|
|
|
|
|
"┃ 0.00056789 │ '0.00056789' │ '0.000568' │ '5.678900e-04' │ '0.056789%' ┃\n" + |
|
|
|
|
|
"┃ 0.0056789 │ '0.0056789' │ '0.005679' │ '5.678900e-03' │ '0.567890%' ┃\n" + |
|
|
|
|
|
"┃ 0.056789 │ '0.056789' │ '0.056789' │ '5.678900e-02' │ '5.678900%' ┃\n" + |
|
|
|
|
|
"┃ 0.56789 │ '0.56789' │ '0.567890' │ '5.678900e-01' │ '56.789000%' ┃\n" + |
|
|
|
|
|
"┃ 5.6789 │ '5.6789' │ '5.678900' │ '5.678900e+00' │ '567.890000%' ┃\n" + |
|
|
|
|
|
"┃ 56.789 │ '56.789' │ '56.789000' │ '5.678900e+01' │ '5678.900000%' ┃\n" + |
|
|
|
|
|
"┃ 567.89 │ '567.89' │ '567.890000' │ '5.678900e+02' │ '56789.000000%' ┃\n" + |
|
|
|
|
|
"┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┛\n"; |
|
|
|
|
|
|
|
|
"┏━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┓\n" + |
|
|
|
|
|
"┃ │ {<float>} │ {<float>:f} │ {<float>:e} │ {<float>:%} ┃\n" + |
|
|
|
|
|
"┠────────────────┼────────────────┼─────────────────┼─────────────────┼─────────────────┨\n" + |
|
|
|
|
|
"┃ 0.000056789 │ '5.6789e-05' │ '0.000057' │ '5.678900e-05' │ '0.005679%' ┃\n" + |
|
|
|
|
|
"┃ 0.00056789 │ '0.00056789' │ '0.000568' │ '5.678900e-04' │ '0.056789%' ┃\n" + |
|
|
|
|
|
"┃ 0.0056789 │ '0.0056789' │ '0.005679' │ '5.678900e-03' │ '0.567890%' ┃\n" + |
|
|
|
|
|
"┃ 0.056789 │ '0.056789' │ '0.056789' │ '5.678900e-02' │ '5.678900%' ┃\n" + |
|
|
|
|
|
"┃ 0.56789 │ '0.56789' │ '0.567890' │ '5.678900e-01' │ '56.789000%' ┃\n" + |
|
|
|
|
|
"┃ 5.6789 │ '5.6789' │ '5.678900' │ '5.678900e+00' │ '567.890000%' ┃\n" + |
|
|
|
|
|
"┃ 56.789 │ '56.789' │ '56.789000' │ '5.678900e+01' │ '5678.900000%' ┃\n" + |
|
|
|
|
|
"┃ 567.89 │ '567.89' │ '567.890000' │ '5.678900e+02' │ '56789.000000%' ┃\n" + |
|
|
|
|
|
"┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┛\n"; |
|
|
|
|
|
|
|
|
const DIAGRAM_6_A = |
|
|
const DIAGRAM_6_A = |
|
|
"+----------------+----------------+---------------+----------------+-----------------+\n" + |
|
|
"+----------------+----------------+---------------+----------------+-----------------+\n" + |
|
@ -87,18 +87,18 @@ const DIAGRAM_6_A = |
|
|
"+----------------+----------------+---------------+----------------+-----------------+\n"; |
|
|
"+----------------+----------------+---------------+----------------+-----------------+\n"; |
|
|
|
|
|
|
|
|
const DIAGRAM_6_B = |
|
|
const DIAGRAM_6_B = |
|
|
"┏━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┓\n" + |
|
|
|
|
|
"┃ │ {<float>:.2} │ {<float>:.2f} │ {<float>:.2e} │ {<float>:.2%} ┃\n" + |
|
|
|
|
|
"┠────────────────┼────────────────┼───────────────┼────────────────┼─────────────────┨\n" + |
|
|
|
|
|
"┃ 0.000056789 │ '5.7e-05' │ '0.00' │ '5.68e-05' │ '0.01%' ┃\n" + |
|
|
|
|
|
"┃ 0.00056789 │ '0.00057' │ '0.00' │ '5.68e-04' │ '0.06%' ┃\n" + |
|
|
|
|
|
"┃ 0.0056789 │ '0.0057' │ '0.01' │ '5.68e-03' │ '0.57%' ┃\n" + |
|
|
|
|
|
"┃ 0.056789 │ '0.057' │ '0.06' │ '5.68e-02' │ '5.68%' ┃\n" + |
|
|
|
|
|
"┃ 0.56789 │ '0.57' │ '0.57' │ '5.68e-01' │ '56.79%' ┃\n" + |
|
|
|
|
|
"┃ 5.6789 │ '5.7' │ '5.68' │ '5.68e+00' │ '567.89%' ┃\n" + |
|
|
|
|
|
"┃ 56.789 │ '5.7e+01' │ '56.79' │ '5.68e+01' │ '5678.90%' ┃\n" + |
|
|
|
|
|
"┃ 567.89 │ '5.7e+02' │ '567.89' │ '5.68e+02' │ '56789.00%' ┃\n" + |
|
|
|
|
|
"┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┛\n"; |
|
|
|
|
|
|
|
|
"┏━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┓\n" + |
|
|
|
|
|
"┃ │ {<float>:.2} │ {<float>:.2f} │ {<float>:.2e} │ {<float>:.2%} ┃\n" + |
|
|
|
|
|
"┠────────────────┼────────────────┼─────────────────┼─────────────────┼─────────────────┨\n" + |
|
|
|
|
|
"┃ 0.000056789 │ '5.7e-05' │ '0.00' │ '5.68e-05' │ '0.01%' ┃\n" + |
|
|
|
|
|
"┃ 0.00056789 │ '0.00057' │ '0.00' │ '5.68e-04' │ '0.06%' ┃\n" + |
|
|
|
|
|
"┃ 0.0056789 │ '0.0057' │ '0.01' │ '5.68e-03' │ '0.57%' ┃\n" + |
|
|
|
|
|
"┃ 0.056789 │ '0.057' │ '0.06' │ '5.68e-02' │ '5.68%' ┃\n" + |
|
|
|
|
|
"┃ 0.56789 │ '0.57' │ '0.57' │ '5.68e-01' │ '56.79%' ┃\n" + |
|
|
|
|
|
"┃ 5.6789 │ '5.7' │ '5.68' │ '5.68e+00' │ '567.89%' ┃\n" + |
|
|
|
|
|
"┃ 56.789 │ '5.7e+01' │ '56.79' │ '5.68e+01' │ '5678.90%' ┃\n" + |
|
|
|
|
|
"┃ 567.89 │ '5.7e+02' │ '567.89' │ '5.68e+02' │ '56789.00%' ┃\n" + |
|
|
|
|
|
"┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┛\n"; |
|
|
|
|
|
|
|
|
const DIAGRAM_7_A = |
|
|
const DIAGRAM_7_A = |
|
|
'+------------+----------+------------+----------+--------------+\n' + |
|
|
'+------------+----------+------------+----------+--------------+\n' + |
|
@ -106,17 +106,17 @@ const DIAGRAM_7_A = |
|
|
'+------------+----------+------------+----------+--------------+\n'; |
|
|
'+------------+----------+------------+----------+--------------+\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_7_B = |
|
|
const DIAGRAM_7_B = |
|
|
'┏━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ │ Iterable │ Collection │ Sequence │ abc.Sequence ┃\n' + |
|
|
|
|
|
'┠────────────┼──────────┼────────────┼──────────┼──────────────┨\n' + |
|
|
|
|
|
'┃ iter() │ ! │ ! │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ contains() │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ len() │ │ ! │ ! │ ! ┃\n' + |
|
|
|
|
|
'┃ getitem() │ │ │ ! │ ! ┃\n' + |
|
|
|
|
|
'┃ reversed() │ │ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ index() │ │ │ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ count() │ │ │ │ ✓ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
'┏━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ │ Iterable │ Collection │ Sequence │ abc.Sequence ┃\n' + |
|
|
|
|
|
'┠────────────┼────────────┼────────────┼────────────┼──────────────┨\n' + |
|
|
|
|
|
'┃ iter() │ ! │ ! │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ contains() │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ len() │ │ ! │ ! │ ! ┃\n' + |
|
|
|
|
|
'┃ getitem() │ │ │ ! │ ! ┃\n' + |
|
|
|
|
|
'┃ reversed() │ │ │ ✓ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ index() │ │ │ │ ✓ ┃\n' + |
|
|
|
|
|
'┃ count() │ │ │ │ ✓ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_8_A = |
|
|
const DIAGRAM_8_A = |
|
|
'BaseException\n' + |
|
|
'BaseException\n' + |
|
@ -150,17 +150,17 @@ const DIAGRAM_9_A = |
|
|
'+------------------+-----------+-----------+--------------+\n'; |
|
|
'+------------------+-----------+-----------+--------------+\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_9_B = |
|
|
const DIAGRAM_9_B = |
|
|
"┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n" + |
|
|
|
|
|
"┃ │ excel │ excel_tab │ unix_dialect ┃\n" + |
|
|
|
|
|
"┠──────────────────┼───────────┼───────────┼──────────────┨\n" + |
|
|
|
|
|
"┃ delimiter │ ',' │ '\\t' │ ',' ┃\n" + |
|
|
|
|
|
"┃ quotechar │ '\"' │ '\"' │ '\"' ┃\n" + |
|
|
|
|
|
"┃ doublequote │ True │ True │ True ┃\n" + |
|
|
|
|
|
"┃ skipinitialspace │ False │ False │ False ┃\n" + |
|
|
|
|
|
"┃ lineterminator │ '\\r\\n' │ '\\r\\n' │ '\\n' ┃\n" + |
|
|
|
|
|
"┃ quoting │ 0 │ 0 │ 1 ┃\n" + |
|
|
|
|
|
"┃ escapechar │ None │ None │ None ┃\n" + |
|
|
|
|
|
"┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n"; |
|
|
|
|
|
|
|
|
"┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n" + |
|
|
|
|
|
"┃ │ excel │ excel_tab │ unix_dialect ┃\n" + |
|
|
|
|
|
"┠──────────────────┼──────────────┼──────────────┼──────────────┨\n" + |
|
|
|
|
|
"┃ delimiter │ ',' │ '\\t' │ ',' ┃\n" + |
|
|
|
|
|
"┃ quotechar │ '\"' │ '\"' │ '\"' ┃\n" + |
|
|
|
|
|
"┃ doublequote │ True │ True │ True ┃\n" + |
|
|
|
|
|
"┃ skipinitialspace │ False │ False │ False ┃\n" + |
|
|
|
|
|
"┃ lineterminator │ '\\r\\n' │ '\\r\\n' │ '\\n' ┃\n" + |
|
|
|
|
|
"┃ quoting │ 0 │ 0 │ 1 ┃\n" + |
|
|
|
|
|
"┃ escapechar │ None │ None │ None ┃\n" + |
|
|
|
|
|
"┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n"; |
|
|
|
|
|
|
|
|
const DIAGRAM_10_A = |
|
|
const DIAGRAM_10_A = |
|
|
'+-----------+------------+----------+----------+\n' + |
|
|
'+-----------+------------+----------+----------+\n' + |
|
@ -168,14 +168,14 @@ const DIAGRAM_10_A = |
|
|
'+-----------+------------+----------+----------+\n'; |
|
|
'+-----------+------------+----------+----------+\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_10_B = |
|
|
const DIAGRAM_10_B = |
|
|
'┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ │ list │ dict │ set ┃\n' + |
|
|
|
|
|
'┠───────────┼────────────┼──────────┼──────────┨\n' + |
|
|
|
|
|
'┃ getitem() │ IndexError │ KeyError │ ┃\n' + |
|
|
|
|
|
'┃ pop() │ IndexError │ KeyError │ KeyError ┃\n' + |
|
|
|
|
|
'┃ remove() │ ValueError │ │ KeyError ┃\n' + |
|
|
|
|
|
'┃ index() │ ValueError │ │ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
'┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓\n' + |
|
|
|
|
|
'┃ │ list │ dict │ set ┃\n' + |
|
|
|
|
|
'┠───────────┼────────────┼────────────┼────────────┨\n' + |
|
|
|
|
|
'┃ getitem() │ IndexError │ KeyError │ ┃\n' + |
|
|
|
|
|
'┃ pop() │ IndexError │ KeyError │ KeyError ┃\n' + |
|
|
|
|
|
'┃ remove() │ ValueError │ │ KeyError ┃\n' + |
|
|
|
|
|
'┃ index() │ ValueError │ │ ┃\n' + |
|
|
|
|
|
'┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛\n'; |
|
|
|
|
|
|
|
|
const DIAGRAM_11_A = |
|
|
const DIAGRAM_11_A = |
|
|
'+-----------+-------------+------+-------------+\n' + |
|
|
'+-----------+-------------+------+-------------+\n' + |
|
|