mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 15:00:18 +00:00
clarified precedence notes in porting#has_key [thanks P.P.]
This commit is contained in:
@@ -150,12 +150,6 @@ SyntaxError: non-keyword arg after keyword arg</samp></pre>
|
||||
<blockquote class=note>
|
||||
<p><span>☞</span>Many Python <abbr>IDE</abbr>s use the <code>docstring</code> to provide context-sensitive documentation, so that when you type a function name, its <code>docstring</code> appears as a tooltip. This can be incredibly helpful, but it’s only as good as the <code>docstring</code>s you write.
|
||||
</blockquote>
|
||||
<!--
|
||||
<h3 id=functionannotations>Function Annotations</h3>
|
||||
<p>FIXME
|
||||
<h3 id=styleconventions>Style Conventions</h3>
|
||||
<p>FIXME
|
||||
-->
|
||||
<h2 id=everythingisanobject>Everything Is An Object</h2>
|
||||
<p>In case you missed it, I just said that Python functions have attributes, and that those attributes are available at runtime. A function, like everything else in Python, is an object.
|
||||
<p>Run the interactive Python shell and follow along:
|
||||
|
||||
Reference in New Issue
Block a user