Basically, I think it would be need if we could write first, *tail = np.array([1,2,3])
and have tail be a np.ndarray. Currently, the result is list. Either, python could try initializing the object using the received type, or one could introduce a new dunder classmethod __from_iterable__ that custom classes can implement. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/LQNY6ELK3BKI664DGQEC3IEEWIFZOUZW/ Code of Conduct: http://python.org/psf/codeofconduct/