Skip to content

Fix __get__ in CPython. - #69

Merged
dhalbert merged 1 commit into
adafruit:masterfrom
tannewt:check_for_obj_none
Feb 19, 2020
Merged

Fix __get__ in CPython.#69
dhalbert merged 1 commit into
adafruit:masterfrom
tannewt:check_for_obj_none

Conversation

@tannewt

@tannewt tannewt commented Feb 19, 2020

Copy link
Copy Markdown
Member

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

@dhalbert dhalbert left a comment

Copy link
Copy Markdown
Collaborator

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

tannewt commented Feb 19, 2020

Copy link
Copy Markdown
Member Author

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