Skip to content

Fix __get__ in CPython. #69

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

Merged
merged 1 commit into from
Feb 19, 2020
Merged

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