New GitHub issue #110392 from serhiy-storchaka:<br>

<hr>

<pre>
# Bug report

According to the documentation they save the original result of `termios.tcgetattr()` and return it. But while making a copy of the attribute list before modifying it they do not take in account that it contains a reference to original `cc` list and modify it. So these functions return a list which contains original values and modified `cc` list.

These functions started returning the attribute list in #85984 (486bc8e03019b8edc3cbfc6e64db96d65dbe13b6).

The question: who should make a copy of the internal list: `setraw()` before passing it to `cfmakeraw()`, or `cfmakeraw()` itself?

cc @gpshead
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/110392">View on GitHub</a>
<p>Labels: type-bug, 3.12, 3.13</p>
<p>Assignee: serhiy-storchaka</p>