Class Named represents a named object such as a Shift or Team.
More...
|
def | __init__ (self, str name, str description) |
| Construct a named object. More...
|
|
int | __hash__ (self) |
|
bool | __eq__ (self, other) |
|
bool | __ne__ (self, other) |
|
bool | __lt__ (self, other) |
|
bool | __gt__ (self, other) |
|
str | __str__ (self) |
|
def | setName (self, str name) |
|
int | compareName (self, other) |
| Compare two Named objects by name. More...
|
|
Class Named represents a named object such as a Shift or Team.
◆ __init__()
def named.Named.__init__ |
( |
|
self, |
|
|
str |
name, |
|
|
str |
description |
|
) |
| |
Construct a named object.
- Parameters
-
name | Name of object |
description | Description of object
|
◆ compareName()
int named.Named.compareName |
( |
|
self, |
|
|
|
other |
|
) |
| |
Compare two Named objects by name.
- Parameters
-
- Returns
- -1 less than, 0 if equal, and 1 if greater than by string sort
The documentation for this class was generated from the following file: