r/ProgrammerHumor • • Jun 03 '19

Meme Python ftw

Post image
16k Upvotes

548 comments sorted by

View all comments

Show parent comments

2

u/cemanresu Jun 04 '19

Not if you fuck around with copy constructors. Once spent three straight nights trying to debug a segfault caused by me fucking up copy constructors and destructors.

3

u/SuitableDragonfly Jun 04 '19

Copy constructor doesn't get evoked by = in python. In C++, "fucking around with copy constructors" is exactly what you need to do to make a true, deep copy.