My Account Log in

1 option

Making classes support comparison operations in Python / Jones, Brian.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Jones, Brian, author.
Beazley, David, author.
Language:
English
Subjects (All):
Python (Computer program language).
Physical Description:
1 online resource (20 pages)
Edition:
1st edition
Other Title:
Python cookbook.
Place of Publication:
O'Reilly Media, Inc., 2016.
System Details:
text file
Summary:
This lesson is a recipe from the Python Cookbook that explores being able to compare instances of your class using the standard comparison operators, but without having to write a lot of special methods, and avoiding the tedious task of creating implementations of every possible comparison operator. What you'll learn—and how you can apply it Learn how to use the functools.total_ordering decorator to simplify the comparison operator creation process. This lesson is for you because… You're an experienced Python programmer who wants to compare instances of your class using standard comparison operators without having to write a lot of special methods. Prerequisites Moderate experience with Python Materials or downloads needed None
Notes:
Online resource; Title from title page (viewed August 15, 2016)
Description based on online resource; title from cover (viewed February 20, 2017).
From Python cookbook, third edition, by Brian K. Jones and David Beazley. Cf. Cover.
Date of publication from resource description page.
ISBN:
9781491965276
1491965274
OCLC:
973495420

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account