We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d94feb9 commit fc5ef0eCopy full SHA for fc5ef0e
serial_asyncio/__init__.py
@@ -75,9 +75,21 @@ def loop(self):
75
76
@property
77
def serial(self):
78
- """The underlying Serial instance."""
+ """The underlying Serial instance.
79
+
80
+ Equivalent to get_extra_info("serial")
81
+ """
82
return self._serial
83
84
+ def get_extra_info(name, default=None):
85
+ """Get optional transport information.
86
87
+ Currently only "serial" is available.
88
89
+ if name == "serial":
90
+ return self._serial
91
+ return default
92
93
def __repr__(self):
94
return '{self.__class__.__name__}({self.loop}, {self._protocol}, {self.serial})'.format(self=self)
95
0 commit comments