Anyprint - Use any language's print statements in Python


#1

Wish you could use console.log("yes"); in python? Well, now you can … please don’t though.

It sure violates

There should be one-- and preferably only one --obvious way to do it.


#2

Meh. I prefer the logging module.

import logging
logger = logging.getLogger(__name__)

...

logger.info('just so you know, your dog ate your hard drive')

#3

Now that’s a sane choice … better than java style: System.out.printf("java stuff\n");