<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/pycoder-s-weekly-fhxycryw1" -->

---
title: PyCoder’s Weekly | daily.dev
description: A curated roundup of Python news and articles covering dictionary and set performance limits, an introduction to property-based testing with Hypothesis, a...
canonical: https://daily.dev/posts/pycoder-s-weekly-fhxycryw1
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: PyCoder’s Weekly | daily.dev
og:description: A curated roundup of Python news and articles covering dictionary and set performance limits, an introduction to property-based testing with Hypothesis, a...
og:url: https://daily.dev/posts/pycoder-s-weekly-fhxycryw1
og:image: https://api.daily.dev/og/posts/fhXycRYW1.png
og:image:alt: PyCoder’s Weekly
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PyCoder’s Weekly

**[Planet Python](https://daily.dev/sources/planetpython)** · 4 min read · 0 upvotes · 0 comments

## Summary

A curated roundup of Python news and articles covering dictionary and set performance limits, an introduction to property-based testing with Hypothesis, a preview of lazy imports coming in Python 3.15, a PyPI file-hosting incident report, and a deep dive on how attribute access deoptimization changed in CPython 3.11+. Also included: Django Q() objects, a profile of Guido van Rossum, a tiny Python interpreter written in 1024 bytes, a Wagtail CLI prototype, and several open-source project links including import-linter, Plotext 6, and dbmask.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://pycoders.com/issues/752>

## Questions this post answers

### Why do Python dictionaries and sets sometimes have worse than O(1) lookup performance?

Dictionaries and sets can exhibit quadratic-time performance because the common assumption of constant-time O(1) operations only holds for smaller containers. As containers grow, collision handling and resizing behavior can degrade performance, making certain patterns of repeated inserts or lookups scale poorly compared to the naive expectation.

_Developers optimizing hot loops around dict or set usage can track deeper performance breakdowns like this on daily.dev._

### What are lazy imports in Python 3.15 and how do they affect startup time?

Lazy imports in Python 3.15 defer loading heavy modules until they are actually used, which reduces an application's startup time. Not every import can be deferred this way; some modules still need to load eagerly depending on how they're used in the code, so understanding which imports qualify is part of adopting the feature.

_Teams planning a Python 3.15 upgrade can follow lazy import changes like this on daily.dev._

### Why is hoisting attribute access out of a loop no longer the reason for speedups in modern CPython?

The traditional explanation that hoisting attributes out of a loop speeds things up by avoiding repeated dictionary lookups stopped being accurate starting with CPython 3.11. Reading an object's __dict__ once actually deoptimizes attribute access in more recent interpreter versions, changing the performance reasoning developers previously relied on for this micro-optimization.

_Developers chasing CPython performance nuances can keep up with interpreter-level changes like this on daily.dev._

## Similar posts on daily.dev

- [PyCoder’s Weekly](https://daily.dev/posts/pycoder-s-weekly-eg2o8u0ws) · Planet Python · 0 upvotes · 0 comments
- [PyCoder’s Weekly](https://daily.dev/posts/pycoder-s-weekly-6ho8fly1b) · Planet Python · 0 upvotes · 0 comments
- [PyCoder’s Weekly](https://daily.dev/posts/pycoder-s-weekly-oekitkw2s) · Planet Python · 0 upvotes · 0 comments
- [PyCoder’s Weekly](https://daily.dev/posts/pycoder-s-weekly-obgp6w4dv) · Planet Python · 2 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#testing](https://daily.dev/tags/testing), [#django](https://daily.dev/tags/django), [#cpython](https://daily.dev/tags/cpython)

[View this post on daily.dev](https://daily.dev/posts/pycoder-s-weekly-fhxycryw1)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"PyCoder’s Weekly","url":"https://daily.dev/posts/pycoder-s-weekly-fhxycryw1","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/pycoder-s-weekly-fhxycryw1"},"datePublished":"2026-09-15T19:53:06.044Z","dateModified":"2026-09-15T19:53:28.838Z","description":"A curated roundup of Python news and articles covering dictionary and set performance limits, an introduction to property-based testing with Hypothesis, a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3019a598bb7011e2897c32cd2e686224?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3019a598bb7011e2897c32cd2e686224?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Planet Python","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Planet Python","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/eac3cc584cb043b5a242d13752bd3d0c","url":"https://daily.dev/sources/planetpython"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/pycoder-s-weekly-fhxycryw1","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,testing,django,cpython","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Planet Python","item":"https://daily.dev/sources/planetpython"},{"@type":"ListItem","position":3,"name":"PyCoder’s Weekly"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/pycoder-s-weekly-fhxycryw1#faq","mainEntity":[{"@type":"Question","name":"Why do Python dictionaries and sets sometimes have worse than O(1) lookup performance?","acceptedAnswer":{"@type":"Answer","text":"Dictionaries and sets can exhibit quadratic-time performance because the common assumption of constant-time O(1) operations only holds for smaller containers. As containers grow, collision handling and resizing behavior can degrade performance, making certain patterns of repeated inserts or lookups scale poorly compared to the naive expectation. Developers optimizing hot loops around dict or set usage can track deeper performance breakdowns like this on daily.dev."}},{"@type":"Question","name":"What are lazy imports in Python 3.15 and how do they affect startup time?","acceptedAnswer":{"@type":"Answer","text":"Lazy imports in Python 3.15 defer loading heavy modules until they are actually used, which reduces an application's startup time. Not every import can be deferred this way; some modules still need to load eagerly depending on how they're used in the code, so understanding which imports qualify is part of adopting the feature. Teams planning a Python 3.15 upgrade can follow lazy import changes like this on daily.dev."}},{"@type":"Question","name":"Why is hoisting attribute access out of a loop no longer the reason for speedups in modern CPython?","acceptedAnswer":{"@type":"Answer","text":"The traditional explanation that hoisting attributes out of a loop speeds things up by avoiding repeated dictionary lookups stopped being accurate starting with CPython 3.11. Reading an object's __dict__ once actually deoptimizes attribute access in more recent interpreter versions, changing the performance reasoning developers previously relied on for this micro-optimization. Developers chasing CPython performance nuances can keep up with interpreter-level changes like this on daily.dev."}}]}
```

