Message378533
Have you observed actual users getting confused by this? (E.g. StackOverflow or mailing list posts.) I would assume that if you try to *do* anything with the resulting object it's going to cause a traceback, and from there it's pretty straightforward to debug the situation. (Maybe not for absolute beginners, but they have a lot of ways to confuse themselves. :-)
There are people working on proposals for "integer variadics" that would actually give meaning to things like list[10] (or at least to A[10] and A[N, M] where A is a tensor type) so I am reluctant to forbid this now -- we might have to allow it in the next release. |
|
Date |
User |
Action |
Args |
2020-10-12 23:22:52 | gvanrossum | set | recipients:
+ gvanrossum, levkivskyi, kj |
2020-10-12 23:22:52 | gvanrossum | set | messageid: <1602544972.67.0.317758800495.issue42010@roundup.psfhosted.org> |
2020-10-12 23:22:52 | gvanrossum | link | issue42010 messages |
2020-10-12 23:22:52 | gvanrossum | create | |
|