professors module

class professors.Professor(name: str, email: Optional[str] = None)

Bases: object

A professor is one or many people in charge of a given academical event.

Parameters
  • name (str) – the name(s)

  • email (Optional[str]) – the email(s)

professors.merge_professors(professors: Iterable[professors.Professor]) professors.Professor

Merges multiple professors into one.

Parameters

professors (Iterable[Professor]) – multiple professors

Returns

the new professor

Return type

Professor

Example

>>> p1 = Professor('Jean Moulin', 'jean.moulin@mail.com')
>>> p2 = Professor('Marc Potier', 'marc.potier@mail.com')
>>> p3 = merge_professors((p1, p2))