A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[Help Me] OOP In Python, and Your HTTP Class. :

1k views · started by Bman ·
#1
[Help Me] OOP In Python, and Your HTTP Class. :
Ive been messing around alot with python, and Im getting pretty good...

But Im now needing to learn OOP, Cant find anything about it on Youtube/google.

And I dont know how to use your HTTP Class.. Im still pretty noobie at the advanced stuff

Thanks for the help in advance.
#2
Iv also been messing around with python today.

Using classes is simple as well as functions. There is no real way to 'end' the function or 'end' the class. It stops when you de-indepent >.<

Here, for example:

class ExampleClass:
def ExampleFunction(self, text):
printFunction("text")

def printFunction(self, text):
print "text"
#3
Yea I've figured that out :P

I forgot to delete it from the title.

I was wondering How I can use riddles HTTP Class, I cant really figure it out to the Tee.
#4
Bman wrote:
Yea I've figured that out :P

I forgot to delete it from the title.

I was wondering How I can use riddles HTTP Class, I cant really figure it out to the Tee.

That i have no idea. Havnt begun on that, been doing other stuff. Speaking of which -goes to take medicine for throat-
#5
Mkay well, Im understanding it a bit. Maybe when He gets on he will help us out :D

Riddle is a python gawd.
#6
yea i know he is. >.<

its because thats the only language he focuses on (from what iv seen.)
#7
import HTTP

if __name__ == "__main__":
http = HTTP.HTTP()
print (http.GET("www.google.com"))


Make sure HTTP.py is in the same folder as the script you're running. Use the profile maker for reference on how to run scripts from other folders. Cheers!