Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Object-Oriented Python Advanced Objects Subclassing Built-ins

George Clement
George Clement
2,816 Points

copy.copy?

in the example I see why he uses copy.copy but don't think I would have intuitively realized that I need to do that... is there any reference material explaining that in more detail?

1 Answer

Viraj Deshaval
Viraj Deshaval
4,874 Points

Hi George,

Please refer the below thread where I have explained why there is a need with example. Hope this helps.

https://teamtreehouse.com/community/i-ran-this-code-without-copy-and-the-code-still-works-what-am-i-missing