Tagged articles

mutable objects

7 articles · Page 1 of 1
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 24, 2022 · Backend Development

Why Your Python Web Crawler Returns Wrong Data and How to Fix It

This article examines a Python web‑crawler issue where the original script returns incorrect results, explains the underlying cause related to mutable data handling, and provides a corrected version of the code that successfully retrieves the desired price data from the Xinfadi website.

data scrapingmutable objectsrequests
0 likes · 6 min read
Why Your Python Web Crawler Returns Wrong Data and How to Fix It
Byte Quality Assurance Team
Byte Quality Assurance Team
Oct 13, 2021 · Fundamentals

Understanding Python Object Assignment, Mutable vs. Immutable Types, and Shallow vs. Deep Copying

This article provides a comprehensive guide to Python's memory management and object assignment mechanisms, clearly explaining the differences between mutable and immutable objects, direct assignment, shallow copying, and deep copying through practical code examples and visual diagrams.

Data StructuresDeep CopyImmutable Objects
0 likes · 7 min read
Understanding Python Object Assignment, Mutable vs. Immutable Types, and Shallow vs. Deep Copying
Python Programming Learning Circle
Python Programming Learning Circle
Apr 20, 2021 · Fundamentals

Understanding Python Function Parameter Passing: Value vs. Reference

This article explains how Python implements function argument passing, distinguishing value passing—where a copy of the argument is used—from reference passing for mutable objects, illustrating both mechanisms with swap examples, memory diagrams, and concluding with best practices for modifying data inside functions.

Function ParametersPythonmutable objects
0 likes · 10 min read
Understanding Python Function Parameter Passing: Value vs. Reference