8000 Merge remote-tracking branch 'origin/main' into merge-82x-main · rsbohn/circuitpython@07777dc · GitHub
[go: up one dir, main page]

Skip to content

Commit 07777dc

Browse files
committed
Merge remote-tracking branch 'origin/main' into merge-82x-main
2 parents 335dd66 + 96be941 commit 07777dc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

py/circuitpy_mpconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ extern void common_hal_mcu_enable_interrupts(void);
8787
#define MICROPY_TRACKED_ALLOC (CIRCUITPY_SSL_MBEDTLS)
8888
#define MICROPY_ENABLE_SOURCE_LINE (1)
8989
#define MICROPY_EPOCH_IS_1970 (1)
90-
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_NORMAL)
90+
#define MICROPY_ERROR_REPORTING (CIRCUITPY_FULL_BUILD ? MICROPY_ERROR_REPORTING_NORMAL : MICROPY_ERROR_REPORTING_TERSE)
9191
#define MICROPY_FLOAT_HIGH_QUALITY_HASH (0)
9292
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
9393
#define MICROPY_GC_ALLOC_THRESHOLD (0)

py/objdict.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ typedef struct _mp_obj_dict_view_t {
536536
STATIC mp_obj_t dict_view_it_iternext(mp_obj_t self_in) {
537537
mp_check_self(mp_obj_is_type(self_in, &mp_type_dict_view_it));
538538
mp_obj_dict_view_it_t *self = MP_OBJ_TO_PTR(self_in);
539-
mp_map_elem_t *next = dict_iter_next(MP_OBJ_TO_PTR(self->dict), &self->cur);
539+
mp_map_elem_t *next = dict_iter_next(native_dict(self->dict), &self->cur);
540540

541541
if (next == NULL) {
542542
return MP_OBJ_STOP_ITERATION;

tests/basics/subclass_native_dict.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ def __setitem__(self, k, v):
2626
d = mydict()
2727
d[3] = 4
2828
print(d[3])
29+
print(d.keys())

0 commit comments

Comments
 (0)
0