| |
| |
| |
|
Comments:
<0> hmm, hello, i have problem with mod_python, can anybody help ? <0> the thing is, im using mod_python.psp , i have one file, index.py, where i have function index(req) <0> i want to load other functions from external modules <0> but mod_python can't see these files, <0> i change the sys.path variable, adding directory with modules <0> but with no effect <1> WHO WANTS IT <1> mischan <2> Really. <1> heh
<0> so? <3> anybody tried out showing images in python with pygtk? <3> i cant show the image.. i can however read some data <3> into a gtk.Image() object <4> hi..whats a exception.ValueError? <4> anyone? heh <4> what causes an expection.ValueError <4> exception* <1> quite a few things <1> help(ValueError) <5> Sometimes, when I read source code, I meet something like `foo`. What do `` mean? <6> it's like repr I think <1> yes <5> what is repr? <1> `x` and repr(x) are equivalent <5> what is repr() ? <1> though the `x` form is considered kidn of vulgar <1> it's an alternate form of a string representation for an object <5> a <5> ok <5> got it <5> and how do we use it? could you give me an example? <1> well it's just a function that takes an object and returns a string <5> ok <5> thx <1> the two functions for doing that are str vs. repr <1> str is usually a conventional representation, repr is more technical <1> if possible, eval(repr(x)) == x <1> but that's not always the case <6> str(0.1) => '0.1' <2> repr() says something about the object itself, while str() can be used for application purposes. <6> repr(0.1) => '0.10000000000000001' <1> well both the behavior and str and repr are overrideable so they really mean whatever anyone wants them to mean ... <1> but yeah, those are the basic ideas <1> if you define a cl*** and don't specify anything, str fails but repr prints something technical so you can debug <1> other than the fact that str of compound objects prints the repr of their contents, I think it's a useful idea <5> ok
<5> A .exe python file ( that is compiled with py2exe ) always needs python24.dll and library.zip in order to run, or we can do something, in order to make it able to run alone? <7> hello <7> has anyone here ever done web development in python <8> Alexi5, http://www.turbogears.org/ <9> www.cherrypy.org <7> what about mod python <10> some prefer that too. <2> I like the hot coffee mod. <7> so many python web frameworks <7> so hard to choose <7> which of the other than mod python can run on apache <2> CherryPy is easy enough. <7> have you guys ever used zope <3> how do i express adresses in arrays in python <3> i want to express say pixels[i+1][j] <3> python interpreter demands a finished scalar.. it cant evaluate i+1 <3> so i need dummy variables like n = i + 1 ..isn't it any easy way to do this? <3> hmm the problem went away when i put import Numeric explicitly at the top... <3> okay now i found out how to add two neighbouring pixels.. how do i divide the two pixels with their area (yes, im making a blurfilter) <3> this is what i define as fun.. making a 2x2, 3x3 and 5x5 filter for jpeg files for blurring and a simple invert filter.. whoha.. just using pygtk, gtk and Numeric in python <3> my next filter.. umm .. perhaps sobel or laplacian <11> man, I had a good question last night <11> Are Perl and Python still the premiere "scripting" languages? <1> probably, depending on what you mean by "scripting" <1> you can use Python for a lot more than just scripting <8> perl is good for abstract art if you print it in a big enough font :/ <12> Holy moley. This is a Python bombshell: http://pyfound.blogspot.com/2006/04/python-25-licensing-change.html <1> check the date <12> Oh ho. I was caught by an april's fool joke :) <12> Silly me. Nothing to see here. Move along. And sorry. :) <13> new to python, just read the FAQ. Why isn't there tool to install modules/packages like pear does for PHP? <13> is there? <1> distutils <1> tar, cd, python setup.py install <13> where can I find info on this? <1> library reference <13> hmmm, it doesnt' download the package. <13> just installs <1> yes <13> looks cool though, thanks <7> how do i compile python .py scripts to .pyc precompiled scripts <1> py_compile module
Return to
#python or Go to some related
logs:
#politics uninitialized +recover files pvr-150 full height bracket #sendmail #politics #computers srbijan planet
john Mcaine #nhl #delphi
|
|