#docstring — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #docstring, aggregated by home.social.
-
Question for my emacs python users:
Do you use/know of a package for auto-folding / hiding / managing docstrings? Mine are starting to getting quite unwieldy now ...
-
Super, je viens de rejoindre
#docstring
Une communauté autour de @pythonCeci est ma premier appli avec eux :)
https://myfirstdoctringchat.streamlit.app/
Une appli de chat avec #streamlit
Le tuto ici :
https://www.docstring.fr/accompagnement/mentorat/session/383/Voilà,
bonne journéeAmicalement, José
-
@abcdw I was realizing (again) today, scheme-mode on Emacs doesn't highlight docstrings properly. Docstrings in define, define*, lambda, and others, they use `font-lock-string-face` instead of `font-lock-comment-face`. Do you in your infinite Lisp wisdom (or some other #guix #hacker) have an idea how one could fix that? I have looked at Scheme-mode built-in to Emacs but I can't figure out the puzzle.
-
Another new library release: DocStrands lets you re-use segments of your docstrings between functions.
Copy-pasting docstrings has long frustrated me, so I came up with my own solution!
-
With #Python now being "the most popular programming language" (don't get me started...), the #Unicode consortium has announced a new #codepoint specifically to aid Python #developers and increase efficiency -- both of time, and of storage.
The next Unicode release will include a codepoint representing triple double quotes, making #docstrings much easier.
#quotes #DoubleQuotes #TripleDoubleQuotes #docstring #syntax #popularity
-
With #Python now being "the most popular programming language" (don't get me started...), the #Unicode consortium has announced a new #codepoint specifically to aid Python #developers and increase efficiency -- both of time, and of storage.
The next Unicode release will include a codepoint representing triple double quotes, making #docstrings much easier.
#quotes #DoubleQuotes #TripleDoubleQuotes #docstring #syntax #popularity
-
With #Python now being "the most popular programming language" (don't get me started...), the #Unicode consortium has announced a new #codepoint specifically to aid Python #developers and increase efficiency -- both of time, and of storage.
The next Unicode release will include a codepoint representing triple double quotes, making #docstrings much easier.
#quotes #DoubleQuotes #TripleDoubleQuotes #docstring #syntax #popularity
-
With #Python now being "the most popular programming language" (don't get me started...), the #Unicode consortium has announced a new #codepoint specifically to aid Python #developers and increase efficiency -- both of time, and of storage.
The next Unicode release will include a codepoint representing triple double quotes, making #docstrings much easier.
#quotes #DoubleQuotes #TripleDoubleQuotes #docstring #syntax #popularity
-
With #Python now being "the most popular programming language" (don't get me started...), the #Unicode consortium has announced a new #codepoint specifically to aid Python #developers and increase efficiency -- both of time, and of storage.
The next Unicode release will include a codepoint representing triple double quotes, making #docstrings much easier.
#quotes #DoubleQuotes #TripleDoubleQuotes #docstring #syntax #popularity
-
I guess I should spend some time learning Phoenix.
-
Someone made a Visual Studio Code extension to highlight docstrings in python ! I needed this soo much :pleading_face_3d:
https://github.com/rodolphebarbanneau/python-docstring-highlighter
#vscode #code #dev #editor #ide #extensions #python #docstring
-
Does anybody know how to document in #Python that the return value of a function is a #Django Queryset? And better if the queryset is of a specific model. #docstring
-
For a programming language (formerly) overseen by a benevolent dictator for life, #Python is awfully democratic.
Help me learn and decide: Which type of #docstring should I use in my Python code and why?
- Plain
- Epytext
- reStructuredText
- Numpy
- Google? -
When #programming, the first thing I write for a new #python #class or #method is the #docstring. (Sorry about all the hashtags, but you did see this.)
Docstrings written this way are expressions of optimism and hope: What it says it does you will soon be able to make it do! It's happened enough times for me to really believe it now. Therein lies a directed, focused burst of creativity.
The alternative: grudging summary of a solution to a problem that might not have been very well defined.
-
I've been doing some VS Code extension hacking recently (something cool coming soon, possibly!) and I have to say...
It is really a testament to LISP and to the Emacs contributors that docstrings are:
1. a core part of the language
2. are available on nearly every function and commandThe best way to even find out if a command _exists_ in VS Code is to open the "keyboard shortcuts" window. And then just guess the args…
#vscode #vscodeExtension #emacs #elisp #lisp #docstring #documentation
-
Been playing around with the new #treesitter feature in #emacs. Using it to add docstrings to the current function in #python (in the bottom right window) .