Linux-GPIO Archive on
 help / color / Atom feed
From: Darrien <>
Subject: [libgpiod] python binding decidedly unpythonic
Date: Fri, 13 Sep 2019 14:57:57 +0200
Message-ID: <> (raw)


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.



             reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-13 12:57 Darrien [this message]
2019-09-14  8:42 ` Bartosz Golaszewski
2019-09-13 15:37 Darrien

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-GPIO Archive on

Archives are clonable:
	git clone --mirror linux-gpio/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-gpio linux-gpio/ \
	public-inbox-index linux-gpio

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox