What is a dot operator in Python? And how powerful is it!?
well - if we say that almost everything in Python is an object. And furthermore - every object has certain attributes and methods.
In python - the typical connection between the attributes or the methods with the object is let us say named or we an also say indicated _with_ - or let us say _by_ a “dot” (”.”) written between the attributes or the methods and the object. Let us illustrate this formal behavior in python with a little example; if we look at lessie the dog. This dog - we can say does alot of things:
during the whole live of a typical dog we ca admit that - he runs, walks, bites, sleeps and lots of other thigns more.
Here’s how we can spell out the above mentioend behaviour in a so called object-oriented style - well we might write this:
and so forth and so forth and so forth and so forth
Well besides the above mentioened things - we can say that Lessie has additionaly and furthermore lets say different attributes and different qualities.
the question is: can objects have even more objects that belong to them,
quesiton: can objects have even other objects that also do belong to them - in other words - do they are able to have a connection to the object with their own methods or attributes:
Yes, they show from Windows media.
But this isn’t a failed disk or partition problem; it’s due to bugs in Microsoft’s Storage Spaces.
Basically:
-Made a pool of two 240GB SSD’s (storage spaces takes over these drives and they now show as one 480GB drive)
-Removed the pool (both drives should now appear back in disk management as 240 again)
-Neither drives now showing in disk management / device manager.
-No pools showing in storage spaces
-Storage spaces doesn’t list them if I choose to create a new pool.
-What I’m looking for is a way to replicate what windows does when drives are deallocated from storage spaces. I’ve looked for a powershell script but can’t find anything relevant.
Question
say_hello
What is a dot operator in Python? And how powerful is it!?
well - if we say that almost everything in Python is an object. And furthermore - every object has certain attributes and methods.
In python - the typical connection between the attributes or the methods with the object is let us say named or we an also say indicated _with_ - or let us say _by_ a “dot” (”.”) written between the attributes or the methods and the object. Let us illustrate this formal behavior in python with a little example; if we look at lessie the dog. This dog - we can say does alot of things:
during the whole live of a typical dog we ca admit that - he runs, walks, bites, sleeps and lots of other thigns more.
Here’s how we can spell out the above mentioend behaviour in a so called object-oriented style - well we might write this:
Lessie = Dog()
Lessie.walks()
Lessie.wows()
Lessie.runs()
Lessie.bites()
Lessie.eats()
and so forth and so forth and so forth and so forth
Well besides the above mentioened things - we can say that Lessie has additionaly and furthermore lets say different attributes and different qualities.
the question is: can objects have even more objects that belong to them,
Lessie.head.hair()
Lessie.head.hair.color = "browm";
Lessie.head.mouth.theeth.length.()
quesiton: can objects have even other objects that also do belong to them - in other words - do they are able to have a connection to the object with their own methods or attributes:
Link to comment
https://www.neowin.net/forum/topic/1379930-what-is-a-dot-operator-in-python-and-how-powerful-is-it/Share on other sites
1 answer to this question
Recommended Posts