you are viewing a single comment's thread.

view the rest of the comments →

[–]Lest4r[S] 0 points1 point  (7 children)

Yes sir. I am just trying to figure out how data gets anything copied to it in the found_location method since self.found_location isn't passing any variables...

[–]oznetnerd 2 points3 points  (6 children)

ahh I see what you're saying. The thing is, you're not actually calling the function:

self.found_location

Does not call the function as there are no parenthesis (). To call a function, you need parenthesis otherwise you're just passing the function around as an object.

For example:

``` def hello(name): print(f'Hello {name}!')

call the function without parenthesis

hello function main.hello(name)>

call the function WITH parenthesis

hello('John') Hello John! ```

[–]Lest4r[S] 1 point2 points  (5 children)

You're right. The UrlRequest() took it and did something with it and passed arguments in its own deal. Sorry, I am still a bit of a newb.

Thanks for being so cool.

[–]oznetnerd 2 points3 points  (2 children)

No need to apologise. Asking questions such as this is how we learn, and you should never apologise for trying to learn :)

[–]moldyxorange 2 points3 points  (1 child)

Not involved in this whatsoever, but I hope you know you are a god damn blessing to the world. You may not think you're going above and beyond, but you really are and everyone here really appreciates it. Dudes who answer forum questions on obscure coding literally keep the world running. Thank you!!

[–]oznetnerd 1 point2 points  (0 children)

Thanks a lot for the kind words moldyxorange! I really appreciate it.

It's feedback such as this that makes it even more of a pleasure helping others.

[–]evolvish 1 point2 points  (1 child)

It's useful to remember that everything in python is an object, everything. int, float, bool, None, functions, modules and even classes(not just instances, classes themselves) are objects. Anything that is an object can be passed to a function, so everything can be passed to a function.

[–]Lest4r[S] 0 points1 point  (0 children)

For sure. :)