mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#docstrings

0 Beiträge0 Beteiligte0 Beiträge heute
Hacker News<p>smartfunc: Turn Docstrings into LLM-Functions</p><p><a href="https://github.com/koaning/smartfunc" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/koaning/smartfunc</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/smartfunc" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>smartfunc</span></a> <a href="https://mastodon.social/tags/LLMfunctions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LLMfunctions</span></a> <a href="https://mastodon.social/tags/docstrings" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>docstrings</span></a> <a href="https://mastodon.social/tags/AItools" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AItools</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
C.<p>With <a href="https://mindly.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> now being "the most popular programming language" (don't get me started...), the <a href="https://mindly.social/tags/Unicode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Unicode</span></a> consortium has announced a new <a href="https://mindly.social/tags/codepoint" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>codepoint</span></a> specifically to aid Python <a href="https://mindly.social/tags/developers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<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="nofollow noopener" target="_blank">#<span>docstrings</span></a> much easier.</p><p><a href="https://mindly.social/tags/quotes" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>quotes</span></a> <a href="https://mindly.social/tags/DoubleQuotes" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DoubleQuotes</span></a> <a href="https://mindly.social/tags/TripleDoubleQuotes" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TripleDoubleQuotes</span></a> <a href="https://mindly.social/tags/docstring" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>docstring</span></a> <a href="https://mindly.social/tags/syntax" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>syntax</span></a> <a href="https://mindly.social/tags/popularity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>popularity</span></a></p>
C.<p><span class="h-card" translate="no"><a href="https://mas.to/@davidism" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>davidism</span></a></span> </p><p>Depending on what you mean by attribute - sounds like you're describing <a href="https://mindly.social/tags/docstrings" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>docstrings</span></a>.</p><p>On class (and class instances) and function/method objects, it's available as `&lt;obj&gt;.__doc__`. Same for modules. That covers most types of objects...</p>
C.<p><span class="h-card"><a href="https://mastodon.social/@folkerschamel" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>folkerschamel</span></a></span> <span class="h-card"><a href="https://mastodon.social/@zenforyen" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>zenforyen</span></a></span> <span class="h-card"><a href="https://mastodon.km6g.us/@kevin" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>kevin</span></a></span> <span class="h-card"><a href="https://furry.engineer/@ado" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ado</span></a></span> </p><p>Actually, I think that <a href="https://mindly.social/tags/type" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>type</span></a> <a href="https://mindly.social/tags/hints" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hints</span></a> in the <a href="https://mindly.social/tags/function" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>function</span></a> <a href="https://mindly.social/tags/signature" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>signature</span></a> are usually *better* than having them in <a href="https://mindly.social/tags/docstrings" class="mention hashtag" rel="nofollow noopener" target="_blank">#<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>