clarified precedence notes in porting#has_key [thanks P.P.]

This commit is contained in:
Mark Pilgrim
2009-05-16 00:53:17 -04:00
parent 9be5bbcce7
commit 161d46d118
2 changed files with 2 additions and 8 deletions
-6
View File
@@ -150,12 +150,6 @@ SyntaxError: non-keyword arg after keyword arg</samp></pre>
<blockquote class=note>
<p><span>&#x261E;</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&#8217;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: