Skip to content
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

esp8266/mpconfigport: Enable MICROPY_PY_BUILTINS_SLICE_ATTRS #2503

Merged
merged 1 commit into from
Oct 11, 2016
Merged

esp8266/mpconfigport: Enable MICROPY_PY_BUILTINS_SLICE_ATTRS #2503

merged 1 commit into from
Oct 11, 2016

Conversation

deshipu
Copy link
Contributor

@deshipu deshipu commented Oct 11, 2016

This makes the resulting firmware larger by 40 bytes on my build.

While I agree that adding support to slicing user objects is a rare case for everyday application code, it is much more common when writing libraries and drivers, especially if one aims for a convenient and intuitive user interface. I stumbled upon the missing attributes trying to write a driver for my 18-channel servo controller (I wanted to be able to set multiple servo positions at once in a single command using slices), but it would also be useful for the NeoPixel and APA LED drivers, LED matrix drivers, display drivers, and basically anything that controls multiple things.

@pfalcon pfalcon merged commit db4e009 into micropython:master Oct 11, 2016
@pfalcon
Copy link
Contributor

pfalcon commented Oct 11, 2016

That's ok, all existing config options are available for being enabled in esp8266 port upon request. (But each such option makes it harder and harder to support 512K modules, which is still on the outlook). Merged.

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.

None yet

2 participants