mindly.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mindly.Social is an English speaking, friendly Mastodon instance created for people who want to use their brains and their hearts to make social networking more social. 🧠💖

Administered by:

Server stats:

1.2K
active users

#docstrings

0 posts0 participants0 posts today
C.<p>With <a href="https://mindly.social/tags/Python" class="mention hashtag" rel="tag">#<span>Python</span></a> now being &quot;the most popular programming language&quot; (don&#39;t get me started...), the <a href="https://mindly.social/tags/Unicode" class="mention hashtag" rel="tag">#<span>Unicode</span></a> consortium has announced a new <a href="https://mindly.social/tags/codepoint" class="mention hashtag" rel="tag">#<span>codepoint</span></a> specifically to aid Python <a href="https://mindly.social/tags/developers" class="mention hashtag" rel="tag">#<span>developers</span></a> and increase efficiency -- both of time, and of storage.</p><p>The next Unicode release will include a codepoint representing triple double quotes, making <a href="https://mindly.social/tags/docstrings" class="mention hashtag" rel="tag">#<span>docstrings</span></a> much easier.</p><p><a href="https://mindly.social/tags/quotes" class="mention hashtag" rel="tag">#<span>quotes</span></a> <a href="https://mindly.social/tags/DoubleQuotes" class="mention hashtag" rel="tag">#<span>DoubleQuotes</span></a> <a href="https://mindly.social/tags/TripleDoubleQuotes" class="mention hashtag" rel="tag">#<span>TripleDoubleQuotes</span></a> <a href="https://mindly.social/tags/docstring" class="mention hashtag" rel="tag">#<span>docstring</span></a> <a href="https://mindly.social/tags/syntax" class="mention hashtag" rel="tag">#<span>syntax</span></a> <a href="https://mindly.social/tags/popularity" class="mention hashtag" rel="tag">#<span>popularity</span></a></p>
C.<p><span class="h-card" translate="no"><a href="https://mas.to/@davidism" class="u-url mention">@<span>davidism</span></a></span> </p><p>Depending on what you mean by attribute - you just want to extract the <a href="https://mindly.social/tags/docstrings" class="mention hashtag" rel="tag">#<span>docstrings</span></a>?</p><p>On class (and class instances) and function/method objects, it&#39;s available as `&lt;obj&gt;.__doc__`. Same for modules. That covers most types of objects...</p><p>If you mean extracting information from type annotations, there&#39;s an inspection interface for that, too.</p>
C.<p><span class="h-card" translate="no"><a href="https://mastodon.social/@folkerschamel" class="u-url mention">@<span>folkerschamel</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@zenforyen" class="u-url mention">@<span>zenforyen</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.km6g.us/@kevin" class="u-url mention">@<span>kevin</span></a></span> <span class="h-card" translate="no"><a href="https://furry.engineer/@ado" class="u-url mention">@<span>ado</span></a></span> </p><p>Actually, I think that <a href="https://mindly.social/tags/type" class="mention hashtag" rel="tag">#<span>type</span></a> <a href="https://mindly.social/tags/hints" class="mention hashtag" rel="tag">#<span>hints</span></a> in the <a href="https://mindly.social/tags/function" class="mention hashtag" rel="tag">#<span>function</span></a> <a href="https://mindly.social/tags/signature" class="mention hashtag" rel="tag">#<span>signature</span></a> are usually *better* than having them in <a href="https://mindly.social/tags/docstrings" class="mention hashtag" rel="tag">#<span>docstrings</span></a>. Not only can they not get out of date / become wrong (without causing checking failures), static type checking is much easier this way.</p>