Does python have ‘private’ variables in classes?

“In java, we have been taught about public/private/protected variables”

“Why is that not required in python?”

For the same reason it’s not required in Java.

You’re free to use — or not use private and protected.

As a Python and Java programmer, I’ve found that private and protected are very, very important design concepts. But as a practical matter, in tens of thousands of lines of Java and Python, I’ve never actually used private or protected.

Why not?

Here’s my question “protected from whom?”

Other programmers on my team? They have the source. What does protected mean when they can change it?

Other programmers on other teams? They work for the same company. They can — with a phone call — get the source.

Clients? It’s work-for-hire programming (generally). The clients (generally) own the code.

So, who — precisely — am I protecting it from?

Right. The schizophrenic sociopath who refused to read the API comment blocks.

Well said!!

Need a change – Started writing in my new blog

piano keys

As you already know I am a keyboard self learner and teacher… Have started a new blog in the title “Life Is Melody”, same as present blog but in more pretty URL that suits the title and purpose and easy to remember. Its

lifeIsMelody . WordPress . com

I hope this new blog start will bring a change in my progress of music learning and teaching. Having already posted my 1st post in the new blog… Waiting for you, my dear lovely friends and blog followers, to visit my new writing platform…

Keep Smiling Always!!
Rajiv M


Stateless Mindset (article from zenhabits)

In programming, there is the concept of statelessness. It means that each request is treated anew, without memory of previous requests.

This is extremely limiting in some ways, but in another way it’s a great way to deal with a ton of requests.

Imagine if you as a person dealt with millions of requests a day from a thousand or so clients: if you had to keep track all those clients and the multiple requests they were making, it would drive you crazy. The burden of remembering would crush you.

This is what our lives are like. We are constantly holding information, frustration, ideas, tension, requests, needs, of a thousand different requests each day. Every email, every call, every text message, every open browser tab, every interaction with another person, every task we do … it all builds up in us until we are overloaded.

Imagine if you forgot all previous requests. Those interactions died, faded away into the aether.

Imagine if there wasn’t the weight of thousands of requests and interactions on your mind right now.

Imagine they were gone, and you had a blank slate.

What would this blank slate feel like?

What would it be like to deal with the next task, talk to the next person, walk to the next place, without anything weighing you down? Without anything pulling on your mind?

Just this task. Just this person. Just this action. Just this moment.

There would be nothing else, just this. It would be your entire universe. It would fill you up completely.

Then it would be gone.

And the next moment would be all there was. Then that would die too.

This is stateless.

Try letting go of all previous moments, right now. Try making the present moment all there is. When you feel a previous request or idea pulling at your attention, let it go.

This is the stateless practice. You’ll fail. Let that go too.

Start anew, with all the possibilities of emptiness.


By ‘doing nothing’ one could ‘accomplish everything.’

The Tao(the absolute principle underlying the universe) abides in non-action,
Yet nothing is left undone.
If kings and lords observed this,
The ten thousand things would develop naturally.
If they still desired to act,
They would return to the simplicity of formless substance.
Without form there is no desire.
Without desire there is tranquillity.
In this way all things would be at peace.

~ Lao Tzu

One should endeavour to do nothing (wu-wei). But what does this mean?

It means not to literally do nothing, but to discern and follow the natural forces — to follow and shape the flow of events and not to pit oneself against the natural order of things. First and foremost to be spontaneous in ones actions.

more details @ Lao Tzu


What is the best part of a relationship?


The best part of a relationship,

is getting to call the person,

or lay down next to them,

and tell them all the crazy things

that happened to you all day long.

In the end that’s what it’s about.

It’s not about sex, it’s not about the money they give you, it’s not about how good looking they are, it’s about them listening to you talk for hours and hours and hours, about stupid shit that doesn’t matter.

~ So dear readers… are you looking for someone to listen your talk, am always there for you.. just ping me in Fb ;-)

A perfect relationship


Me with my music keyboard, my Sony Laptop, my Bicycle, my Drawing note, and my Pillow …

As my favourite singer Taylor Swift’s saying “People haven’t always been there for me but music always has.”

When No one out there for a breath taking roam with me, my Bicycle always there waiting just for me.

When No one is near to hear my feelings, my Pillow always there waiting for a hug.

When i get exhaust there my Drawing note is waiting for my fine touch with pencil.

When my mind is clear, my music keyboard and laptop is waiting for my 10 fingers to dance on them.

Believe me.. Life is Melody… and you are the Composer …

~ Rajiv