Liam Clarke-Hutchinson wrote: >I believe only by explicitly passing a reference to the parent? > >Liam Clarke-Hutchinson > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf >Of Bill Campbell >Sent: Wednesday, 9 November 2005 7:00 a.m. >To: Tutor >Subject: [Tutor] Who called me? > > >Is there a way in python for a method to determine its parent? > >In particular, I'm working with SimpleXMLRPCServer, and would like to be >able to find the client_address in the routine that has been dispatched. I >know that client_address is an attribute of the handler class instance, but >don't know how to get to that. > >Bill >-- >INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC >UUCP: camco!bill PO Box 820; 6641 E. Mercer Way >FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 >URL: http://www.celestial.com/ > >My brother sent me a postcard the other day with this big satellite photo of >the entire earth on it. On the back it said: ``Wish you were here''. > -- Steven Wright >_______________________________________________ >Tutor maillist - Tutor@python.org >http://mail.python.org/mailman/listinfo/tutor > >A new monthly electronic newsletter covering all aspects of MED's work is now >available. Subscribers can choose to receive news from any or all of seven >categories, free of charge: Growth and Innovation, Strategic Directions, >Energy and Resources, Business News, ICT, Consumer Issues and Tourism. See >http://news.business.govt.nz for more details. > > > > >http://www.govt.nz - connecting you to New Zealand central & local government >services > >Any opinions expressed in this message are not necessarily those of the >Ministry of Economic Development. This message and any files transmitted with >it are confidential and solely for the use of the intended recipient. If you >are not the intended recipient or the person responsible for delivery to the >intended recipient, be advised that you have received this message in error >and that any use is strictly prohibited. Please contact the sender and delete >the message and any attachment from your computer. >_______________________________________________ >Tutor maillist - Tutor@python.org >http://mail.python.org/mailman/listinfo/tutor > > > You might consider the inspect module. See 3.11.4 in the Library Reference. I think that the interpreter stack contains this information but have not used te module myself.
Colin W. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor