| |
| |
| |
|
Comments:
<0> fjoesne, those are possible variables you can p*** <0> ie, if you only want to p*** a p***word and db, MySQLdb.connection(p***word='yourp***word', db='porninfo') <1> p***word? not p***wd? thats what im using now.. <1> the problem is finding the information about it.. <0> maybe it is p***wd <1> help gave me nothing.. the thing is that i have been messing around with php.. and im sick of it, i have a few problems adjusting to the information flow <1> how can you find it out? :P <0> The docs should tell you <1> doesnt in this case.. however if you look around in the docfiles.. but pydoc doesnt :/
<0> I dont use MySQL, and thus, MySQLdb :) <0> try <0> help(MySQLdb.connection) <0> from the python shell <0> also, can do dir() <1> there we are <1> ah well its just me not understaning where to get info yet <1> i have been institutionalized by php.net :( <0> Well, im sure php.net doesn't have docs for 3rd party plugins, which MySQLdb is apparantly <1> offcourse <2> re <3> Hey yason. :) <2> hi hund <2> i'm at the new job now, so please update my hostmask <2> (or whoever runs the bots) <4> anyone interested in developing database-oriented games in partnership with me, MSG. <5> hey everyone <5> could someone help me with a python problem <4> hm.. i know some php <4> that counts? <5> mmm? <5> no not really <0> Ask your question <0> we will try to help <4> lol. just teasing ya coder <5> well im trying to work with httplib.urlsplit <5> req = httplib.urlsplit(line, scheme = '',) <5> conn = httplib.HTTPConnection(req.scheme[1]) <5> im trying to split the url up so that conn can connect to the homepage <5> and not any other links <5> line = http://aolradio.podcast.aol.com/kcrw/audio/tu/tu060407The_Walls.mp3 <5> hmm any help <6> codar: you mean <6> line = 'http://aolradio.podcast.aol.com/kcrw/audio/tu/tu060407The_Walls.mp'
<6> line = 'http://aolradio.podcast.aol.com/kcrw/audio/tu/tu060407The_Walls.mp3' <5> yh <5> do you want me to post the error <5> ........ <5> ???? <0> codar? whats the problem? <5> i keep getting the error <0> httplib.urlsplit(url)[1] seems to return the correct results for me <0> Whats the error? we aren't mind readers <5> AttributeError: 'tuple' object has no attribute 'scheme' <0> how are you calling it? <5> req = httplib.urlsplit(line, scheme = '') <5> conn = httplib.HTTPConnection(req.scheme[1]) <0> what is req.scheme? <0> it should be, req[1] <0> urlsplit returns a tuple <5> oh sorry i thought i had to go through everything <0> You can use the python shell to debug things this simple too, fyi <5> im new to python <0> perhaps, www.python.org would be of use to you then. <0> Dont get me wrong, feel free to ask your questions here :) <5> i have already been there im still learning i mean to say <5> its not working the way i want it to <0> but you could of solved this much quicker on your own <0> Then check the way you programmed it to work <5> when i 'print req[1]' <5> it prints out nothing <0> then perhaps verify the contents of the line variable <5> oh sorry it works i think its time i changed my ide <0> Are you on Windows? <5> yep <0> Ahh. Im not quite sure how you start the python shell on Windows. But I do all my quick testing there <5> im doing my testing in there right now thanks for tip <5> and the help <0> no problem <5> hmm <5> one more thing <5> nah its ok <5> hey pjs are you there <5> is anyone here <7> yes
Return to
#python or Go to some related
logs:
#worldcup #delphi #politics #worldcup irc prebot #stocks marcellocastagna.it #online #goal King James spells Shakespeare
|
|