Skip to content

Commit

Permalink
Update docs/monthly-meeting/2024-01.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Usman committed Jan 3, 2024
1 parent 1057021 commit f7c5434
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 0 deletions.
127 changes: 127 additions & 0 deletions docs/monthly-meeting/2024-01.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# Documentation Community Team Meeting (January 2024)

- **Date:** 2024-01-02
- **Time:** [20:00 UTC](https://arewemeetingyet.com/UTC/2024-01-02/20:00/Docs%20Meeting)
- **This HackMD:** https://hackmd.io/@encukou/pydocswg1
- [**Discourse thread**](https://discuss.python.org/t/42191) (for January)
- [**Meeting reports**](https://docs-community.readthedocs.io/en/latest/monthly-meeting/) (the latest one might be an [**unmerged PR**](https://github.com/python/docs-community/pulls))
- **Calendar event:** (send your e-mail to Mariatta for an invitation)
- **How to participate:**
- Go to [Google Meet](https://meet.google.com/dii-qrzf-wkw) and ask to be let in.
- To edit notes, click the “pencil” or “split view” button on the [HackMD document](https://hackmd.io/@encukou/pydocswg1). You need to log in (e.g. with a GitHub account).

By participating in this meeting, you are agreeing to abide by and uphold the [PSF Code of Conduct](https://www.python.org/psf/codeofconduct/).
Please take a second to read through it!


## Roll call

(Name / `@GitHubUsername` *[/ Discord, if different]*)
- Carol Willing / `@willingc` / carolwilling
- Petr Viktorin / `@encukou`
- Ezio Melotti / `@ezio-melotti`
- Hugo van Kemenade / `@hugovk`
- Guido van Rossum / `@gvanrossum`
- Daniele / `@EvilDMP` / danieleprocida
- Ege Akman / `@egeakman`
- Ned / `@nedbat`
- Ryan / `@ryan-duve`
- Jim / `@JDLH`
- CAM / `@CAM-Gerlach`
- Usman Akinyemi / `@Unique-Usman`
- Bradley / `@shenanigansd`

## Reports and celebrations

> 60 second updates on things you have been up to, questions you have, or developments you think people should know about. Please add yourself, and if you do not have an update to share, you can pass.
> This is a place to make announcements (without a need for discussion). This is also a great place to give shout-outs to contributors! We'll read through these at the beginning of the meeting.
* The Steering Council has [accepted](https://discuss.python.org/t/pep-732-the-python-documentation-editorial-board/36710/9?u=hugovk) [PEP 732](https://peps.python.org/pep-0732/) ("The Python Documentation Editorial Board") 🎉

- [willingc] First meeting will be January 8, 2024.
- [Carol] Looing at docs and website from a new user's perspective
- [Hugo] What would be the best way to contact the Board? [Guido] That's already on the agenda. [Carol] For the short term we could use the docs community repo too.

* I [Jim] appreciate how considerate this group is. The particular incident motivating my appreciation is that I got mentioned in the minutes of last meeting, and several people took pains to be sure that my name was presented there as I wanted it to be. Thank you.

* [Ryan] We made the update to the TOML documentation we talked about on the last call and got my first Python pull request merged!

## Discussion

- [Petr] Inclusive language

The `tkinter`, `pty`/`termios`, `sqlite3` (maybe more?) use `master/slave` terminology in API and docs. What's the best way to come up with, and switch to, better terms?

Is there an expert* I should talk to?

- [willingc] Thursday Bram has authored a Responsible Communications book which may have helpful guidelines. Other communities have used `leader/follower`. [Linux PR on the subject](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=49decddd39e5f6132ccd7d9fdc3d7c470b0061bb)
- [Hugo] Some suggestions: https://www.ietf.org/archive/id/draft-knodel-terminology-14.html#name-master-slave (willingc: I like the suggestions in this document for different usages.)
- [CAM] Earlier BPO issue: [python/cpython#78786](https://github.com/python/cpython/issues/78786)

- To do
- Check and update the dev guide for new docs not to use terms and suggest alternatives
- Determine process for future changes of existing terminology
- Consider adding a statement to the documentation about existing code
- Petr will bounce ideas off Daniele :)


- Ryan tried introducing argument lists (like in [sqlite3](https://docs.python.org/3/library/sqlite3.html#sqlite3.connect)) to the collections module, didn't work too well as the functions take one or two args and they're pretty obvious. Petr recommended looking at `subprocess.Popen`.
- [willingc] Ryan, feel free to ping me when you have an example since I'm very familiar with the scientific python docs.
- Guido doesn't like forcing people to stick to a template
- Daniele mentions there are two kinds of users, one of which -- a forensic analyst -- could need very strictly formatted documentation
- [Guido] The bulleted list makes it less likely to fit everything on a screen. Vertical space is a precious resource.
- [Carol] Doc usage has changed thanks to intellisense, nowadays you get lists of arguments on hovering.
- [Carol] Areas where users ask for help most should get most attention
- [Ezio] There is some value in a consistent format for return values and exceptions; sometimes it's hard to find them currently. Arguments are usually explained well in the description.
- [Daniele] It doesn't need to be machine-readable. It should always be maximally human-comfortable.
- [Jim] It sounds like the framing of this discussion is, source text targetting a big module documentation page with docs for all that module's methods. There are other possible targets: docstrings, tooltips text. Are there other targets for doc source which we should consider in this discussion?
- [Ned] We write docs twice -- once for the docstrings and once in `rst`. That's more work, but it means we can have different strategies for each use case. [Guido] Changing that would involve several PEPs.
- [CAM] Sphinx has ways to generate docs for a whole module, or just a single function, from docstrings. But yes, starting to use that would need a PEP.
- [CAM] The strategy we took for `sqlite3` was to focus on the functions with most arguments, where the bulleted lists have most benefit, and leave the smaller functions for later, when we have more experience with the approach.
- [Carol] And we should keep in mind that our perspectives are not necessarily the users' perspective. If we do make major changes we should think about users and we should vet the changes.
- Ryan started contributing by trying to get the contract of [`collections.Counter.most_common`](https://docs.python.org/3/library/collections.html#collections.Counter.most_common), and not finding it in the docstring nor in the documentation.
- Carol: If you're coming from the scientific world, where the `?` in IPython gives you the docstring, that is often the first thing you look at.
- Ryan will take a look at only documenting return type and "raises" in a structured way, leaving parameters in the prose.
- Guido warns that `collections.Counter` is not that typical.

- If we have time, would like to hear from Daniele on the [thread he started on the structure of the Python docs](https://discuss.python.org/t/diataxis-and-python-documentation/41836) as to the takeways from that so far and next steps there.

- Discussion between Daniele and Ezio on the Python tutorial

- [Ezio] The docs for builtin functions doesn't have any examples. Idea: Add a separate page with 1-3 examples for each function.
- [Carol] always goes back to the users and what their pathways and needs are. The tutorial can't fit all users -- absolute beginners, people for whom Python is the first language, people coming from other languages. The current tutorial doesn't work for completely new users.
- [CAM] The current tutorial targets people who are already familiar with programming languages. Perhaps we should have separate tutorials for complete beginners and people coming from specific languages.
- [Daniele] One drawback of the current tutorial is lots of preamble saying why you want to learn Python. But the user is already here, wanting to learn Python. We should start directly with the examples. Also, we don't need to cover the edge cases right after people do something for the first time. Long explanations detract from the tutorial.
- [Ezio] It seems that for the tutorial, examples work better than prose, for both new and experienced users. Also, we could have cheatsheets for people coming from other languages.
- [Carol] There's a bigger pressing need for onboarding people from different groups, like people who don't know how to use the command line.


## Follow-ups from previous meeting(s)

- [Ryan] standard library documentation reference and adding types to it in a structured way. For example, `collections.Counter.most_common` could be written

most_common(n: int) -> list[tuple[Any, int]]

[Petr] ... or `list[tuple[KeyType, int]]`?

- this has been discussed. There was opposition to adding the types to the stdlib code itself.
- [Jim] I sometimes wish for more normative, less chatty module documentation. e.g. [*heapq* module](https://docs.python.org/3/library/heapq.html). e.g. old issue 29428 [*Doctest documentation unclear about multi-line fixtures*](https://bugs.python.org/issue29428).
bad example commit messages
- https://devguide.python.org/getting-started/git-boot-camp/#accepting-and-merging-a-pull-request
- [python/devguide#1235](https://github.com/python/devguide/pull/1235)
- Should we do this for PEPs? see [python/docs-community#22](https://github.com/python/docs-community/issues/22)
- [Hugo] See also [python/peps#3567](https://github.com/python/peps/pull/3567) for green/red sidebars for good/bad example code in PEPs
- [Jim] don't forget accessibility constraints when coming up with the style guide. e.g. some readers are red/green colourblind. ✅❌ are good in that they are legible even without colour.

- [Ryan] Thoughts about completing TOML->JSON conversion table: https://docs.python.org/3/library/tomllib.html#conversion-table and the TOML spec: https://toml.io/en/v1.0.0#spec

- [Jim] FYI, Unicode Standard is changing form of authoritative standard documents from PDF to HTML, with corresponding change to document production tooling. If this is interesting I can provide more info. I am in the working group which is working on the new tooling.


## Next meeting

The docs team generally meets on the first Tuesday of every month around 20:00-ish UTC.

We have a recurring Google Calendar event for the meeting.
Let Mariatta know your email address and she can invite you.
1 change: 1 addition & 0 deletions docs/monthly-meeting/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ Monthly reports in reverse chronological order.
Oct 2023 <2023-10.md>
Nov 2023 <2023-11.md>
Dec 2023 <2023-12.md>
Jan 2024 <2024-01.md>

0 comments on commit f7c5434

Please sign in to comment.