Programming in C I used to have code sections only used for debugging purposes (logging commands and the like). Those statements could be completely disabled fo
C
Here is an example that I use to distinguish between Python 2 & 3 for my Python Tk programs:
import sys if sys.version_info[0] == 3: from tkinter import * from tkinter import ttk else: from Tkinter import * import ttk """ rest of your code """
Hope that is a useful illustration.