On Tue, Jan 21, 2014 at 7:18 AM, Steven D'Aprano wrote:
> The same applies to methods, with just one additional bit of magic: when
> you call a method like this:
>
> instance.method(a, b, c) # say
>
> Python turns it into a function call:
>
> method(instance, a, b, c)
>
> [For advanced
On Sun, Jan 19, 2014 at 04:59:58PM -0500, Christian Alexander wrote:
> Hello Tutorians,
>
> Looked all over the net for class tutorials
> Unable to understand the "self" argument
> Attempting to visual classes
Let me explain classes by analogy. Classes are best as representing
things, that is, n
On Mon, Jan 20, 2014 at 09:33:29AM +, Alan Gauld wrote:
> >However, I understand that classes are
> >parallel to that of a blueprint,
>
> Yes, they define what the objects will look like, what data and what
> methods they contain. But to use those objects you have to instantiate
> them and
On 21/01/14 04:20, Christian Alexander wrote:
class Person:
def __init__ (self, name, age):# is self just a
placeholder for an arbitrary object?
Yes. If you create say 4 persons, John, Paul, Ringo and George.
When you call any method on those people objects the same code
Alan,
The concept and purpose of classes is starting to sink in a little bit, but
I still haven't had my "Ah-ha" moment yet. I just can't seem to visualize
the execution of classes, nor am I able to explain to myself how it
actually works. For example:
class Person:
def __init__ (
On 01/21/2014 05:20 AM, Christian Alexander wrote:
Alan,
The concept and purpose of classes is starting to sink in a little bit, but
I still haven't had my "Ah-ha" moment yet. I just can't seem to visualize
the execution of classes, nor am I able to explain to myself how it
actually works. Fo
On 01/19/2014 10:59 PM, Christian Alexander wrote:
Hello Tutorians,
Looked all over the net for class tutorials
Unable to understand the "self" argument
Attempting to visual classes
I have searched high and low, for easy to follow tutorials regarding
classes. Although I grok the general concep
On 20 January 2014 20:33, Alan Gauld wrote:
> On 20/01/14 00:55, Christian Alexander wrote:
>>
>> I would first like to state two things, those being that I am a horrible
>> writer as well as explaining things, but Ill try my absolute best.
>> Everything python is an object. Strings, integers,
On 20/01/14 00:55, Christian Alexander wrote:
I would first like to state two things, those being that I am a horrible
writer as well as explaining things, but Ill try my absolute best.
Everything python is an object. Strings, integers, lists, so on and
so forth. In regards to classes and the
I would first like to state two things, those being that I am a horrible
writer as well as explaining things, but Ill try my absolute best.
Everything python is an object. Strings, integers, lists, so on and so
forth. In regards to classes and their relativity towards objects, I am at
complete s
On 19/01/14 21:59, Christian Alexander wrote:
Looked all over the net for class tutorials
Unable to understand the "self" argument
Attempting to visual classes
If you read my OOP tutorial there is a section there specifically about
self.
And the v3 tutor includes an introduction to the forma
Hello Tutorians,
Looked all over the net for class tutorials
Unable to understand the "self" argument
Attempting to visual classes
I have searched high and low, for easy to follow tutorials regarding
classes. Although I grok the general concept of classes, I am unable to
visually understand wha
12 matches
Mail list logo