]> sigrok.org Git - libsigrok.git/commit
bindings/python: Add __repr__() to 'Channel' class
authorMarc Schink <redacted>
Fri, 29 Mar 2024 12:41:40 +0000 (13:41 +0100)
committerSoeren Apel <redacted>
Thu, 20 Nov 2025 18:01:37 +0000 (19:01 +0100)
commit6b0093a43998e2f0aead87313f77dad75aa524ca
treeec6bb00c73aabb4d727cc1a63b1cfba15760ad2f
parent90a9e8916111b4d0d8c0f52894b1870d6b987555
bindings/python: Add __repr__() to 'Channel' class

The following lines show the class string representation before and
after this patch:

<sigrok.core.classes.Channel; proxy of <Swig Object of type 'std::shared_ptr< sigrok::Channel > *' at 0x7fdf4b29ff00> >
Channel (type=ChannelType.LOGIC, name='D0', index=0, enabled=True)

Signed-off-by: Marc Schink <redacted>
bindings/python/sigrok/core/classes.i