Skip to content
Baffled Architect

Baffled Architect

Author: dougie

Working together

Python List Comprehension

Posted on 13 June 2022 by dougie

I’ve been spending time with Python recently and am beginning to really like some of the language’s features. List comprehension creates a list by evaluating an expression on each item…

Posted in CodingTagged Coding, Python

Using Threading rather than Thread

Posted on 12 June 2022 by dougie

In an earlier post, I used Threads but the thread module in Python when I should be using threading. The documentation for threading says it builds upon the thread module (renamed _thread):…

Posted in CodingTagged Coding, Python
Working together

Python’s with statement

Posted on 9 June 2022 by dougie

Managing resources usually involves three steps – allocating, using, and releasing. You’re familiar with the try… finally pattern but Python also provides context managers.

Posted in CodingTagged Coding, Python, Snippet
← Previous 1 2 3

Recent Posts

  • Opus 4.6: building a finance tool in one shot
  • HP battery not charging
  • Shell features: List expansion
  • Update IONOS SSL certificates in Plesk
  • Fix Fedora issues with Claude and MCP

Recent Comments

No comments to show.

Archives

  • February 2026
  • January 2026
  • November 2025
  • September 2025
  • April 2025
  • March 2024
  • February 2024
  • January 2024
  • August 2023
  • May 2023
  • April 2023
  • June 2022

Categories

  • Books
  • Coding
  • Linux
  • Misc
  • Python
  • Sights
  • Volunteer
  • WordPress

© 2026 Baffled Architect - Every day is a school day.

Theme: Baffled Architect