* [libre-riscv-dev] [Bug 297] New: nmutil "flatten" function already exists
@ 2020-05-01 13:31 bugzilla-daemon
2020-05-01 14:35 ` [libre-riscv-dev] [Bug 297] " bugzilla-daemon
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: bugzilla-daemon @ 2020-05-01 13:31 UTC (permalink / raw)
To: libre-riscv-dev
https://bugs.libre-soc.org/show_bug.cgi?id=297
Bug ID: 297
Summary: nmutil "flatten" function already exists
Product: Libre-SOC's first SoC
Version: unspecified
Hardware: PC
OS: Linux
Status: CONFIRMED
Severity: enhancement
Priority: ---
Component: Source Code
Assignee: lkcl@lkcl.net
Reporter: lkcl@lkcl.net
CC: libre-riscv-dev@lists.libre-riscv.org
NLnet milestone: ---
nmigen already has a flatten function:
from nmigen._utils import flatten
whether we can rely on that staying there needs to be investigated
with whitequark
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] 7+ messages in thread
* [libre-riscv-dev] [Bug 297] nmutil "flatten" function already exists
2020-05-01 13:31 [libre-riscv-dev] [Bug 297] New: nmutil "flatten" function already exists bugzilla-daemon
@ 2020-05-01 14:35 ` " bugzilla-daemon
2020-05-01 20:51 ` bugzilla-daemon
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2020-05-01 14:35 UTC (permalink / raw)
To: libre-riscv-dev
https://bugs.libre-soc.org/show_bug.cgi?id=297
Jacob Lifshay <programmerjake@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|lkcl@lkcl.net |whitequark@whitequark.org
CC| |programmerjake@gmail.com,
| |whitequark@whitequark.org
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] 7+ messages in thread
* [libre-riscv-dev] [Bug 297] nmutil "flatten" function already exists
2020-05-01 13:31 [libre-riscv-dev] [Bug 297] New: nmutil "flatten" function already exists bugzilla-daemon
2020-05-01 14:35 ` [libre-riscv-dev] [Bug 297] " bugzilla-daemon
@ 2020-05-01 20:51 ` bugzilla-daemon
2020-05-01 21:28 ` bugzilla-daemon
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2020-05-01 20:51 UTC (permalink / raw)
To: libre-riscv-dev
https://bugs.libre-soc.org/show_bug.cgi?id=297
--- Comment #1 from whitequark@whitequark.org ---
Anything that starts with _ is a private function according to Python
conventions and can be changed or removed without notice by nMigen.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] 7+ messages in thread
* [libre-riscv-dev] [Bug 297] nmutil "flatten" function already exists
2020-05-01 13:31 [libre-riscv-dev] [Bug 297] New: nmutil "flatten" function already exists bugzilla-daemon
2020-05-01 14:35 ` [libre-riscv-dev] [Bug 297] " bugzilla-daemon
2020-05-01 20:51 ` bugzilla-daemon
@ 2020-05-01 21:28 ` bugzilla-daemon
2020-05-01 21:55 ` bugzilla-daemon
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2020-05-01 21:28 UTC (permalink / raw)
To: libre-riscv-dev
https://bugs.libre-soc.org/show_bug.cgi?id=297
--- Comment #2 from Jacob Lifshay <programmerjake@gmail.com> ---
(In reply to whitequark from comment #1)
> Anything that starts with _ is a private function according to Python
> conventions and can be changed or removed without notice by nMigen.
That's what I thought. Would you be open to changing `flatten` to a public API,
or should we just keep using the duplicate in nmutil?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] 7+ messages in thread
* [libre-riscv-dev] [Bug 297] nmutil "flatten" function already exists
2020-05-01 13:31 [libre-riscv-dev] [Bug 297] New: nmutil "flatten" function already exists bugzilla-daemon
` (2 preceding siblings ...)
2020-05-01 21:28 ` bugzilla-daemon
@ 2020-05-01 21:55 ` bugzilla-daemon
2020-05-01 22:00 ` bugzilla-daemon
2020-05-01 23:04 ` bugzilla-daemon
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2020-05-01 21:55 UTC (permalink / raw)
To: libre-riscv-dev
https://bugs.libre-soc.org/show_bug.cgi?id=297
--- Comment #3 from whitequark@whitequark.org ---
> Would you be open to changing `flatten` to a public API
Why should it be a public API of nmigen? It's a general purpose utility
function for iterables. It should be a public API of itertools, or another
package like that.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] 7+ messages in thread
* [libre-riscv-dev] [Bug 297] nmutil "flatten" function already exists
2020-05-01 13:31 [libre-riscv-dev] [Bug 297] New: nmutil "flatten" function already exists bugzilla-daemon
` (3 preceding siblings ...)
2020-05-01 21:55 ` bugzilla-daemon
@ 2020-05-01 22:00 ` bugzilla-daemon
2020-05-01 23:04 ` bugzilla-daemon
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2020-05-01 22:00 UTC (permalink / raw)
To: libre-riscv-dev
https://bugs.libre-soc.org/show_bug.cgi?id=297
Jacob Lifshay <programmerjake@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|whitequark@whitequark.org |lkcl@lkcl.net
--- Comment #4 from Jacob Lifshay <programmerjake@gmail.com> ---
(In reply to whitequark from comment #3)
> > Would you be open to changing `flatten` to a public API
>
> Why should it be a public API of nmigen? It's a general purpose utility
> function for iterables. It should be a public API of itertools, or another
> package like that.
yeah, makes sense.
Luke, unless you want to pursue that option, I'll let you close this as
won't-fix.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] 7+ messages in thread
* [libre-riscv-dev] [Bug 297] nmutil "flatten" function already exists
2020-05-01 13:31 [libre-riscv-dev] [Bug 297] New: nmutil "flatten" function already exists bugzilla-daemon
` (4 preceding siblings ...)
2020-05-01 22:00 ` bugzilla-daemon
@ 2020-05-01 23:04 ` bugzilla-daemon
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2020-05-01 23:04 UTC (permalink / raw)
To: libre-riscv-dev
https://bugs.libre-soc.org/show_bug.cgi?id=297
--- Comment #5 from Luke Kenneth Casson Leighton <lkcl@lkcl.net> ---
sigh. it has to be a public function of a pacjsge... by us. named nmutil.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, back to index
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-01 13:31 [libre-riscv-dev] [Bug 297] New: nmutil "flatten" function already exists bugzilla-daemon
2020-05-01 14:35 ` [libre-riscv-dev] [Bug 297] " bugzilla-daemon
2020-05-01 20:51 ` bugzilla-daemon
2020-05-01 21:28 ` bugzilla-daemon
2020-05-01 21:55 ` bugzilla-daemon
2020-05-01 22:00 ` bugzilla-daemon
2020-05-01 23:04 ` bugzilla-daemon
Libre RISC-V Mailing list Archives (accessible via public-inbox)
Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev
Example config snippet for mirrors
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git