MCPcopy Index your code
hub / github.com/RustPython/RustPython / dump_ascii

Function dump_ascii

crates/stdlib/src/faulthandler.rs:318–324  ·  view source on GitHub ↗
(fd: i32, s: &str)

Source from the content-addressed store, hash-verified

316 /// Mirrors `_Py_DumpASCII` truncation behavior.
317 #[cfg(any(unix, windows))]
318 fn dump_ascii(fd: i32, s: &str) {
319 let (truncated_s, was_truncated) = safe_truncate(s, MAX_STRING_LENGTH);
320 puts(fd, truncated_s);
321 if was_truncated {
322 puts(fd, "...");
323 }
324 }
325
326 /// Write a frame's info to an fd using signal-safe I/O.
327 #[cfg(any(unix, windows))]

Callers 2

dump_frame_from_rawFunction · 0.85
dump_frame_from_refFunction · 0.85

Calls 2

safe_truncateFunction · 0.85
putsFunction · 0.85

Tested by

no test coverage detected