| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Comments:
<0> Yhg1s: and why do you know everything? <1> I'm no one, and hardly. <2> Uhm, anyone here knows the site for python integration with apache? <1> http://www.modpython.org/ <0> Captain_Fleming: mod_python? <2> no, there should be another one, please the other one <3> Captain_Fleming, what's wrong with mod_python? Are you looking for PHP style integration? <4> Captain_Fleming: django? <2> well, someone gave me a link to some good integration, but I forgot about it, and after partitioning my disk, I had nothing anymore about it <0> are you looking only for integration with apache, or an actual web framework? <3> Captain_Fleming, check out this: http://wiki.python.org/moin/WebProgramming <2> both <2> owh, ok, I think I would find what I search there :-D <4> frameworks: django, zope, cherrypy <1> Captain_Fleming: there used to be mod_snake, but it perished. mod_python is the only Apache integration there is. <1> Captain_Fleming: perhaps you don't actually mean to integrate the two (a sensible option.)
<2> What do you mean? <2> I do mean that someone here recommended it once, and now I am sorry not to mail myself the link... <5> you just want to run python behind a mod_proxy <5> ? <2> No <2> Owh, what I do know is that the mod (or whatever it was) could run as a stand alone server too <2> But it had apache integration modules too <0> django? <6> Hey all <6> Question <3> Captain_Fleming, not to sound like a **** but why don't you try searching or sumthin instead of everyone playing 100 questions. <6> Is it better to use a dict or a list when storing instance variables in a cl***? <2> Sorry, but I have no link to the site but this place <3> Captain_Fleming, remember that link I sent ya, i'm willing to bet it's on there <2> I am looking though <2> I can not scramble that fast though <3> Captain_Fleming, another apache module that comes to mind is mod_webkit <3> ShortWave, What do you do w/ the list? <2> ok, I think I found it: webware for python :-D <6> Contain some object references <3> ShortWave, I am prolly the wrong one to ask <3> plus I gotta go home! <7> could someone take a look at http://deadbeefbabe.org/paste/2858 .. Is this supposed to happen? <6> Question <8> who ***y chick is here <6> can a cl*** instance contain references to instances of itself? <9> thanx all <6> rather, instances of the same cl***? <10> hi all. i'm a python newbie and i have a simple question. i do in the shell: 'echo "12 34" | ./myscript.py'. now i'd like to do a for-loop in myscript, which ***igns every number from raw_input to a variable. now my question: how to do it, so that the variable does not get every char, but '12' and '43'? <1> adoniz: I suggest you leave. <1> oisceo__: yes, it's supposed to happen, but you aren't supposed to rely on it. <7> Yhg1s: SOAPpy is relying on it, so it seems <1> oisceo__: The Python VM optimizes some strings by making them really the same object. This isn't an issue because strings are immutable. It doesn't always do it that way, though. <1> oisceo__: how wrong of them. <1> rdz: you read the line, then str.split() it. <1> rdz: the 'split' method of strings splits on whitespace by default. If you want to split on something else, it can do that too. <1> ShortWave: a cl*** can contain any references it wants. <7> Yhg1s: thanks <10> Yhg1s, thnx a lot <6> Yhg1s: okee just making sure <6> Yhg1s: Basically I'm defining a base GUI cl*** that has a draw() method...so that when it's own draw() method is called, it can do what it needs to, and then call the draw() method for each of it's children. <1> ShortWave: the usual method resolution order is the other way 'round. <1> ShortWave: however, you can achieve that actual order of execution by, in each derived cl***, having their 'draw' method call the parent cl***'s 'draw' method first. <6> Yhg1s: yeah, but for this I need to draw bottom to top <6> Yhg1s: Java-esque eh? <1> no idea. Python doesn't call basecl*** methods if you override a method, you have to do it explicitly. That means your derived cl*** gets to decide when to call the basecl*** method. <1> I don't know how Java doe sit. <6> In java you'd call super() <6> Yhg1s: my major issue is that the objects I'll be working with don't have a global registry or any kind of callbacks since it's OpenGL. <6> Yhg1s: So to even know what object got picked, I have to surf the object tree <1> I don't understand that drawback. You can't use OGL directly, you need a windowing system. GLUT if anything. <1> but then, I don't know what you want the register and callbacks to do ;) <6> Yhg1s: heh <1> it does sound a bit like you're confusing parent/child cl***es in a cl*** hierarchy with nodes in an object tree. <6> Yhg1s: Blender has a raw OPenGL wrapper. <6> Yhg1s: That's what I'm using. It has no extensions into GLUT or anything like that, which I wish it DID because that would make the job so much easier. <1> well, you can't *use* OGL without *some* windowing system :) <6> Yhg1s: heh <1> but I guess blender has its own. <6> Yhg1s: Yes...for lack of a better word, you might say that blender provides basic OGL support and gives you a predefined viewport. <1> yech. any chance you could just use PyOpenGL? it has GLUT. Or any of the GUI toolkits with OGL components.
<6> Yhg1s: nope, can't do it. It's gotta run inside of Blender. <6> Yhg1s: so to call the basecl*** method, what do I need to do? <6> cl***.__init__()? <11> I'm working with code in which one function is this: def attach(*args): return _ode.dJoint_attach(*args) <11> I need to p*** it two args, one of which is null. <11> But when I do, this error results: TypeError: argument number 3: null reference of type 'dBodyID' was received <12> ShortWave: yep, but be sure to p*** it the self object <11> Could someone please explain that? <6> jwp: K <12> well, the_basecl***.__init__(self) <1> ShortWave: if the method is __init__, then basecl***.__init__(self), yes. <6> Yes, because I have to give it the reference to the current object <1> garou: not really. It's not the fault of 'attach', all 'attach' does is call _ode.dJoint_attach() with the exact same arguments. <6> makes sense <1> garou: and _ode is not a builtin module, so who knows? <11> It *is* loaded. I've used it. :) <1> of course it's loaded, or you would get an entirely different error. <1> I said it wasn't *builtin*. It's not part of Python. <1> you'll have to dig into the documentation or the source of this _ode module. <11> Meep... Thanks. <13> Whats a good way to check if a list is empty, [] <13> if list is []? <1> 'if not list' <14> or len(l) == 0 <14> but not l reads better sometimes <13> thanks, yeah I was looking for readable <14> while not more_things_to_do: ... <15> I have 2 lines in a test code, import sys, pygame and pygame.init(), but python gives me an error on pygame.init: AttributeError: 'module' object has no attribute 'init' <1> ErikHK: do you have a 'pygame.py' or 'pygame.pyc' in the directory that script is in? <13> How can I clear a ManyToMany? store.set_sellers(None) is basically what I want <1> bretth: what is a ManyToMany? <13> Wrong channel :) <13> Django <1> heh. <7> so, if I can't rely on id() to test if object a and b are the same, what could I do? <1> oisceo__: you can rely on id() to see if they are the same *object* (although 'a is b' is an easier test to write) <15> Yhg1s: the name of the testfile is actually pygame.py, is that wrong? <1> oisceo__: you just can't rely on it to see if they are *equal*. <1> oisceo__: 'a == b' tests for equality. <1> ErikHK: yep. Python thinks 'import pygame' should import that pygame.py file. <1> ErikHK: rename the script, remove the pygame.pyc file Python created, and it should work. <15> Yhg1s: thanks :) <16> using mysqldb, how do i get the value of the auto-increment field for the last record inserted <17> last_insert_id function or such <13> Whats a nice way to just get the uniques in a set? (1,1,2,3,3) = (1,2,3) <17> A set. <18> Heh. I like languages where one answers one's own question when describing the problem. <18> bretth, Do you care about order of elements? <13> Nope, and set works nicely :P Thanks <19> anybody can install perfect PyGaim on gaim ? <19> (sorry my english..) <19> on linux <19> dont have doc, only oc for win <19> doc* <17> That's amazing -- Lemmings in DHTL: http://www.elizium.nu/scripts/lemmings/ <18> KarlsBerg, I don't know. ("How can one install... ?") <18> Gods, Erwin, don't send me there. I wasted hours there a month ago. <19> i dont XD <19> ejem... <19> i say "how can one install" ? <18> KarlsBerg, Yes. "How" asks for a method. "Anyone can?" asks for a yes/no answer. <19> where ? :S <18> KarlsBerg, Otherwise, I'm sorry I don't have an answer. What is PyGaim? <19> a interpreter for gaim <19> for make scripts on python <18> I understand. Looking at the doc, unless it does something Windows-specific, it should work on Linux. <18> I think "_gaim.pyd" would become "gaim.so" <16> Hmm... so i do: location_id = conn.db.insert_id(), and it returns AttributeError: 'Connection' object has no attribute 'db' <18> jsm, print dir(conn) <20> jsm: what's conn ? <20> jsm: and what are you expecting conc.db to be? <17> jsm: execute "select last_insert_id()" <16> conn is the mysql connection object i setup <21> hello all
Return to
#python or Go to some related
logs:
ubuntu NR_CPUS #mysql #math #math #web CK804 mplayer 5.1 pcntl_fork php #suse google.pam ubuntu nm2200
|
|