<div dir="ltr">Here we go: <a href="http://bugs.python.org/issue19573">http://bugs.python.org/issue19573</a><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/12 Antony Lee <span dir="ltr"><<a href="mailto:antony.lee@berkeley.edu" target="_blank">antony.lee@berkeley.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have a (fairly trivial...) patch to fix both of these issues.  Should I post it here or submit it to <a href="http://bugs.python.org" target="_blank">bugs.python.org</a>?<span class="HOEnZb"><font color="#888888"><br>
Antony<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br>
<div class="gmail_quote">2013/11/10 Antony Lee <span dir="ltr"><<a href="mailto:antony.lee@berkeley.edu" target="_blank">antony.lee@berkeley.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">The docstring of inspect.Parameter indicates the "default" and "annotation" attributes are not set if the parameter does not have, respectively, a default value and an annotation, and that the "kind" attribute is a string.<br>


But in fact, the "default" and "annotation" attributes are set to "inspect._empty (== Parameter.empty)" in that case, and the "kind" attribute has type "_ParameterKind" (essentially a hand-written equivalent of IntEnum).  I suggest to correct the docstring accordingly, and to replace the implementation of _ParameterKind by a proper IntEnum (if full backwards compatibility is required), or even just by Enum (which makes a bit more sense, as the fact that _ParameterKind is a subclass of int doesn't seem to be documented anywhere).<span><font color="#888888"><br>


Antony<br></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>