Re: Correct Way to Write in Python

2013-08-03 Thread Chris Angelico
On Sat, Aug 3, 2013 at 4:59 PM, Sagar Varule wrote: > Your explanation for private and public access modifier was awesome as I was > having harding time finding why we dont have access modifier for > pythonThanks a lot It's a huge saving in time and effort. The C++ convention is: Make every

Re: Correct Way to Write in Python

2013-08-03 Thread Sagar Varule
On Saturday, August 3, 2013 2:34:10 PM UTC+5:30, Peter Otten wrote: > Sagar Varule wrote: > > > > > On Saturday, August 3, 2013 12:17:49 PM UTC+5:30, Peter Otten wrote: > > >> punk.sa...@gmail.com wrote: > > > > > Thanks a lot Peter. I appreciate your Help. You mentioned that C# code > > >

Re: Correct Way to Write in Python

2013-08-03 Thread Sagar Varule
On Saturday, August 3, 2013 1:50:41 PM UTC+5:30, Steven D'Aprano wrote: > On Fri, 02 Aug 2013 23:18:47 -0700, punk.sagar wrote: > > > > > Hi All, > > > > > > Im new to Python. Im coming from C# background and want to learn Python. > > > I was used to do following thing in C# in my previous e

Re: Correct Way to Write in Python

2013-08-03 Thread Peter Otten
Sagar Varule wrote: > On Saturday, August 3, 2013 12:17:49 PM UTC+5:30, Peter Otten wrote: >> punk.sa...@gmail.com wrote: > Thanks a lot Peter. I appreciate your Help. You mentioned that C# code > above is not good. If you can point me why it is not good, would help me > learn new approaches as t

Re: Correct Way to Write in Python

2013-08-03 Thread Steven D'Aprano
On Fri, 02 Aug 2013 23:18:47 -0700, punk.sagar wrote: > Hi All, > > Im new to Python. Im coming from C# background and want to learn Python. > I was used to do following thing in C# in my previous experiences. I > want to know how do I implement below example in Python. How these > things are don

Re: Correct Way to Write in Python

2013-08-03 Thread Sagar Varule
On Saturday, August 3, 2013 12:17:49 PM UTC+5:30, Peter Otten wrote: > punk.sa...@gmail.com wrote: > > > > > Hi All, > > > > > > Im new to Python. Im coming from C# background and want to learn Python. > > > I was used to do following thing in C# in my previous experiences. I want > > > to

Re: Correct Way to Write in Python

2013-08-02 Thread Peter Otten
punk.sa...@gmail.com wrote: > Hi All, > > Im new to Python. Im coming from C# background and want to learn Python. > I was used to do following thing in C# in my previous experiences. I want > to know how do I implement below example in Python. How these things are > done in Python. > [code] > pu

Correct Way to Write in Python

2013-08-02 Thread punk . sagar
Hi All, Im new to Python. Im coming from C# background and want to learn Python. I was used to do following thing in C# in my previous experiences. I want to know how do I implement below example in Python. How these things are done in Python. [code] public class Bank { public