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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/LQNY6ELK3BKI664DGQEC3IEEWIFZOUZW/ Code of Conduct: http://python.org/psf/codeofconduct/
