<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/python-iceberg-houoffu2k" -->

---
title: Python Iceberg | daily.dev
description: An interactive visualization styled as an iceberg diagram, intended to surface Python's quirks, footguns, and obscure implementation details, but the page...
canonical: https://daily.dev/posts/python-iceberg-houoffu2k
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Python Iceberg | daily.dev
og:description: An interactive visualization styled as an iceberg diagram, intended to surface Python's quirks, footguns, and obscure implementation details, but the page...
og:url: https://daily.dev/posts/python-iceberg-houoffu2k
og:image: https://api.daily.dev/og/posts/HouoffU2k.png
og:image:alt: Python Iceberg
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.

# Python Iceberg

**[Lobsters](https://daily.dev/sources/lobsters)** · 1 min read · 0 upvotes · 0 comments

## Summary

An interactive visualization styled as an iceberg diagram, intended to surface Python's quirks, footguns, and obscure implementation details, but the page content itself failed to load in this rendering.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://aleyan.com/projects/python-iceberg>

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 17 comments across lobsters, hackernews (as of 2026-09-14).

**TL;DR:** Discussion is skeptical of the iceberg gimmick and curation method, with detailed critiques of item selection, ordering, and the 3D presentation, though a few find genuine value in the underlying content and appreciate the author's transparency about using LLMs to rank items.

**Sentiment:** 15% positive · 45% mixed · 40% skeptical

**The case for**

- Some find it a genuinely useful collection of Python footguns once they look past the gimmick.
- One commenter appreciated finding the raw data (a TOML file of ranked items) embedded in the page source.
- The author's transparent explanation of the LLM-based ranking methodology was well received as a thoughtful response.

**The pushback**

- The rotating 3D iceberg format makes it hard to read everything or find specific items, and adds unwanted horizontal scrolling.
- The selection criteria for items seem inconsistent or thoughtless, with niche items like PEP-578 audit hooks overrepresented and basic subprocess behavior placed too deep.
- Using LLMs to score obscurity/cursedness produced questionable results, e.g. wildly inconsistent scores for shell=True security risk.
- Including explanations undercuts the traditional iceberg-meme appeal of leaving deeper items as puzzles to figure out.
- There are too many entries, making the format feel self-indulgent and less enjoyable than a simpler presentation would be.
- Presenting documented, expected behaviors like assertions disappearing under -O without context risks confusing readers about their intended purpose.

**By community**

- lobsters (mixed): A detailed critical review of the curation and format sparked substantive debate, but the author engaged constructively and some commenters found real value in the content.
- hackernews (mixed): No comment content was provided, so sentiment cannot be meaningfully assessed.

**Hottest debate:** Whether the iceberg's item selection and LLM-driven obscurity/cursedness ranking reflect real, well-reasoned curation or a somewhat arbitrary and security-skewed process.

**Open questions**

- How exactly were the specific items and their placement chosen, and could the process be made more transparent or rigorous?
- Should logging/multiprocessing deadlocks and similar issues have been included but were missing?
- Could the presentation be improved for desktop/mobile so all items are easily readable without occlusion or scroll issues?

**Highlights**

> I think the gimmick makes this worse than if these were presented more traditionally. I think it also encouraged the inclusion of some extremely dubious entries, many of which do not demonstrate a particularly fluent understanding of the language semantics.  Is the implication that these are design mistakes, hidden but necessary knowledge, unavoidable complexities? It's not particularly clear how the entries were selected. (For example, it's surprising that [PEP-578 audit hooks](https://peps.python.org/pep-0578/) are represented more than once—they're a fairly niche feature, and I believe I may have worked on one of the only large-scale attempts to deploy these in a codebase—in fact, the one that motivated the PEP in the first place.)  Some of the entries (e.g., “Assertions disappear with `-O`”) are documented, expected, desired behaviour, so I suspect that these are intended to represent knowledge one must have to be effective, but the presentation does not encourage us to contextualise that knowledge into any system of meaning (e.g., that assertions are a programmatic documentation mechanism) or connect that knowledge to anything (e.g., that the compiler can perform dead-code elimination on statically-knowable unreachable branches like `if __debug__`; thus, `assert` can be used together with `if __debug__` to support in-depth programmatic documentation approaches.) The order in which these are presented should also be revisited. Why are obvious details of the `subprocess` module (e.g., the behaviour of `shell=True`) so deep? I'm led to believe that these items were selected without much (human?) thought…
> — [dutc on lobsters · 16 points, 2 comments](https://lobste.rs/s/xv6z4r/python_iceberg#c_sq6lik)

> > I think the gimmick makes this worse than if these were presented more traditionally. There is some usefulness/usability vs fun trade off, and I picked fun. Did you view it on mobile or desktop and face any particular issues from the presentation? > Is the implication that these are design mistakes, hidden but necessary knowledge, unavoidable complexities? No implications are made. As for necessity, I think the above the waterline stuff is hard for a python dev to avoid encountering, but below things get obscure and lots of python devs are effective without knowing most of them. > documented, expected, desired behaviour Correct. All of these are known things, and most of them link back to official documentation. > The order in which these are presented should also be revisited. Why are obvious details of the subprocess module (e.g., the behaviour of shell=True) so deep? I'm led to believe that these items were selected without much (human?) thought… The `shell=True` also bothered me, but not enough to investigate until you mentioned it. I had gpt-5.6-sol, claude-opus-5, and gemini-3.8-flash rank candidate items on obscurity and cursedness. Their scores were averaged and items were bucketed into deciles by obscurity, and top 10 most cursed items from each bucket were selected. Least obscure items are above the waterline and most obscure got placed down in the abyss. The interesting about the [shell=True command injection](https://aleyan.com/projects/python-iceberg/?item=shell-true-enables-command-injection) is that claude-opus-5 and gemini-3.8-flash gave it an obscurity of 2.2 and 2.5 and sol gave it an obscurity of 6.1! Overall, the models judged items with security implications as more cursed, which while is expected and fair, I don't think is what people want to see. Combined these two issues made `shell=True` more cursed and lower on the iceberg than it should have been. Thank you for the detailed response! A lot to consider.
> — [aleyan on lobsters · 4 points](https://lobste.rs/s/xv6z4r/python_iceberg#c_5dm4zb)

> I don’t want to be rude to OP, but this link is an object lesson in “less is more.” There are too many entries. The 3D makes it worse to view. Including explanations weakens the iceberg meme format, since the deeper entries typically serve as little puzzles/mysteries even to people who know the topic very well. If this were a regular iceberg meme photo, it would have been more fun for the viewer but less fun for the maker. So it’s self-indulgent. Often people think that communication that’s more fun to make is more fun to consume, and I see this as an example of that confusion.
> — [wmurra on lobsters · 2 points](https://lobste.rs/s/xv6z4r/python_iceberg#c_nnoic4)

> I kinda like this "iceberg" format and there'a good stuff here, but I kinda wish it didn't rotate and occlude stuff on the other side. As is, there's no practical way for me to read them all or look for a specific thing. I went into this wondering where you put logging/multiprocess deadlocks, and i'm not sure if I missed it or you didn't rank it.
> — [landon on lobsters · 2 points, 1 comments](https://lobste.rs/s/xv6z4r/python_iceberg#c_vlt9ag)

> After I realized it's not just a gimmick, but a really good library of footguns, my next thought was, "wouldn't it be nice to have it as a text". And then I thought, "but of course the page should have it somewhere in the source". And after a little digging I found it: ``` # Selected Python iceberg items, ordered from the top of the iceberg to the bottom. # Names and descriptions are derived from candidates.toml by stable candidate slug. # Ratings are arithmetic means of GPT, Claude, and Gemini scores. schema_version = 1 item_count = 110 ratings_models = ["gpt-5.6-sol", "claude-opus-5", "gemini-3.8-flash"] [[items]] slug = "eval-and-exec-are-not-sandboxes" name = "\`eval()\` and \`exec()\` are not sandboxes" short_description = "\`eval()\` evaluates a Python expression and \`exec()\` executes Python statements. Neither is a sandbox: removing or replacing \`__builtins__\` is not a reliable security boundary, so passing either function untrusted input is a code-execution vulnerability." url = "https://docs.python.org/3.14/library/functions.html#eval" obscurity_bucket = 1 obscurity_rating = 2.73 cursedness_rating = 7.93 [[items]] slug = "mutable-default-arguments-are-shared" name = "Mutable default arguments" short_description = "Default argument expressions are evaluated once, when the function is defined. A list, dictionary, or other mutable default therefore persists across every call that omits that argument." url = "https://docs.python.org/3.14/faq/programming.html#why-are-default-values-shared-between-objects" obscurity_bucket = 1 obscurity_rating = 1.60 cursedness_rating = 6.70 [[items]] slug = "sequence-repetition-aliases-nested-objects" name = "List repetition and aliasing" short_description = "\`[[]] * 3\` creates three references to one inner list. Appending to any row therefore changes all three rows, instead of updating just one row of a matrix." url = "https://docs.python.org/3.14/library/stdtypes.html#common-sequence-operations" obscurity_bucket = 1 obscurity_rating = 2.60 cursedness_rating = 6.43 [[items]] slug = "closures-capture-variables-not-values" name = "Late-binding closures" short_description = "Closures look up captured variables when called. Functions created in a loop therefore see the loop variableâ€™s final value when called after the loop, unless each binds a separate value." url = "https://docs.python.org/3.14/faq/programming.html#why-do-lambdas-defined-in-a-loop-with-different-values-all-return-the-same-result" obscurity_bucket = 1 obscurity_rating = 2.27 cursedness_rating = 6.37 [[items]] slug = "zip-silently-truncates" name = "Silent \`zip()\` truncation" short_description = "By default, \`zip(a, b)\` stops when either iterable ends and says nothing about extra data. Length mismatches can quietly drop records unless \`strict=True\` is used." url = "https://docs.python.org/3.14/library/functions.html#zip" obscurity_bucket = 1 obscurity_rating = 2.20 cursedness_rating = 6.10 [[items]] slug = "nan-is-not-equal-to-itself" name = "NaN and non-reflexive equality" short_description = "For \`nan = float(\\"nan\\")\`, \`nan == nan\` is \`False\`, yet \`nan in [nan]\` is \`True\`: built-in containers check identity as well as equality. Distinct NaN objects can also coexist in a set." url = "https://docs.python.org/3.14/reference/expressions.html#value-comparisons" obscurity_bucket = 1 obscurity_rating = 2.33 cursedness_rating = 5.87 [[items]] slug = "round-uses-ties-to-even-on-binary-floats" name = "Round half to even (bankersâ€™ rounding)" short_description = "\`round(0.5)\` is \`0\` and \`round(1.5)\` is \`2\`: exact ties go to the even choice. Binary representation adds another surprise: \`round(2.675, 2)\` is \`2.67\` because the stored float is slightly below the halfway point." url = "https://docs.python.org/3.14/library/functions.html#round" obscurity_bucket = 1 obscurity_rating = 2.73 cursedness_rating = 5.53 [[items]] slug = "for-loop-target-leaks-after-the-loop" name = "Loop-variable lea
> — [isagalaev on lobsters · 1 points](https://lobste.rs/s/xv6z4r/python_iceberg#c_ldjyhj)

**Source threads**

- [lobsters](https://lobste.rs/s/xv6z4r/python_iceberg) · 26 points · 17 comments
- [hackernews](https://news.ycombinator.com/item?id=49591702) · 5 points · 0 comments

## Similar posts on daily.dev

- [Apache Polaris with PyIceberg: A Guide](https://daily.dev/posts/apache-polaris-with-pyiceberg-a-guide-ykkijp45z) · Dremio Blog · 0 upvotes · 0 comments
- [New public datasets available in Google Cloud Lakehouse](https://daily.dev/posts/new-public-datasets-available-in-google-cloud-lakehouse-hxwrg2nwn) · Google Open Source Blog · 0 upvotes · 0 comments
- [Iceberg in the Browser](https://daily.dev/posts/iceberg-in-the-browser-4kdqxhgvb) · DuckDB · 3 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/python-iceberg-houoffu2k)

```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":"Python Iceberg","url":"https://daily.dev/posts/python-iceberg-houoffu2k","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/python-iceberg-houoffu2k"},"datePublished":"2026-09-07T10:21:06.594Z","dateModified":"2026-09-14T06:32:44.061Z","description":"An interactive visualization styled as an iceberg diagram, intended to surface Python's quirks, footguns, and obscure implementation details, but the page...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/23f325810f5ff58eb39885e08ee10e2f?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/23f325810f5ff58eb39885e08ee10e2f?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Lobsters","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":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/python-iceberg-houoffu2k","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Python Iceberg"}]}
```

