Re: [BangPypers] July meetup

2010-07-29 Thread vijay
All,     Do let me know if this is fine with every one. with regardsvijay --- On Thu, 29/7/10, Habibullah Pagarkar habibpagar...@gmail.com wrote: From: Habibullah Pagarkar habibpagar...@gmail.com Subject: Re: July meetup To: vnbang2...@yahoo.com Cc: Bangalore Python Users Group - India

[BangPypers] how to delete base class attribute

2010-07-29 Thread Nitin Kumar
Hi all, Say I have 10 functions in base class and I have inherited it in some derived class. But I only want 9 of the base class function to be available in child class. (and I don’t want to make that one class private) class x: def __init__(self): self.a =3 self.b= 4

Re: [BangPypers] how to delete base class attribute

2010-07-29 Thread steve
Hi Nitin, On 07/29/2010 02:18 PM, Nitin Kumar wrote: Hi all, Say I have 10 functions in base class and I have inherited it in some derived class. But I only want 9 of the base class function to be available in child class. (and I don’t want to make that one class private) Python

Re: [BangPypers] how to delete base class attribute

2010-07-29 Thread Mehndi, Sibtey
Nitin, del can only remove the elements present in the instance dictionary. If you check self.__dict__ then it shows that A is not in the dictionary only 'a' and 'b' exist in the dict that's why it is giving the attribute error. Sibtey -Original Message- From:

Re: [BangPypers] July meetup

2010-07-29 Thread Noufal Ibrahim
vijay vnbang2...@yahoo.com writes: All,     Do let me know if this is fine with every one. [...] Fine by me. +1. -- ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] how to delete base class attribute

2010-07-29 Thread Nitin Kumar
fine, but isn't there any way to hide few function of base class into derived one??? On Thu, Jul 29, 2010 at 3:13 PM, Mehndi, Sibtey sibtey.meh...@genpact.comwrote: Nitin, del can only remove the elements present in the instance dictionary. If you check self.__dict__ then it shows

Re: [BangPypers] how to delete base class attribute

2010-07-29 Thread Srinivas Reddy Thatiparthy
fine, but isn't there any way to hide few function of base class into derived one??? I didn't get what is meant by hiding? You can override the function/method of base class in sub class. In that method, you can modify the behaviour for subclass or raise an exception or simply include 'pass'.

Re: [BangPypers] July meetup

2010-07-29 Thread Anand Chitipothu
2010/7/29 Habibullah Pagarkar habibpagar...@gmail.com: Hello folks, Slight change of plans. The builders at our Domlur office want to perform some electrical maintenance work this weekend. I hope meeting at the Koramangala office instead at the same time wouldn't be too inconvenient. The

Re: [BangPypers] how to delete base class attribute

2010-07-29 Thread Mahadevan R
On Thu, Jul 29, 2010 at 4:24 PM, Nitin Kumar nitin.n...@gmail.com wrote: fine, but isn't there any way to hide few function of base class into derived one??? You can try obscuring it: class y(x): def __init__(self): x.__init__(self) self.A = None Cheers, -MD.

Re: [BangPypers] July meetup

2010-07-29 Thread Anand Chitipothu
2010/7/29 Noufal Ibrahim nou...@gmail.com: vijay vnbang2...@yahoo.com writes: All,     Do let me know if this is fine with every one. [...] Fine by me. +1. Is the venue final then? I've not seen may +1s. I need to send a mail to offline registrants about the usergroup meeting. I'm out

Re: [BangPypers] July meetup

2010-07-29 Thread vijay
Venue is final --- vijay --- On Thu, 29/7/10, Anand Chitipothu anandol...@gmail.com wrote: From: Anand Chitipothu anandol...@gmail.com Subject: Re: [BangPypers] July meetup To: Bangalore Python Users Group - India bangpypers@python.org Date: Thursday, 29 July, 2010, 5:56 PM 2010/7/29 Noufal

Re: [BangPypers] July meetup

2010-07-29 Thread kunalkant sen
This time it wont possible in Microsoft. I spoke to him and he willing to help out from next time. They need atleast one week advance notice for meet up to arrange and for security clearance. Keep MS as alternative from next time. Regards Kunal Kant Sen 09241009423 On Thu, Jul 29, 2010 at 5:56

Re: [BangPypers] how to delete base class attribute

2010-07-29 Thread Anand Balachandran Pillai
On Thu, Jul 29, 2010 at 5:33 PM, Mahadevan R mdevan.foo...@gmail.comwrote: On Thu, Jul 29, 2010 at 4:24 PM, Nitin Kumar nitin.n...@gmail.com wrote: fine, but isn't there any way to hide few function of base class into derived one??? You can try obscuring it: class y(x): def

Re: [BangPypers] July meetup

2010-07-29 Thread Anand Balachandran Pillai
On Thu, Jul 29, 2010 at 5:56 PM, Anand Chitipothu anandol...@gmail.comwrote: 2010/7/29 Noufal Ibrahim nou...@gmail.com: vijay vnbang2...@yahoo.com writes: All, Do let me know if this is fine with every one. [...] Fine by me. +1. Is the venue final then? I've not seen may