Re: [Tutor] I can't understand where python class methods come from

2014-02-24 Thread voger
Thank you all for your responses. My first post on the list an I already got more than I asked for. :) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] I can't understand where python class methods come from

2014-02-24 Thread spir
On 02/23/2014 10:59 PM, voger wrote: I have a really hard time understanding where methods are defined in python classes. My first contact with programming was with C++ and Java and even if I was messing with them in a very amateurish level, I could find where each class was defined and what meth

Re: [Tutor] I can't understand where python class methods come from

2014-02-23 Thread James Scholes
voger wrote: > Some properties I can see them defined but some others like > sublocality or administrative_area_level_1 I don't see them defined > anywhere. Also in the comments in the source code the author says > > #You can also choose a different property to display for each lookup > #type. #

Re: [Tutor] I can't understand where python class methods come from

2014-02-23 Thread Alan Gauld
On 23/02/14 21:59, voger wrote: I have a really hard time understanding where methods are defined in python classes. My first contact with programming was with C++ and Java Ben has already addressed much of your confusion. I'd just add that if you look at C++ operator overloading it is very si

Re: [Tutor] I can't understand where python class methods come from

2014-02-23 Thread Ben Finney
voger writes: > I have a really hard time understanding where methods are defined in > python classes. Reading the rest of your message, I think you're saying that you can't locate *which* class defines a method > […] With python everything looks like magic. It can seem that way. Fortunately,