Tag: python
🤖 AI Guestbook — #python educational data only
|
|
Last 30 days
Agents 35
Claude 34SEMrush 1
PetalBot 6SEMrush 3Google 3Sogou 1Bing 1ChatGPT 1Perplexity 1
Amazonbot 264Perplexity 197Scrapy 155Google 133ChatGPT 110Ahrefs 98Claude 72Unknown AI 57SEMrush 49Bing 43PetalBot 33Meta AI 26Sogou 7Common Crawl 5DuckDuckGo 3Qwen 3Majestic 2
Most referenced — #python
Python async/await & asyncio 3__slots__ & Memory Optimisation 2Advanced Context Managers 2Python Error Handling 2Context Managers & with Statement 2Dict & Set Comprehensions 2List Comprehensions & Generator Expressions 2Pydantic 2
How they use it
crawler 1.2k
crawler_json 78
pre-tracking 10
Tag total1.3k pings
Terms pinged27 / 27
Distinct agents16
Type Narrowing
Python 3.10+
Static type checkers refine a variable's type within a branch based on runtime checks like isinstance, None comparisons, and literal guards.
2d ago
Python intermediate
Python Descriptor Protocol
Python 3.6+
Objects implementing __get__/__set__/__delete__ that intercept attribute access at the class level — the machinery behind property, classmethod, and ORM fields.
3w ago
Python advanced
Metaclass Patterns
Python 3.6+
Metaclasses customize class creation itself — useful for registries, abstract base enforcement, and ORM column collection, but overused where decorators or __init_subclass__ would do.
1mo ago
Python advanced
__slots__ & Memory Optimisation
Python 3.0+
1
Declaring __slots__ on a class prevents the dynamic __dict__ per instance — reducing memory usage by 40-60% for classes with many instances.
3mo ago
Python intermediate
CLI Tools with argparse & Click
Python 3.6+
2
Building Python command-line tools — argparse (stdlib) for simple tools, Click (decorator-based) for complex CLIs with subcommands, type coercion, and better help formatting.
3mo ago
Python intermediate
Dict & Set Comprehensions
Python 2.7+
Python's concise syntax for building dicts, sets, and lists in a single expression — replacing verbose for-loop accumulation patterns.
3mo ago
Python beginner
Exception Groups & except*
Python 3.11+
Python 3.11+ ExceptionGroup allows multiple concurrent exceptions to be raised simultaneously — essential for asyncio.TaskGroup where all tasks run even if some fail.
3mo ago
Python advanced
HTTP in Python — requests & httpx
Python 3.7+
requests is the standard sync HTTP library; httpx adds async support, HTTP/2, and a similar API — both far more ergonomic than urllib.
3mo ago
Python beginner
pathlib & Modern File Handling
Python 3.4+
pathlib.Path provides an object-oriented API for filesystem operations — replacing os.path string manipulation with readable, chainable, and cross-platform path handling.
3mo ago
Python beginner
Python Packaging
Python 3.7+
pyproject.toml with Poetry or PDM replaces setup.py and requirements.txt — providing locked, reproducible, separated dev/prod dependencies like composer.lock.
3mo ago
Python intermediate
Structural Subtyping with Protocol
Python 3.8+
1
Protocol classes define structural interfaces — any class with matching methods satisfies the protocol without explicit inheritance (type-safe duck typing).
3mo ago
Python intermediate
Walrus Operator (:=)
Python 3.8+
The assignment expression operator (Python 3.8+) — assigns a value while also using it in an expression, eliminating repeated computations in while loops and comprehensions.
3mo ago
Python intermediate
Advanced Context Managers
Python 3.1+
Context managers (with statements) manage resource acquisition and release — contextlib provides tools for creating them without a full class definition.
3mo ago
Python intermediate
Advanced Python Dataclasses
Python 3.7+
2
Dataclasses auto-generate __init__, __repr__, __eq__ from field declarations — advanced features include frozen (immutable), slots (memory-efficient), and field metadata.
3mo ago
Python intermediate
The with statement guarantees __exit__ runs even on exception — used for file handles, locks, transactions, and any resource needing cleanup.
3mo ago
Python intermediate
List Comprehensions & Generator Expressions
Python 2.0+
Compact syntax for creating lists — [x*2 for x in range(10) if x%2==0] — and lazy generators that avoid materialising the full sequence.
3mo ago
Python beginner
Pydantic
Python 3.8+
A Python library for data validation using type annotations — defining models as classes with typed fields that validate and coerce input data at runtime.
3mo ago
Python intermediate
Python's native async framework — coroutines, event loop, and asyncio — for concurrent I/O without threads.
3mo ago
Python intermediate
Python Dataclasses & Pydantic
Python 3.7+
3
@dataclass auto-generates __init__, __repr__, __eq__; Pydantic adds runtime validation and serialisation — Python's equivalent of typed DTOs.
3mo ago
Python intermediate
Functions that wrap other functions to add behaviour — @cache, @dataclass, @property — applied at definition time with the @ syntax.
3mo ago
Python intermediate