Steve Holden wrote:
> Don't I remember reading on the mod_python list that version 3.3 will
> abandon auto-reload and require that the Apache server be restarted to
> ensure changed modules are reloaded? I don't see that flying too well
> with commercial hosting services running many virtuals on a single
> Apache instance.

That mod_python 3.3 is abandoning auto-reload is incorrect. In fact the
complete opposite is true in that mod_python 3.3 includes a rewritten
module importer that actually works properly whereas the current one
has lots of problems. In mod_python 3.3 it will be much easier to get
away with never having to restart Apache when you change your Python
code.

But then, this is possibly academic anyway, as packages such as
TurboGears and Django are usually written so as to be divorced from the
fact that mod_python is used and thus they do not even use the
mechanisms which would allow auto-reload of user code to even be done
in the first place.

Something like Django also uses packages heavily to avoid collision
problems with module names (don't know about TurboGears). Although
mod_python prior to 3.3 tried to support auto-reload of Python
packages, it was broken in many ways and when one looks at it, it is
actually pretty well impossible to implement auto-reload of Python
packages in a way that would work and not cause application problems.
But then Django doesn't even use mod_python to load packages anyway, so
auto-reload doesn't get used.

As such, it is true that mod_python 3.3 will not support auto-reload of
Python packages which may be want you were thinking. It will however
still support auto-reload of Python modules and provided that you use
the features of mod_python properly in the way they are intended to be
used, you can still implement pseudo packages where auto-reload does
work.

For a complete list of all the problems in the mod_python module
importer in versions prior to 3.3, see:


http://www.dscpl.com.au/wiki/ModPython/Articles/ModuleImportingIsBroken

Graham


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to