endplay.config
Configuration and versioning information
Classes:
Context manager to temporarily ensure that unicode output is turned off, for example when writing to a file which expects suit symbols to be SDHC. |
Data:
If set to False, the library will only print characters in the ASCII range |
- class endplay.config.suppress_unicode
Bases:
ContextDecorator
Context manager to temporarily ensure that unicode output is turned off, for example when writing to a file which expects suit symbols to be SDHC.
Example usage:
print(Denom.hearts.abbr) # prints ♥ (assuming config.use_unicode=True) with suppress_unicode(): print(Denom.hearts.abbr) # prints H print(Denom.hearts.abbr) # prints ♥
- endplay.config.use_unicode = True
If set to False, the library will only print characters in the ASCII range