Correct Way to Write in Python

2013-08-03 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

Re: Correct Way to Write in Python

2013-08-03 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] public

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 know how do I

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 done in

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 this

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 experiences. I

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 above is not

Re: Correct Way to Write in Python

2013-08-03 Thread Chris Angelico
On Sat, Aug 3, 2013 at 4:59 PM, Sagar Varule punk.sa...@gmail.com 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++