Skip to content

Conversation

@dpgeorge
Copy link
Member

@dpgeorge dpgeorge commented Jun 9, 2020

Long ago, prior to 0ef01d0, fixed and ordered maps were the same setting with the "table_is_fixed_array" member of mp_map_t. But these settings are actually independent, and it is possible to have is_fixed=1, is_ordered=0 (although this can currently only be done by tools/cc1). So update the comments to reflect this.

@dpgeorge dpgeorge added the py-core Relates to py/ directory in source label Jun 9, 2020
@dpgeorge
Copy link
Member Author

dpgeorge commented Jun 9, 2020

Relates to #5664

@andrewleech FYI

@andrewleech
Copy link
Contributor

These comments make a lot more sense, thanks!

Long ago, prior to 0ef01d0, fixed and
ordered maps were the same setting with the "table_is_fixed_array" member
of mp_map_t.  But these settings are actually independent, and it is
possible to have is_fixed=1, is_ordered=0 (although this can currently
only be done by tools/cc1).  So update the comments to reflect this.
@dpgeorge dpgeorge force-pushed the py-obj-clarify-map-comments branch from 388f921 to f3062b5 Compare June 10, 2020 12:27
@dpgeorge dpgeorge merged commit f3062b5 into micropython:master Jun 10, 2020
@dpgeorge dpgeorge deleted the py-obj-clarify-map-comments branch June 10, 2020 12:28
jonathanhogg added a commit to jonathanhogg/micropython that referenced this pull request Sep 14, 2021
Rework the ADC implementation to use the micropython#4213 API (mostly) adding 
support for calibrated voltage readings and the ADC2 block. Resolves 
micropython#6129. Part-resolves micropython#3943.
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Mar 14, 2022
Espressif: Fix i2c pullup detection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

py-core Relates to py/ directory in source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants