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,

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

2014-02-23 Thread voger
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 methods were defined inside them. Everyt

Re: [Tutor] Responding Tweet: A Twitter Bot

2014-02-23 Thread Alexandre BM
Here is a twitter bot that I created, it evaluates math expression then it reply to the sender You can study how it works it's pretty simple :) [1] [1] https://github.com/rednaks/Twitter-Math-Bot On 20/02/2014 09:23, Zaki Akhmad wrote: > Hello, > > I am trying to create a twitter bot which respo

Re: [Tutor] Function help

2014-02-23 Thread Dave Angel
Scott W Dunning Wrote in message: > I am VERY new to python (programming too). I had a question regarding > functions. Is there a way to call a function multiple times without > recalling it over and over. Meaning is there a way I can call a function and > then add *5 or something like that

Re: [Tutor] Function help

2014-02-23 Thread Ben Finney
Scott W Dunning writes: > I am VERY new to python (programming too). Welcome! You should establish the fundamentals of Python, by working through the Python tutorial http://docs.python.org/3/tutorial/>. Begin at the beginning, and execute all the examples, and experiment with them to satisfy y

Re: [Tutor] Function help

2014-02-23 Thread Peter Otten
Scott W Dunning wrote: > > On Feb 23, 2014, at 1:12 AM, Scott W Dunning wrote: > >> I am VERY new to python (programming too). I had a question regarding >> functions. Is there a way to call a function multiple times without >> recalling it over and over. Meaning is there a way I can call a

Re: [Tutor] Function help

2014-02-23 Thread Scott W Dunning
On Feb 23, 2014, at 1:12 AM, Scott W Dunning wrote: > I am VERY new to python (programming too). I had a question regarding > functions. Is there a way to call a function multiple times without > recalling it over and over. Meaning is there a way I can call a function and > then add *5 or

[Tutor] Function help

2014-02-23 Thread Scott W Dunning
I am VERY new to python (programming too). I had a question regarding functions. Is there a way to call a function multiple times without recalling it over and over. Meaning is there a way I can call a function and then add *5 or something like that? I am trying to code an American Flag usin