We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab216a9 commit 01c4b64Copy full SHA for 01c4b64
src/etc/gdb_rust_pretty_printing.py
@@ -13,6 +13,9 @@
13
import sys
14
import debugger_pretty_printers_common as rustpp
15
16
+# We want a version of `range` which doesn't allocate an intermediate list,
17
+# specifically it should use a lazy iterator. In Python 2 this was `xrange`, but
18
+# if we're running with Python 3 then we need to use `range` instead.
19
if sys.version_info.major >= 3:
20
xrange = range
21
0 commit comments