[BangPypers] class instance getting passed to other class obj creation

2014-03-09 Thread Nitin Kumar
Hi All, I am looking for some better way to implement below scenario. Say there is a class login class login: def __init_(self, user, pwd): - now user uses this class to login a session and then I am using the object of this class being passed to other class. So that other class can use thi

Re: [BangPypers] class instance getting passed to other class obj creation

2014-03-09 Thread Gora Mohanty
On 9 March 2014 16:37, Nitin Kumar wrote: > > Hi All, > > I am looking for some better way to implement below scenario. > > Say there is a class login > > class login: > def __init_(self, user, pwd): > - > > now user uses this class to login a session and then I am using the object > of this c

Re: [BangPypers] class instance getting passed to other class obj creation

2014-03-09 Thread shreyas
You could make login instance a module level variable and then use that as a singleton. shreyas On Mar 9, 2014 4:38 PM, "Nitin Kumar" wrote: > Hi All, > > I am looking for some better way to implement below scenario. > > Say there is a class login > > class login: > def __init_(self, user, pwd):

[BangPypers] Fwd: [Baypiggies] PyLadies: Get paid to contribute to Python this Summer

2014-03-09 Thread Venkatraman S
FYI: Regards, Venkat @venkasub -- Forwarded message -- From: Lynn Root Date: Thu, Mar 6, 2014 at 12:31 AM Subject: [Baypiggies] PyLadies: Get paid to contribute to Python this Summer To: baypigg...@python.org Hey folks - The PSF is sponsoring CPyth

[BangPypers] Need Python Developer (5- 7 years Exp)

2014-03-09 Thread Dileep
Hi, We require Python Developer for our company Hewlett-Packard India Software Operation. This requirement is for our R&D division Bangalore. If you are interested please send me your resume to dileep...@gmail.com -- Regards D.S. DIleep ___ BangPyp

Re: [BangPypers] Need Python Developer (5- 7 years Exp)

2014-03-09 Thread Noufal Ibrahim KV
On Sun, Mar 09 2014, Dileep wrote: > Hi, > > We require Python Developer for our company Hewlett-Packard India Software > Operation. > This requirement is for our R&D division Bangalore. If you are interested > please send me your resume to dileep...@gmail.com It might be a good idea to describe

Re: [BangPypers] class instance getting passed to other class obj creation

2014-03-09 Thread Sriram Karra
If your login is a simple action I would not even make it a separate class. You should revisit your class hierarchy. On Mar 9, 2014 4:38 PM, "Nitin Kumar" wrote: > Hi All, > > I am looking for some better way to implement below scenario. > > Say there is a class login > > class login: > def __i