Skip to content

Conversation

@sjtechrec
Copy link
Contributor

Description

  • Created file 'total-ordering.md'
  • Inserted YAML at top ==> Note that Python is not listed as a Subject in the Subjects.md file and Class Decorator is not listed as a Tag in the Tags.md file. Is it possible to add?
  • Wrote a definition for total_ordering and reintroduced the rich comparison methods. Added requirements and characteristics.
  • Wrote syntax for total_ordering, which is technically two different ways.
  • Provided two examples, one example shows simple use based on a class age. The other example shows the customization capabilities of rich comparison methods and usage in conjunction with total_ordering.

Issue Solved

Type of Change

  • Added a new entry

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making. - branch is named "total-ordering-entry" if that is ok?
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

…ule. Also, recommending adding Python to Subjects and Class Decorator to tags.
@CLAassistant
Copy link

CLAassistant commented Aug 14, 2025

CLA assistant check
All committers have signed the CLA.

@mamtawardhani mamtawardhani self-assigned this Nov 4, 2025
Copy link
Collaborator

@mamtawardhani mamtawardhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for a second review! 🚀

@Sriparno08 Sriparno08 self-assigned this Nov 4, 2025
@Sriparno08 Sriparno08 added status: under review Issue or PR is currently being reviewed and removed status: ready for next review labels Nov 4, 2025
Copy link
Collaborator

@Sriparno08 Sriparno08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, @sjtechrec!

@Sriparno08 Sriparno08 merged commit 7f9dd7d into Codecademy:main Nov 5, 2025
7 checks passed
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

👋 @sjtechrec
You have contributed to Codecademy Docs, and we would like to know more about you and your experience.
Please take a minute to fill out this four question survey to help us better understand Docs contributions and how we can improve the experience for you and our learners.
Thank you for your help!

🎉 Your contribution(s) can be seen here:

https://www.codecademy.com/resources/docs/python/functools-module/total-ordering

Please note it may take a little while for changes to become visible.
If you're appearing as anonymous and want to be credited, visit the linked accounts page and ensure that your GitHub account is linked.

@Sriparno08 Sriparno08 added status: review 2️⃣ completed and removed status: under review Issue or PR is currently being reviewed labels Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Term Entry] Python functools: total_ordering()

4 participants