Browse Source

Tuple

pull/52/head
Jure Šorn 4 years ago
parent
commit
c6c1d3c644
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -162,7 +162,7 @@ Point(x=1, y=2)
1
>>> getattr(p, 'y')
2
>>> p._fields # Or: Point._fields
>>> p._fields
('x', 'y')
```

2
index.html

@ -327,7 +327,7 @@ Point(x=<span class="hljs-number">1</span>, y=<span class="hljs-number">2</span>
<span class="hljs-number">1</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>getattr(p, <span class="hljs-string">'y'</span>)
<span class="hljs-number">2</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>p._fields <span class="hljs-comment"># Or: Point._fields</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>p._fields
(<span class="hljs-string">'x'</span>, <span class="hljs-string">'y'</span>)
</code></pre></div>

Loading…
Cancel
Save