Description
Python's Ellipsis (...) when used as an array index is not converted properly. In NumPy, arr[...] means "all elements" or "broadcast to all".
Python Input
self[...] = filler
result = arr[..., 0]
data[0, ...] = values
Current Output (v1.3.2)
self[...] = filler; // INVALID! Spread syntax can't be used as index
result = arr[..., 0]; // INVALID!
data[0, ...] = values; // INVALID!
Expected Output
Option A - Keep as-is with a placeholder constant:
const ELLIPSIS = Symbol('...')
self[ELLIPSIS] = filler; // Still needs runtime support
Option B - Convert to appropriate NumPy-like method:
self.fill(filler);
result = arr.slice(null, 0); // or arr.at(Ellipsis, 0)
Priority
🟡 Medium - NumPy-specific pattern
Notes
This is a NumPy-specific pattern. The Ellipsis literal in Python is a special singleton used for multi-dimensional array slicing.
Description
Python's Ellipsis (
...) when used as an array index is not converted properly. In NumPy,arr[...]means "all elements" or "broadcast to all".Python Input
Current Output (v1.3.2)
Expected Output
Option A - Keep as-is with a placeholder constant:
Option B - Convert to appropriate NumPy-like method:
Priority
🟡 Medium - NumPy-specific pattern
Notes
This is a NumPy-specific pattern. The Ellipsis literal in Python is a special singleton used for multi-dimensional array slicing.