Linux Journal: Why Not Python?, Part 4 | Linux Today

Linux Journal: Why Not Python?, Part 4

Written By
Web Webster
Web Webster
Feb 13, 2006

“To solve the puzzle presented and discussed in Part 3 of this
series, as well as similar puzzles, I have to figure out how to
code Step 2.6 in Python. (See Part 3 for an outline of all the
steps in this problem-solving exercise.) The code should be
straightforward, except for saving (Step 2.6.1) and restoring (Step
2.6.4) values of compound data structures.

“In fact, this part of the code turned out to be harder to write
than I expected. A list of my mistakes can be seen below in
Appendix B, but the important lesson is this: simply assigning a
list doesn’t copy it, as Learning Python says. Instead, another
reference is created to the same list…”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.