MCPcopy Index your code
hub / github.com/python/cpython / as_list

Method as_list

Lib/_pyrepl/fancy_termios.py:41–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39 self.cc = cast(list[bytes], attrs[6])
40
41 def as_list(self) -> list[int | list[bytes]]:
42 return [
43 self.iflag,
44 self.oflag,
45 self.cflag,
46 self.lflag,
47 self.ispeed,
48 self.ospeed,
49 # Always return a copy of the control characters list to ensure
50 # there are not any additional references to self.cc
51 self.cc[:],
52 ]
53
54 def copy(self) -> "TermState":
55 return self.__class__(self.as_list())

Callers 4

copyMethod · 0.95
tcsetattrFunction · 0.80
saveMethod · 0.80
setMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected