scikit-hep / awkward

Manipulate JSON-like data with NumPy-like idioms.
https://awkward-array.org
BSD 3-Clause "New" or "Revised" License
820 stars 85 forks source link

ArrayBuilder-in-Numba context managers #1821

Open ianna opened 1 year ago

ianna commented 1 year ago

Description of new feature

Originally posted by @jpivarski in https://github.com/scikit-hep/awkward/issues/1438: "ArrayBuilder-in-Numba's lack of context managers list, record, and tuple is known because it's waiting on context managers as a feature from Numba, but it sounds like this will be implemented soon, and Awkward Array will be a first use-case."

jpivarski commented 7 months ago

For this issue, watch Numba's supported Python features page. As of right now, it still says,

Partially supported constructs:

context manager: with (only support numba.objmode())

If the context manager is ever supported in lowered JIT, then we can use it.