|
|
@ -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">>>> </span>getattr(p, <span class="hljs-string">'y'</span>) |
|
|
|
<span class="hljs-number">2</span> |
|
|
|
<span class="hljs-meta">>>> </span>p._fields |
|
|
|
<span class="hljs-meta">>>> </span>p._fields <span class="hljs-comment"># Or: Point._fields</span> |
|
|
|
(<span class="hljs-string">'x'</span>, <span class="hljs-string">'y'</span>) |
|
|
|
</code></pre></div> |
|
|
|
|
|
|
|