ImagingDataCommons / highdicom

High-level DICOM abstractions for the Python programming language
https://highdicom.readthedocs.io
MIT License
162 stars 34 forks source link

Creating a list from a list is equivalent to a copy #261

Closed DimitriPapadopoulos closed 9 months ago

DimitriPapadopoulos commented 9 months ago

In that case, I find calling .copy() is more readable.

However, do we really need this copy? The list unique_instance_data is initialised in this function and then returned. What's the point of copying it?