summaryrefslogtreecommitdiff
path: root/py/repl.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-07-18 12:35:42 +1000
committerDamien George <damien@micropython.org>2024-07-18 12:35:42 +1000
commite00d80d9e27552760603b507c77aad6f5705174f (patch)
tree145f739f80f7e6b689791ffcf7a17009c9028bbe /py/repl.c
parentfce3cea2440e0242fc4cf5c1825368795f540470 (diff)
py: Remove 5 TODOs in emitbc, objrange and repl.
These TODOs don't need to be done: - Calling functions with keyword arguments is less common than without them, so adding an extra byte overhead to all calls regardless of whether they use keywords or not would overall increase generated bytecode size. - Restricting `range` objects to machine-sized ints has been adequate for a long time now, so no need to change that and make it more complicated and slower. - Printing spaces in tab completion does not need to be optimised. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/repl.c')
-rw-r--r--py/repl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/repl.c b/py/repl.c
index b79a2d3c4..87c171cc8 100644
--- a/py/repl.c
+++ b/py/repl.c
@@ -225,7 +225,6 @@ static void print_completions(const mp_print_t *print,
gap += WORD_SLOT_LEN;
}
if (line_len + gap + d_len <= MAX_LINE_LEN) {
- // TODO optimise printing of gap?
for (int j = 0; j < gap; ++j) {
mp_print_str(print, " ");
}