Re: accessing static attributes
On Fri, 10 Aug 2007 02:51:44 -, james_027 wrote > hi, > > for example an request object ... is request.user the same as > request.__class__.user? Not in general: >>> class Request(object): ...user = "somebody" ... >>> request = Request() >>> request.user == request.__class__.user True >>
accessing static attributes
hi, for example an request object ... is request.user the same as request.__class__.user? THanks james -- http://mail.python.org/mailman/listinfo/python-list