The Real Python Podcast cover image

Pydantic Data Validation & Python Web Security Practices

The Real Python Podcast

00:00

Understanding Python List Multiplication and Object References

Exploration of a Python coding issue where multiplying a list containing inner lists results in unexpected behavior due to object references. The chapter delves into how appending to one inner list affects all repeated inner lists and transitions into explaining the Python internals behind the counterintuitive behavior.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app