[libgpiod] python binding decidedly unpythonic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I just started working with python3-libgpiod and noticed that it is decidedly unpythonic.

For example the Line object functions active_state, consumer, direction, is_open_drain, is_open_source, is_requested, is_used, name, offset and owner should be properties, and set_value/get_value should be merged into one property.

Line.direction should probably also be writable for bidirectional pin use.

Regards

Darrien




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux