Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
PEP 646 – Variadic Generics
(
python.org
)
2 points
by
tda
on March 30, 2022
|
hide
|
past
|
favorite
|
1 comment
tda
on March 30, 2022
[–]
Being able to specify the shape of arrays will really help me when typing numeric code. I recently wrote:
RotationMatrix_3x3 = npt.NDArray TranslationVector_3x1 = npt.NDArray
and that felt kind of gross. But for numpy heavy it is really useful to know and specify the size of matrices. Will switch over the minute 3.11 lands
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: