List of Language specification related pages
-
Printing to Standard Error (stderr) in Python
By default, the print function prints a string to standard output (stdout), but you can specify a different output destination with the file argument. When you pass sys.stderr as this argument, the print function prints the string to standard error. You can also use the write method of sys.stderr to output, but unlike the print function, it does not automatically insert a newline. -
Python - Doing nothing with an if statement
When you don’t want to do anything in an if statement when a condition is met or not met, you can use the pass statement. -
Python - Wait for a specified time (sleep / wait)
To stop a program (thread) for a specified time, use the sleep function of the time module.