support user-defined context managers #75

Open
opened 2021-11-05 18:13:45 +08:00 by sb10q · 3 comments

currently (d6f0607ff0) fails with:

thread '<unnamed>' panicked at 'not implemented', /home/sb/nac3/nac3core/src/codegen/stmt.rs:300:5
currently (d6f0607ff00cd5d38f69cb349e2c2e2e7ac108c4) fails with: ``` thread '<unnamed>' panicked at 'not implemented', /home/sb/nac3/nac3core/src/codegen/stmt.rs:300:5 ```
sb10q added the
low-priority
label 2021-11-05 18:13:45 +08:00
pca006132 was assigned by sb10q 2021-11-05 18:16:01 +08:00
Poster
Owner
See also: https://github.com/m-labs/artiq/issues/1478
pca006132 was unassigned by sb10q 2021-12-21 18:47:34 +08:00
ychenfo was assigned by sb10q 2021-12-21 18:47:37 +08:00
Poster
Owner

Needed by DMA (artiq.coredevice.dma).

Needed by DMA (``artiq.coredevice.dma``).
sb10q removed the
low-priority
label 2022-02-28 10:33:36 +08:00
sb10q added this to the Alpha milestone 2022-02-28 10:50:27 +08:00
Poster
Owner

We need to do something about the __exit__ signature for @portable context managers.
See this workaround with *exc_info (currently NAC3 ignores varargs):
125572b553 (diff-59df9cc96c1fa2c93ec7f1ef110ca55b4eb066b4d8aa7d81e61a9d42ced249acR213)

We need to do something about the ``__exit__`` signature for ``@portable`` context managers. See this workaround with ``*exc_info`` (currently NAC3 ignores varargs): https://github.com/m-labs/artiq/commit/125572b5531209146ef60259f0e789a6775155c5#diff-59df9cc96c1fa2c93ec7f1ef110ca55b4eb066b4d8aa7d81e61a9d42ced249acR213
Sign in to join this conversation.
No Milestone
No Assignees
1 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#75
There is no content yet.