Skip to content

Conversation

@R1kaB3rN
Copy link

Throughout this codebase, the print function is being invoked for debugging purposes both within the examples directory and the python module itself. The print function being present in the latter is not only questionable and poor practice for logging error messages, but problematic for applications that read and depend on data from stdout in the event that an xauthority-related error occurs. As an improvement and simple fix, redirect the error message to stderr instead of stdout when invoking print.

Throughout this codebase, the print function is being invoked for debugging purposes both within the examples directory and the python module itself. The print function being present in the latter is not only questionable and poor practice for logging error messages, but problematic for applications that read and depend on data from stdout in the event that an xauthority-related error occurs. As an improvement and simple fix, redirect the error message to stderr instead of stdout when invoking print.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant