Thread (6 messages) 6 messages, 3 authors, 6d ago

Re: [PATCH net-next 1/2] tools: ynl: pyynl: re-export the library API from the package root

From: Donald Hunter <donald.hunter@gmail.com>
Date: 2026-06-30 10:11:50

Jakub Kicinski [off-list ref] writes:
The public classes live in pyynl.lib, so users had to spell out

  from pyynl.lib import YnlFamily

which I forget at least once a month. Re-export lib's API from
the package __init__ so that

  from pyynl import YnlFamily

works as well. I don't think there was a real reason not to do
this?

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help