Skip to content

Conversation

@tannewt
Copy link
Member

@tannewt tannewt commented Feb 19, 2020

In CPython, obj is None when a descriptor is accessed through a class
rather than an instance. MicroPython just returns the descriptor itself
so we manually do it.

In CPython, obj is None when a descriptor is accessed through a class
rather than an instance. MicroPython just returns the descriptor itself
so we manually do it.
@tannewt tannewt requested a review from dhalbert February 19, 2020 00:19
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Looks good! Should an issue be filed on MicroPython?

@dhalbert dhalbert merged commit d5c5cdf into adafruit:master Feb 19, 2020
@tannewt
Copy link
Member Author

tannewt commented Feb 19, 2020

Done: micropython/micropython#5669

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 20, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE to 5.2.0 from 5.1.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#70 from tannewt/swap_blinka_dep
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#69 from tannewt/check_for_obj_none

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_BLE_Eddystone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants