-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix constant names and typos in aioble examples and deepcopy function #1058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
closes: micropython#1055 Signed-off-by: Jos Verlinde <[email protected]>
closes: micropython#699 Signed-off-by: Jos Verlinde <[email protected]>
closes: micropython#952 Signed-off-by: Jos Verlinde <[email protected]>
This is a working alternative to PR micropython#919 closes: micropython#919 Signed-off-by: Jos Verlinde <[email protected]>
dpgeorge
left a comment
There was a problem hiding this 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.
python-stdlib/cmd/cmd.py
Outdated
| 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree
python-stdlib/cmd/cmd.py
Outdated
| ---------------------------------------------------------------------------- | ||
| 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:: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.Rst dropped
python-stdlib/heapq/heapq.py
Outdated
| 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, missed that
|
The rst 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. I have reverted the RST formatting to plaintext.
|
Bumped patch level in manifest for each changed module Signed-off-by: Jos Verlinde <[email protected]>
| @@ -1,2 +1,2 @@ | |||
| metadata(description="BOSCH BMI270 IMU driver.", version="1.0.0") | |||
| metadata(description="BOSCH BMI270 IMU driver.", version="1.0.1") | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For code that just has a change to the comments, I don't think we should update the version number. It uses up a small amount of storage to store each version, and the compiled .mpy files anyway are not changed.
| import time | ||
| from lsm6dsox import LSM6DSOX | ||
| import time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be 4-space indent to match others?
| @@ -1,5 +1,7 @@ | |||
| # DS18x20 temperature sensor driver for MicroPython. | |||
| # MIT license; Copyright (c) 2016 Damien P. George | |||
| """DS18x20 temperature sensor driver for MicroPython. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest putting the first line of this doc string on a separate line, to match similar changes made by this PR.
This PR combines a few rather minor fixes of typos in documentation and scripts.
Fixes #1055, #699, #952