Although I'm using a Mac with MacPorts installed, I suppose this question can be applied to other platforms.
When I list all those executable files in $PATH with the "python" prefix, I get a bunch of results:
//64-bit Mac Mini @work/
$ IFS=:
//64-bit Mac Mini @work/
$ find $PATH -name python\*
/opt/local/bin/python3
/opt/local/bin/python3m-config
/opt/local/bin/python3.7-config
/opt/local/bin/python2.7-config
/opt/local/bin/python3.7m
/opt/local/bin/pythonw2.7
/opt/local/bin/python3.7m-config
/opt/local/bin/python3.7
/opt/local/bin/python3-config
/opt/local/bin/python2.7
/opt/local/bin/python3m
/usr/bin/python
/usr/bin/pythonw
/usr/bin/python2.7-config
/usr/bin/pythonw2.7
/usr/bin/python-config
/usr/bin/python2.7
I know what python[23]* are, but what does python3.7m, python3m, pythonw, pythonw2.7 and those python*-config do?
Update
Thanks for the comment pointing out the possible duplicate. However that doesn't fully solve my question, as it doesn't mention the "w" flag on python2.7 interpreter, nor does it mention what the function of those *-config programs are.