twisted python - tac, or py? -


I hope this is the easiest question I ask here. I have googled etc, but found nothing definite. I have a .tac file - which I know is a twisted application. I can run it by executing:

  twistd-mailserver.tac  

If I did the following, what behavior would be different (i.e., what is very important about using twistd executable, and .tac suffix files?

  mv mailserver.tac mailserver Py python mailserver.py  

or even without the name:

  dragon mailserver.tac  
< P> Any guidance on differences

The file extension does not really matter. All twistd (And even python ) is read and evaluate. File name is almost completely irrelevant.

However, to run the file < It is very important to use pythd instead of code> twistd . You run a file whose mean is a .tac file Use the python Has done for that would not be very little or nothing of interest. It should be clear again, advertise .tac file Python evaluates and executes a source file.

Consider emailerver.tac code>. Only top-level code included in this calls the definitions and functions of some class that gives quick and applications examples if you evaluate it with the dragon If you use twistd , then compare it to what it is like - python works but then also un Launches the application and the reactor runs. / P>


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -