[Twisted-Python] Getting Stories Straight (RPYs)

Christopher Armstrong radix at twistedmatrix.com
Tue Jun 24 18:38:59 EDT 2003

On 2003.06.24 14:15, Abe Fettig wrote:
> On Tue, 2003-06-24 at 11:54, screwtape at froup.com wrote:
> > One of the nice things about .rpy is that they work well with the
> > usual HTML development tweak-source-reload-browser cycle.
> This is true - most web developers are not used to having to stop and
> restart the server after every change.  Is there anything wrong with
> putting all your code into /index.rpy during development, so that code
> gets reloaded on every page visit?  It's easy enough to move the code
> into a regular module later.

I would strongly recommend, rather than shoving all of your
code into an .rpy file for its reloading semantics, just 
calling reload() (or twisted.python.rebuild.rebuild()) on the
modules that are part of your project in the .rpy file.

 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/

More information about the Twisted-Python mailing list