Skip to content

Conversation

@Josverl
Copy link
Contributor

@Josverl Josverl commented Nov 13, 2025

This PR combines a few rather minor fixes of typos in documentation and scripts.

  • Update the aioble example to use the correct advertising interval constant name.
  • Correct the README to reference the appropriate public address constant.
  • Fix a typo in the deepcopy function to reference the correct dispatch table.

Fixes #1055, #699, #952

closes: micropython#1055

Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
closes: micropython#699

Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
closes: micropython#952

Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
Josverl and others added 2 commits November 13, 2025 03:53
This is a working alternative to PR micropython#919
closes: micropython#919

Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
Copy link
Member

@dpgeorge dpgeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, there are some good fixes here.

I approve all commits except the RST formatting one.

THE SOFTWARE.
Basic example usage:
Basic example usage::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not against this indenting change, but doe we need to make it RST compatible with the double colon?

I'm curious why you made the change / how you found these problems? It's not really supposed to be RST format.

@@ -1,4 +1,5 @@
# DS18x20 temperature sensor driver for MicroPython.
"""DS18x20 temperature sensor driver for MicroPython."""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change? If it should be a docstring, then why not also include the below license/copyright line as well?

1. End of file on input is processed as the command 'EOF'.
2. A command is parsed out of each line by collecting the prefix composed
2. A command is parsed out of each line by collecting the prefix composed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it should add a space at the end of the line.

----------------------------------------------------------------------------
This is a copy of python's Cmd, but leaves out features that aren't relevant
or can't currently be implemented for MicroPython.
.. caution::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't think we should be using RST formatting here.

heapify(x) # transforms list into a heap, in-place, in linear time
item = heapreplace(heap, item) # pops and returns smallest item, and adds
# new item; the heap size is unchanged
heap = [] # creates an empty heap
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not 4 space indent like the other example code reformatted in this PR?

@Josverl
Copy link
Contributor Author

Josverl commented Nov 14, 2025

The rest formatting was a side effect of the work I started with @jimmo to see if/how it would be possible to generate documentation pages from the source files.

With these changes that works, although de demo i built for that is no longer live.

It ( sphinx +autoapi) does require consistent formatting, and sphinx and the rest of the project use Rst.

It could be simpler markdowns or plain docstrings as well, but not RST with formatting errors.
And there needs to be some degree of consistency, documented in contributed guidelines for the -lib repo

This was discussed in

https://github.com/orgs/micropython/discussions/15463

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example should say "..._US".

2 participants