I don't really know what you are talking about but if you mean outside
a controller..

x = 4

class Root(RootController):
  ...

x is shared between threads/requests.  So its not safe.


On 11/10/06, iain duncan <[EMAIL PROTECTED]> wrote:
>
> I am wondering what the deal is with the global namespace in CherryPy,
> is it shared between user sessions the way it is with mod_python, or is
> it unique to one session, allowing singleton objects to be created
> safely? ( a la PHP )
>
> Thanks
> Iain
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to