# ``igraph`.`io`.`utils``

module documentation
(source)

Undocumented

Function | `safe_locale` | Helper function that establishes a context that temporarily switches the current locale to use decimal dots when printing numbers.

@contextmanager
def safe_locale() -> `Iterator[None]`: (source)

Helper function that establishes a context that temporarily switches the current locale to use decimal dots when printing numbers.

This can be used to establish an execution context within which it is safe to call functions that read or write graphs from/to the disk and ensure that they use decimal dots for interoperability with systems that are running with another locale.