Mario Figueiredo wrote:

A different application, a map editor, needs to also instantiate an
object of the class Map. But in this case the map needs to either be
empty (if the user wants to create a new map), or loaded from the
saved map file (if the user wants to edit an existing map).

Then you have two functions for creating maps:

new_empty_map()

load_map_from_file(filename)

Both of these can complain if there is already a
Map instance.

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to