What is the difference between `deepcopy` and `shallow copy`?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
A shallow copy creates a new object but does not create copies of nested objects, while a deep copy creates copies of all nested objects as well.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nashiinformaticssolutions
A deep copy duplicates the actual content, while a shallow copy duplicates only references.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nashiinformaticssolutions
• Shallow copy: Copies only the pointer, not the actual data.
• Deep copy: Creates a new memory allocation and copies the data.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• Shallow copy: Copies only the pointer, not the actual data.
• Deep copy: Creates a new memory allocation and copies the data.
| Is This Answer Correct ? | 0 Yes | 0 No |
A shallow copy creates a new object but does not create copies of nested objects, while a deep copy creates copies of all nested objects as well.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain how you can minimize the memcached server outages in your python development?
Mention the concept used in python for memory managing
What if you want to toggle case for a python string?
What are the other languages that support strongly for regular expressions?
How is numpy different from scipy?
Is python used for frontend or backend?
In python, can you name the data science and machine learning libraries?
What is a script file in python?
What is decorators?
What is lambda in python 3?
Explain about lambda in python?
Is it worth to learn python in 2019?