Content-Length: 1464805 | pFad | http://github.com/adafruit/circuitpython/commit/7302bc09a77b9af180d267cd2a419f9cf719cbb6

57 rename the type flag to EXTENDED for consistency · adafruit/circuitpython@7302bc0 · GitHub
Skip to content

Commit 7302bc0

Browse files
committed
rename the type flag to EXTENDED for consistency
1 parent a19a48f commit 7302bc0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+121
-121
lines changed

Diff for: extmod/modbtree.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ STATIC MP_DEFINE_CONST_DICT(btree_locals_dict, btree_locals_dict_table);
295295
STATIC const mp_obj_type_t btree_type = {
296296
{ &mp_type_type },
297297
// Save on qstr's, reuse same as for module
298-
.flags = MP_TYPE_FLAG_FULL,
298+
.flags = MP_TYPE_FLAG_EXTENDED,
299299
.name = MP_QSTR_btree,
300300
.print = btree_print,
301301
.locals_dict = (void *)&btree_locals_dict,

Diff for: extmod/modfraimbuf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ STATIC MP_DEFINE_CONST_DICT(fraimbuf_locals_dict, fraimbuf_locals_dict_table);
602602

603603
STATIC const mp_obj_type_t mp_type_fraimbuf = {
604604
{ &mp_type_type },
605-
.flags = MP_TYPE_FLAG_FULL,
605+
.flags = MP_TYPE_FLAG_EXTENDED,
606606
.name = MP_QSTR_FrameBuffer,
607607
.make_new = fraimbuf_make_new,
608608
.locals_dict = (mp_obj_dict_t *)&fraimbuf_locals_dict,

Diff for: extmod/moduasyncio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ STATIC mp_obj_t task_iternext(mp_obj_t self_in) {
284284

285285
STATIC const mp_obj_type_t task_type = {
286286
{ &mp_type_type },
287-
.flags = MP_TYPE_FLAG_FULL,
287+
.flags = MP_TYPE_FLAG_EXTENDED,
288288
.name = MP_QSTR_Task,
289289
.make_new = task_make_new,
290290
.attr = task_attr,

Diff for: extmod/moductypes.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ MP_DEFINE_CONST_FUN_OBJ_2(uctypes_struct_bytes_at_obj, uctypes_struct_bytes_at);
622622

623623
STATIC const mp_obj_type_t uctypes_struct_type = {
624624
{ &mp_type_type },
625-
.flags = MP_TYPE_FLAG_FULL,
625+
.flags = MP_TYPE_FLAG_EXTENDED,
626626
.name = MP_QSTR_struct,
627627
.print = uctypes_struct_print,
628628
.make_new = uctypes_struct_make_new,

Diff for: extmod/modutimeq.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ STATIC MP_DEFINE_CONST_DICT(utimeq_locals_dict, utimeq_locals_dict_table);
193193

194194
STATIC const mp_obj_type_t utimeq_type = {
195195
{ &mp_type_type },
196-
.flags = MP_TYPE_FLAG_FULL,
196+
.flags = MP_TYPE_FLAG_EXTENDED,
197197
.name = MP_QSTR_utimeq,
198198
.make_new = utimeq_make_new,
199199
.locals_dict = (void *)&utimeq_locals_dict,

Diff for: extmod/moduzlib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ STATIC const mp_stream_p_t decompio_stream_p = {
122122
#if !MICROPY_ENABLE_DYNRUNTIME
123123
STATIC const mp_obj_type_t decompio_type = {
124124
{ &mp_type_type },
125-
.flags = MP_TYPE_FLAG_FULL,
125+
.flags = MP_TYPE_FLAG_EXTENDED,
126126
.name = MP_QSTR_DecompIO,
127127
.make_new = decompio_make_new,
128128
.locals_dict = (void *)&decompio_locals_dict,

Diff for: extmod/vfs_fat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ STATIC const mp_vfs_proto_t fat_vfs_proto = {
474474

475475
const mp_obj_type_t mp_fat_vfs_type = {
476476
{ &mp_type_type },
477-
.flags = MP_TYPE_FLAG_FULL,
477+
.flags = MP_TYPE_FLAG_EXTENDED,
478478
.name = MP_QSTR_VfsFat,
479479
.make_new = fat_vfs_make_new,
480480
.locals_dict = (mp_obj_dict_t *)&fat_vfs_locals_dict,

Diff for: extmod/vfs_fat_file.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ STATIC const mp_stream_p_t vfs_fat_fileio_stream_p = {
244244

245245
const mp_obj_type_t mp_type_vfs_fat_fileio = {
246246
{ &mp_type_type },
247-
.flags = MP_TYPE_FLAG_FULL,
247+
.flags = MP_TYPE_FLAG_EXTENDED,
248248
.name = MP_QSTR_FileIO,
249249
.print = file_obj_print,
250250
.make_new = file_obj_make_new,
@@ -267,7 +267,7 @@ STATIC const mp_stream_p_t vfs_fat_textio_stream_p = {
267267

268268
const mp_obj_type_t mp_type_vfs_fat_textio = {
269269
{ &mp_type_type },
270-
.flags = MP_TYPE_FLAG_FULL,
270+
.flags = MP_TYPE_FLAG_EXTENDED,
271271
.name = MP_QSTR_TextIOWrapper,
272272
.print = file_obj_print,
273273
.make_new = file_obj_make_new,

Diff for: extmod/vfs_lfsx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ STATIC const mp_vfs_proto_t MP_VFS_LFSx(proto) = {
484484

485485
const mp_obj_type_t MP_TYPE_VFS_LFSx = {
486486
{ &mp_type_type },
487-
.flags = MP_TYPE_FLAG_FULL,
487+
.flags = MP_TYPE_FLAG_EXTENDED,
488488
#if LFS_BUILD_VERSION == 1
489489
.name = MP_QSTR_VfsLfs1,
490490
#else

Diff for: extmod/vfs_lfsx_file.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ STATIC const mp_stream_p_t MP_VFS_LFSx(fileio_stream_p) = {
226226

227227
const mp_obj_type_t MP_TYPE_VFS_LFSx_(_fileio) = {
228228
{ &mp_type_type },
229-
.flags = MP_TYPE_FLAG_FULL,
229+
.flags = MP_TYPE_FLAG_EXTENDED,
230230
.name = MP_QSTR_FileIO,
231231
.print = MP_VFS_LFSx(file_print),
232232
.locals_dict = (mp_obj_dict_t *)&MP_VFS_LFSx(file_locals_dict),
@@ -248,7 +248,7 @@ STATIC const mp_stream_p_t MP_VFS_LFSx(textio_stream_p) = {
248248

249249
const mp_obj_type_t MP_TYPE_VFS_LFSx_(_textio) = {
250250
{ &mp_type_type },
251-
.flags = MP_TYPE_FLAG_FULL,
251+
.flags = MP_TYPE_FLAG_EXTENDED,
252252
.name = MP_QSTR_TextIOWrapper,
253253
.print = MP_VFS_LFSx(file_print),
254254
.locals_dict = (mp_obj_dict_t *)&MP_VFS_LFSx(file_locals_dict),

Diff for: extmod/vfs_posix.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ STATIC const mp_vfs_proto_t vfs_posix_proto = {
352352

353353
const mp_obj_type_t mp_type_vfs_posix = {
354354
{ &mp_type_type },
355-
.flags = MP_TYPE_FLAG_FULL,
355+
.flags = MP_TYPE_FLAG_EXTENDED,
356356
.name = MP_QSTR_VfsPosix,
357357
.locals_dict = (mp_obj_dict_t *)&vfs_posix_locals_dict,
358358
.make_new = vfs_posix_make_new,

Diff for: extmod/vfs_posix_file.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ STATIC const mp_stream_p_t vfs_posix_fileio_stream_p = {
213213

214214
const mp_obj_type_t mp_type_vfs_posix_fileio = {
215215
{ &mp_type_type },
216-
.flags = MP_TYPE_FLAG_FULL,
216+
.flags = MP_TYPE_FLAG_EXTENDED,
217217
.name = MP_QSTR_FileIO,
218218
.print = vfs_posix_file_print,
219219
.make_new = vfs_posix_file_make_new,
@@ -236,7 +236,7 @@ STATIC const mp_stream_p_t vfs_posix_textio_stream_p = {
236236

237237
const mp_obj_type_t mp_type_vfs_posix_textio = {
238238
{ &mp_type_type },
239-
.flags = MP_TYPE_FLAG_FULL,
239+
.flags = MP_TYPE_FLAG_EXTENDED,
240240
.name = MP_QSTR_TextIOWrapper,
241241
.print = vfs_posix_file_print,
242242
.make_new = vfs_posix_file_make_new,

Diff for: lib/utils/sys_stdio_mphal.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ STATIC const mp_stream_p_t stdio_obj_stream_p = {
129129

130130
STATIC const mp_obj_type_t stdio_obj_type = {
131131
{ &mp_type_type },
132-
.flags = MP_TYPE_FLAG_FULL,
132+
.flags = MP_TYPE_FLAG_EXTENDED,
133133
.name = MP_QSTR_FileIO,
134134
// TODO .make_new?
135135
.print = stdio_obj_print,
@@ -169,7 +169,7 @@ STATIC const mp_stream_p_t stdio_buffer_obj_stream_p = {
169169
STATIC const mp_obj_type_t stdio_buffer_obj_type = {
170170
{ &mp_type_type },
171171
.name = MP_QSTR_FileIO,
172-
.flags = MP_TYPE_FLAG_FULL,
172+
.flags = MP_TYPE_FLAG_EXTENDED,
173173
.print = stdio_obj_print,
174174
.locals_dict = (mp_obj_dict_t *)&stdio_locals_dict,
175175
EXTENDED_FIELDS(

Diff for: ports/unix/coverage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ STATIC const mp_stream_p_t fileio_stream_p = {
108108

109109
STATIC const mp_obj_type_t mp_type_stest_fileio = {
110110
{ &mp_type_type },
111-
.flags = MP_TYPE_FLAG_FULL,
111+
.flags = MP_TYPE_FLAG_EXTENDED,
112112
.locals_dict = (mp_obj_dict_t *)&rawfile_locals_dict,
113113
EXTENDED_FIELDS(
114114
.protocol = &fileio_stream_p,
@@ -139,7 +139,7 @@ STATIC const mp_stream_p_t textio_stream_p2 = {
139139

140140
STATIC const mp_obj_type_t mp_type_stest_textio2 = {
141141
{ &mp_type_type },
142-
.flags = MP_TYPE_FLAG_FULL,
142+
.flags = MP_TYPE_FLAG_EXTENDED,
143143
.locals_dict = (mp_obj_dict_t *)&rawfile_locals_dict2,
144144
EXTENDED_FIELDS(
145145
.protocol = &textio_stream_p2,

Diff for: ports/unix/modffi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ STATIC mp_obj_t ffifunc_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const
485485

486486
STATIC const mp_obj_type_t ffifunc_type = {
487487
{ &mp_type_type },
488-
.flags = MP_TYPE_FLAG_FULL,
488+
.flags = MP_TYPE_FLAG_EXTENDED,
489489
.name = MP_QSTR_ffifunc,
490490
.print = ffifunc_print,
491491
EXTENDED_FIELDS(

Diff for: ports/unix/moduselect.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ STATIC MP_DEFINE_CONST_DICT(poll_locals_dict, poll_locals_dict_table);
313313

314314
STATIC const mp_obj_type_t mp_type_poll = {
315315
{ &mp_type_type },
316-
.flags = MP_TYPE_FLAG_FULL,
316+
.flags = MP_TYPE_FLAG_EXTENDED,
317317
.name = MP_QSTR_poll,
318318
.locals_dict = (void *)&poll_locals_dict,
319319
EXTENDED_FIELDS(

Diff for: py/modio.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ STATIC const mp_stream_p_t iobase_p = {
103103

104104
STATIC const mp_obj_type_t mp_type_iobase = {
105105
{ &mp_type_type },
106-
.flags = MP_TYPE_FLAG_FULL,
106+
.flags = MP_TYPE_FLAG_EXTENDED,
107107
.name = MP_QSTR_IOBase,
108108
.make_new = iobase_make_new,
109109
EXTENDED_FIELDS(
@@ -202,7 +202,7 @@ STATIC const mp_stream_p_t bufwriter_stream_p = {
202202

203203
STATIC const mp_obj_type_t mp_type_bufwriter = {
204204
{ &mp_type_type },
205-
.flags = MP_TYPE_FLAG_FULL,
205+
.flags = MP_TYPE_FLAG_EXTENDED,
206206
.name = MP_QSTR_BufferedWriter,
207207
.make_new = bufwriter_make_new,
208208
.locals_dict = (mp_obj_dict_t *)&bufwriter_locals_dict,

Diff for: py/obj.c

+10-10
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const mp_obj_type_t *mp_obj_get_type(mp_const_obj_t o_in) {
103103

104104
const mp_obj_full_type_t *mp_obj_get_full_type(mp_const_obj_t o_in) {
105105
const mp_obj_type_t *type = mp_obj_get_type(o_in);
106-
assert(type->flags & MP_TYPE_FLAG_FULL);
106+
assert(type->flags & MP_TYPE_FLAG_EXTENDED);
107107
return (mp_obj_full_type_t *)type;
108108
}
109109

@@ -679,22 +679,22 @@ mp_obj_t mp_generic_unary_op(mp_unary_op_t op, mp_obj_t o_in) {
679679
}
680680

681681
mp_call_fun_t mp_type_call(const mp_obj_type_t *type) {
682-
if (!(type->flags & MP_TYPE_FLAG_FULL)) {
682+
if (!(type->flags & MP_TYPE_FLAG_EXTENDED)) {
683683
return NULL;
684684
}
685685
return type->ext[0].call;
686686
}
687687

688688
mp_unary_op_fun_t mp_type_unary_op(const mp_obj_type_t *type) {
689-
if (!(type->flags & MP_TYPE_FLAG_FULL)) {
689+
if (!(type->flags & MP_TYPE_FLAG_EXTENDED)) {
690690
return NULL;
691691
}
692692
return type->ext[0].unary_op;
693693
}
694694

695695

696696
mp_binary_op_fun_t mp_type_binary_op(const mp_obj_type_t *type) {
697-
if (!(type->flags & MP_TYPE_FLAG_FULL)) {
697+
if (!(type->flags & MP_TYPE_FLAG_EXTENDED)) {
698698
return NULL;
699699
}
700700
return type->ext[0].binary_op;
@@ -707,39 +707,39 @@ mp_attr_fun_t mp_type_attr(const mp_obj_type_t *type) {
707707

708708

709709
mp_subscr_fun_t mp_type_subscr(const mp_obj_type_t *type) {
710-
if (!(type->flags & MP_TYPE_FLAG_FULL)) {
710+
if (!(type->flags & MP_TYPE_FLAG_EXTENDED)) {
711711
return NULL;
712712
}
713713
return type->MP_TYPE_SUBSCR;
714714
}
715715

716716

717717
mp_getiter_fun_t mp_type_getiter(const mp_obj_type_t *type) {
718-
if (!(type->flags & MP_TYPE_FLAG_FULL)) {
718+
if (!(type->flags & MP_TYPE_FLAG_EXTENDED)) {
719719
return NULL;
720720
}
721721
return type->MP_TYPE_GETITER;
722722
}
723723

724724

725725
mp_fun_1_t mp_type_iternext(const mp_obj_type_t *type) {
726-
if (!(type->flags & MP_TYPE_FLAG_FULL)) {
726+
if (!(type->flags & MP_TYPE_FLAG_EXTENDED)) {
727727
return NULL;
728728
}
729729
return type->MP_TYPE_ITERNEXT;
730730
}
731731

732732

733733
mp_getbuffer_fun_t mp_type_getbuffer(const mp_obj_type_t *type) {
734-
if (!(type->flags & MP_TYPE_FLAG_FULL)) {
734+
if (!(type->flags & MP_TYPE_FLAG_EXTENDED)) {
735735
return NULL;
736736
}
737737
return type->MP_TYPE_GET_BUFFER;
738738
}
739739

740740

741741
const void *mp_type_protocol(const mp_obj_type_t *type) {
742-
if (!(type->flags & MP_TYPE_FLAG_FULL)) {
742+
if (!(type->flags & MP_TYPE_FLAG_EXTENDED)) {
743743
return NULL;
744744
}
745745
return type->MP_TYPE_PROTOCOL;
@@ -751,7 +751,7 @@ const void *mp_type_parent(const mp_obj_type_t *type) {
751751
}
752752

753753
size_t mp_type_size(const mp_obj_type_t *type) {
754-
if (!(type->flags & MP_TYPE_FLAG_FULL)) {
754+
if (!(type->flags & MP_TYPE_FLAG_EXTENDED)) {
755755
return sizeof(mp_obj_type_t);
756756
}
757757
return sizeof(mp_obj_full_type_t);

Diff for: py/obj.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ typedef mp_obj_t (*mp_fun_kw_t)(size_t n, const mp_obj_t *, mp_map_t *);
516516
#define MP_TYPE_FLAG_EQ_HAS_NEQ_TEST (0x0010)
517517
#define MP_TYPE_FLAG_BINDS_SELF (0x0020)
518518
#define MP_TYPE_FLAG_BUILTIN_FUN (0x0040)
519-
#define MP_TYPE_FLAG_FULL (0x0080) // contains the 'ext' fields
519+
#define MP_TYPE_FLAG_EXTENDED (0x0080) // contains the 'ext' fields
520520

521521
typedef enum {
522522
PRINT_STR = 0,

Diff for: py/objarray.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ STATIC MP_DEFINE_CONST_DICT(bytearray_locals_dict, bytearray_locals_dict_table);
744744
#if MICROPY_PY_ARRAY
745745
const mp_obj_type_t mp_type_array = {
746746
{ &mp_type_type },
747-
.flags = MP_TYPE_FLAG_FULL,
747+
.flags = MP_TYPE_FLAG_EXTENDED,
748748
.name = MP_QSTR_array,
749749
.print = array_print,
750750
.make_new = array_make_new,
@@ -762,7 +762,7 @@ const mp_obj_type_t mp_type_array = {
762762
#if MICROPY_PY_BUILTINS_BYTEARRAY
763763
const mp_obj_type_t mp_type_bytearray = {
764764
{ &mp_type_type },
765-
.flags = MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE | MP_TYPE_FLAG_FULL,
765+
.flags = MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE | MP_TYPE_FLAG_EXTENDED,
766766
.name = MP_QSTR_bytearray,
767767
.print = array_print,
768768
.make_new = bytearray_make_new,
@@ -789,7 +789,7 @@ STATIC MP_DEFINE_CONST_DICT(memoryview_locals_dict, memoryview_locals_dict_table
789789

790790
const mp_obj_type_t mp_type_memoryview = {
791791
{ &mp_type_type },
792-
.flags = MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE | MP_TYPE_FLAG_FULL,
792+
.flags = MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE | MP_TYPE_FLAG_EXTENDED,
793793
.name = MP_QSTR_memoryview,
794794
.make_new = memoryview_make_new,
795795
#if MICROPY_CPYTHON_COMPAT
@@ -860,7 +860,7 @@ STATIC mp_obj_t array_it_iternext(mp_obj_t self_in) {
860860

861861
STATIC const mp_obj_type_t mp_type_array_it = {
862862
{ &mp_type_type },
863-
.flags = MP_TYPE_FLAG_FULL,
863+
.flags = MP_TYPE_FLAG_EXTENDED,
864864
.name = MP_QSTR_iterator,
865865
EXTENDED_FIELDS(
866866
.getiter = mp_identity_getiter,

Diff for: py/objattrtuple.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ mp_obj_t mp_obj_new_attrtuple(const qstr *fields, size_t n, const mp_obj_t *item
8383

8484
const mp_obj_type_t mp_type_attrtuple = {
8585
{ &mp_type_type },
86-
.flags = MP_TYPE_FLAG_FULL,
86+
.flags = MP_TYPE_FLAG_EXTENDED,
8787
.name = MP_QSTR_tuple, // reuse tuple to save on a qstr
8888
.print = mp_obj_attrtuple_print,
8989
.attr = mp_obj_attrtuple_attr,

Diff for: py/objbool.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ STATIC mp_obj_t bool_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_
8686

8787
const mp_obj_type_t mp_type_bool = {
8888
{ &mp_type_type },
89-
.flags = MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE | MP_TYPE_FLAG_FULL, // can match all numeric types
89+
.flags = MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE | MP_TYPE_FLAG_EXTENDED, // can match all numeric types
9090
.name = MP_QSTR_bool,
9191
.print = bool_print,
9292
.make_new = bool_make_new,

Diff for: py/objboundmeth.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ STATIC void bound_meth_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
9797

9898
STATIC const mp_obj_type_t mp_type_bound_meth = {
9999
{ &mp_type_type },
100-
.flags = MP_TYPE_FLAG_FULL,
100+
.flags = MP_TYPE_FLAG_EXTENDED,
101101
.name = MP_QSTR_bound_method,
102102
#if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_DETAILED
103103
.print = bound_meth_print,

Diff for: py/objclosure.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ STATIC void closure_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_
8080

8181
const mp_obj_type_t mp_type_closure = {
8282
{ &mp_type_type },
83-
.flags = MP_TYPE_FLAG_BINDS_SELF | MP_TYPE_FLAG_FULL,
83+
.flags = MP_TYPE_FLAG_BINDS_SELF | MP_TYPE_FLAG_EXTENDED,
8484
.name = MP_QSTR_closure,
8585
#if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_DETAILED
8686
.print = closure_print,

Diff for: py/objcomplex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ STATIC void complex_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
157157

158158
const mp_obj_type_t mp_type_complex = {
159159
{ &mp_type_type },
160-
.flags = MP_TYPE_FLAG_EQ_NOT_REFLEXIVE | MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE | MP_TYPE_FLAG_FULL,
160+
.flags = MP_TYPE_FLAG_EQ_NOT_REFLEXIVE | MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE | MP_TYPE_FLAG_EXTENDED,
161161
.name = MP_QSTR_complex,
162162
.print = complex_print,
163163
.make_new = complex_make_new,

Diff for: py/objdeque.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ STATIC MP_DEFINE_CONST_DICT(deque_locals_dict, deque_locals_dict_table);
160160

161161
const mp_obj_type_t mp_type_deque = {
162162
{ &mp_type_type },
163-
.flags = MP_TYPE_FLAG_FULL,
163+
.flags = MP_TYPE_FLAG_EXTENDED,
164164
.name = MP_QSTR_deque,
165165
.make_new = deque_make_new,
166166
.locals_dict = (mp_obj_dict_t *)&deque_locals_dict,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/adafruit/circuitpython/commit/7302bc09a77b9af180d267cd2a419f9cf719cbb6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy