---
title: "Discussion on \"Python's all docs are misleading\" | Hashnode"
description: "Discussion on \"Python's all docs are misleading\". Going by the documentation for all, one would think all iterables will early return.\n\nThe following code will throw an AttributeError on the last item of the list iteratable.\ndef bad_all(o: object, att: str, l: list):\n    if all([o is not None, getat..."
url: "https://hashnode.com/posts/pythons-all-docs-are-misleading/66eeb276fb6d2a134f3a5990"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python's all docs are misleading](https://blog.danwald.me/pythons-all-docs-are-misleading?utm_source=hashnode&utm_medium=feed)

Going by the documentation for all, one would think all iterables will early return. The following code will throw an AttributeError on the last item of the list iteratable. def bad\_all(o: object, att: str, l: list): if all(\[o is not None, getat...

Sep 21, 2024 · 1 min read · blog.danwald.me  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#boolean](https://hashnode.com/tag/boolean)
-   [#logic](https://hashnode.com/tag/logic)
-   [#generators](https://hashnode.com/tag/generators)
-   [#iterable](https://hashnode.com/tag/iterable)

## Written by

[Danny Crasto](https://hashnode.com/@danwald)

@danwald · dubai, uae

  
[View profile](https://hashnode.com/@danwald)

backend/cloud engineer | mentor | pythonista

I am developer/code-reviewer/debugger/bug-fixer/architect/teacher/builder from dubai, uae

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
