Skip to content

Underscore for last expression is not working #480

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

Closed
caternuson opened this issue Dec 14, 2017 · 3 comments
Closed

Underscore for last expression is not working #480

caternuson opened this issue Dec 14, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@caternuson
Copy link

caternuson commented Dec 14, 2017

Enabled in MicroPython via MICROPY_CAN_OVERRIDE_BUILTINS flag.

But in CP:

Adafruit CircuitPython 2.1.0 on 2017-10-17; Adafruit Trinket M0 with samd21e18
>>> import time
>>> time.monotonic()
84728.1
>>> _
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name '_' is not defined
>>>  
@dhalbert
Copy link
Collaborator

dhalbert commented Jan 9, 2018

Uses 168 bytes. Implemented via the override-builtins dict, hence the dependence on that flag.

@dhalbert
Copy link
Collaborator

dhalbert commented Jan 9, 2018

This is turned on in nrf and esp8266 ports. Let's turn it on in atmel-samd for consistency.

@dhalbert
Copy link
Collaborator

Fixed by #518.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants