PSPRINT
Gist
Source Code Repository
Badges
Description
Prompt-String-like Print.
[ INFO ] Print statements with a flexible descriptor prefix for better readability.
What does it do
#!/usr/bin/env python3 # -*- coding: utf-8; mode: python; -*- print() print("*** WITHOUT PSPRINT ***") print("An output statement which informs the user") print("This statement requests the user to act") print("A debugging output useless to the user") print() from psprint import print print() print("*** WITH PSPRINT ***") print("An output statement which informs the user", mark=1) print("This statement requests the user to act", mark=2) print("A debugging output useless to the user", mark='bug') print ()
Screenshot: