X(): low level debug function.
X() is my function for low level ad hoc debug messages. It takes a message and optional format arguments for use with %. It is presented here in its own module for reuse.
It normally writes directly to sys.stderr but accepts an optional keyword argument file to specify a different filelike object.
Its behaviour may be tweaked with the globals X_logger or X_via_tty. If file is not None, write to it unconditionally. Otherwise, if X_logger then log a warning to that logger. Otherwise, if X_via_tty then open /dev/tty and write the message to it. Otherwise, write the message to sys.stderr.
Release files for cs.x 20170902
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cs.x-20170902.tar.gz | 2.2 kB | Details |
Release files / cs.x-20170902.tar.gz
| Download URL | cs.x-20170902.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc8c4778df6f4141dac2e6e7e9c368a49ea0fe51a519b8e22240089f4e6c6eac
|
|
BLAKE2b-256 checksum How to use checksums |
0490ea25205c81d8aae4d9721218ada85ed3b0a6b701468e048c3487d2aca400
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |