honey-team / ufpy

Ufpy (Useful Python) - package for Python with some useful features
https://honey-team.github.io/ufpy-website
MIT License
3 stars 3 forks source link

uSTL: Queue, Deque and Pair #39

Open TheAihopGG opened 4 months ago

TheAihopGG commented 4 months ago

closes #35

Summary by Sourcery

This pull request introduces three new utility classes: UDeque, UQueue, and UPair, each designed to simplify common operations for double-ended queues, queues, and pairs respectively. Comprehensive documentation for each class has also been added.

sourcery-ai[bot] commented 4 months ago

Reviewer's Guide by Sourcery

This pull request introduces three new classes: UDeque, UQueue, and UPair, each with their respective methods for simplified operations. Comprehensive documentation and usage examples for each class are provided in new markdown files.

File-Level Changes

Files Changes
examples/udeque.md
ufpy/udeque.py
Introduced UDeque class and provided comprehensive documentation and usage examples.
examples/uqueue.md
ufpy/uqueue.py
Introduced UQueue class and provided comprehensive documentation and usage examples.
examples/upair.md
ufpy/upair.py
Introduced UPair class and provided comprehensive documentation and usage examples.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.
bleudev commented 4 months ago

Because of stack, queue, pair and deque are from c++ stl, i want to move all this features in ustl package. Can you do this?

bleudev commented 4 months ago

@sourcery-ai review