On Mar 7, 5:12 pm, Malcolm Tredinnick <[email protected]>
wrote:
> Sure, "request" is a local variable, but since Python uses
> pass-by-reference, it is a reference to an object that is also
> referenced by other variables in other scopes (including the session
> middleware).
>
> So by assigning to request.session, all the other variables referring to
> that object will see the updates.
>
> Cheers,
> Malcolm

Thanks for the helpful reply, Malcolm! It makes perfect sense now.

Cheers,
Rex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to