ndarray comparisons #277

Closed
opened 2022-04-27 10:51:19 +08:00 by sb10q · 1 comment

This probably still produces nonsense.

numpy makes == return an array of bools with the elementwise results. This is an abomination in terms of language design (equality comparison should have a boolean result!), but we should at least cleanly disallow comparisons as long as we don't (yet) support them.

Originally posted by @dpn in M-Labs/artiq-zynq#122 (comment)

This probably still produces nonsense. numpy makes `==` return an array of bools with the elementwise results. This is an abomination in terms of language design (equality comparison should have a boolean result!), but we should at least cleanly disallow comparisons as long as we don't (yet) support them. _Originally posted by @dpn in https://git.m-labs.hk/M-Labs/artiq-zynq/issues/122#issue-375_
dpn was assigned by sb10q 2022-04-27 11:00:53 +08:00
Collaborator

Non-chained comparison operators are implemented in #390.

Non-chained comparison operators are implemented in #390.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#277
There is no content yet.