Skip to content

@total_ordering in oo-proramming talk notebook #4

@debsankha

Description

@debsankha

Hi Norma,
As we discussed in our last meeting, the old cmp method does not work for comparison operators in python3 anymore.

So I have added the "total_ordering" decorator to the class definition in file "Object-oriented programming in Python.ipynb" at input line:
In [142].

However this raises the question of how should be explained to students about decorators. Since you are giving the talk, I suppose you have final say in this matter.

Best,
Deb

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions