home.social

#docstring — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #docstring, aggregated by home.social.

  1. 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 ...

    #emacs #python #programming #docstring

  2. Super, je viens de rejoindre
    #docstring
    Une communauté autour de @python

    Ceci est ma premier appli avec eux :)

    myfirstdoctringchat.streamlit.

    Une appli de chat avec #streamlit

    Le tuto ici :
    docstring.fr/accompagnement/me

    Voilà,
    bonne journée

    Amicalement, José

    @oisux
    @gul_lolica

    @Pierre_lmd

  3. @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.

    #emacs #scheme #guile #docstring #lisp #mode

  4. 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!

    github.com/multimeric/DocStran

    #python #docstring

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. I guess I should spend some time learning Phoenix.

    #docstring #python

  11. Someone made a Visual Studio Code extension to highlight docstrings in python ! I needed this soo much :pleading_face_3d:

    github.com/rodolphebarbanneau/

    #vscode #code #dev #editor #ide #extensions #python #docstring

  12. 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

  13. 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?

    #programming #documentation #DevTools #PyCharm

  14. 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 command

    The 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

  15. 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) .

    #docstring #foss #emacs29 #linux #programming #lisp

  16. 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.