#python - Mon 30 Apr 2007 between 18:15 and 18:41

NY Lost Funds



polpakthen it returns that class
kbrookspolpak, yes
polpak, but why he wrote that .../
polpakehh. No idea without more context
julienbhi!
CarlFKok, so is this an appropriate question tot the author: Why is it needed when you can just specify the 2 classes in the class definition?
julienbi forgot the python command for evaluating the lenght of a string. Does anyone remember ?
VladDraclen("foobar")
CarlFKthat is the length of foobar
a string is a bit longer :)
VladDracand guess what, "foobar" is a string! :)
julienblen ! thats it ! thanks
ReL1Kquick question, i have a raw_input of sqlportip and i have mssql = _mssql.connect('%s','sa','password' % (sqlportip)) why isn't it plugging the raw input into the %s
purpleposeidonReL1K: the % (sqlportip) is in the wrong place
_mssql.connect('%s' % (sqlportip),'sa','password')
CarlFKReL1K: start with >>> '%s','sa','password' % (sqlportip)
ReL1Kahhh, thanks purpleposeidon, appreciate it
CarlFKmaybe print...
VladDrac(foo) doesn't make alot of sense btw
you usually mean (foo, )
CarlFKah - in regards to (sqlportip)
Hylk0rwhy do I get the error: lineTypeError: coercing to Unicode: need string or buffer, int found at the line: fo = file(outputfile, "wb")
ReL1Ktesting now
DodekHylk0r, providing some code or backtrace would be really helpful.
Hylk0rDodek: ok, pastebin'ing :-)
(thought it was an easy question)
http://www.pastebin.ca/466114
CarlFKpolpak: sense you seemed interested :) line 145 is self._getCursorClass(... http://svn.dabodev.com/trac/dabo/browser/trunk/dabo/biz/dBizobj.py
ReL1Kpurpleposeidon, it worked much appreciated
DodekHylk0r, try open() instead of file()
Hylk0rDodek: ok
Dodekand check what is in outputfile variable
Hylk0rDodek: same error with open. and the contents of outputfile 'should' be pwnage.bmp
Dodekand what it is?
print repr(outputfile)
reportingsjrCan anyone tell me how to set up python to work on the web?
Dodekreportingsjr, which framework do you use?
Hylk0rDodek: oh, I think that's the proble :D
thanks
reportingsjrdodek: umm, python?

Page: 5 12 19 26 33 40 47 54 61 

IrcArchive

NY Lost Funds