1 个仓库
Design and implementation of data structures tailored for Python's object model.
Distinct from Data Structure Design: Focuses on concrete Python implementations of sequences and generators rather than general pedagogical design.
Explore 1 awesome GitHub repository matching education & learning resources · Pythonic Data Structures. Refine with filters or upvote what's useful.
该项目是一系列实用脚本和参考指南,展示了高级 Python 语言特性和惯用法。它提供了用于掌握并发、元编程和数据结构设计等概念的代码实现。 该存储库包括 Python 对象模型的示例,涵盖自定义属性访问、描述符协议和特殊方法重写。它还具有利用一等函数和装饰器来减少面向对象样板代码的设计模式实现。 该代码库涵盖了广泛的功能,包括使用事件循环和 Future 的异步编程、自定义序列和生成器的创建,以及使用抽象基类进行接口强制执行。它进一步展示了通过上下文管理器进行的资源管理以及对文本和字节序列的处理。
Demonstrates the design of custom sequences and generators to optimize data access in Python.