#python - Sun 18 Feb 2007 between 15:02 and 15:35

NY Lost Funds



masterdriverzheh
Skail: the App class is probably the most useful, plus any import lines
Peperpadt: number of uf subs?
uf?
padtof even
Peper: as in, the fourth argument to re.sub is the max number of substitutions to perform
Peperpadt: re.sub("^(foo)(bar)","???","foobar",???)
Skailgah! pastebin is being so slow
padtPeper: re.sub("^(foo)(bar)", whatToReplaceWithAsStringOrFunc, StringToReplaceIn, replaceCnt) . Please read the docs
masterdriverzSkail: rafb.net/paste ftw :)
Skailmasterdriverz: http://pastebin.com/883805
masterdriverzSkail: failing line?
Skailmasterdriverz: the highlighted one... widgets.__dispatch__ = {
Peperpadt: I am reading, but still don't know how to replace only the group containing bar in my example
w/o using the foo group
masterdriverzSkail: what is lib?
Skailmasterdriverz: just a bin for holding other parts of the application... so as not to clutter the root project dir... I like to do things that way :)
masterdriverzdoes widgets do anything special with __setattr__?
Skailmasterdriverz: nope.. __dispatch__ is just set to an empty dict at the top of widgets.py
masterdriverz: the odd thing is that it works fine on windows
masterdriverzSkail: sorry, nfc
:-\
Skailmasterdriverz: omg.... I'm a retard... d'oh! found the problem...
masterdriverz: thanks, though. :)
masterdriverzheh
what was it? or are you not allowed to say? :p
Skailmasterdriverz: 'import_file' ... I forgot, that's a method I defined... then removed.. but didn't remove references to it
masterdriverz-_-
actionSkail adds another "I'm an Idiot" notch to his belt. :)
Skailadds another "I'm an Idiot" notch to his belt. :)
kapacehello
is there a way for cgi-python to be used like this <img src="randomimg.py">
and the image output is a random python image
Greatredkapace: i should think so, yes
any cgi program should be able to do that
kapacehow could i do that?
i tried outputing the mime type
Greatredwhat happened?
kapaceprint "content image/jpeg"
nothing special
Greatredwrong

Page: 5 12 19 26 33 40 

IrcArchive

NY Lost Funds