This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author wyz23x2
Recipients wyz23x2
Date 2020-03-08.01:45:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583631928.08.0.636438153182.issue39893@roundup.psfhosted.org>
In-reply-to
Content
Sometimes, we want to remove the ending \n and sometimes replace it wit something else, like print(). But logging doesn't support that.
I'd want a set_terminate() (Or set_end()) function that does that. I think it's easy. Just insert this at line 1119 of __init__ of 3.8.2:
def set_terminator(string='\n'):
    StreamHandler.terminator = string
Thanks!
History
Date User Action Args
2020-03-08 01:45:28wyz23x2setrecipients: + wyz23x2
2020-03-08 01:45:28wyz23x2setmessageid: <1583631928.08.0.636438153182.issue39893@roundup.psfhosted.org>
2020-03-08 01:45:28wyz23x2linkissue39893 messages
2020-03-08 01:45:28wyz23x2create