Python: How to copy lists of list or lists of objects

preview_player
Показать описание
I ran into a nasty little gotcha when writing a QR Code generator in Python. It turns out that when you copy a list the right way, it doesn't necessarily copy the objects inside as new objects. Whenever you copy a list of objects (a list of lists is actually a list of list objects) you need to use deepcopy. This video shows you the why and how of that process. You may also read the description along with the code by following this link:
Рекомендации по теме
Комментарии
Автор

Not a second was wasted on this video and yet, gave me full understanding of this topic.

ahyungrocks
Автор

Neatly explained! Best!!!! Most importantly, without sounding condescending anywhere... Thanks a lot!

vedhasp
Автор

thank you for the video it helped me a lot

huseyinsimsek
Автор

Thanks for showing an actual real world problem! :D

victornaut
Автор

Thank you very much sir.
this was so helpful.

ragibshahariar
Автор

It saved me tons of time!

God bless you!

MrCatastropha
Автор

Thank you very much for this. Very helpful and thourough explanation. :)

whispersandechoes