| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Comments:
<0> is like worse than Java! <1> oh god <1> I write something down <1> and it shows up 1 second later <1> $%^&*() <2> IronPython is slow at compiling code, yes. <2> Running is a different matter; the integer performance exceeds C Python. <0> Erwin: list().GetObjectArray seems to return an object array, but I can't figure out how to populate that <2> [1,2,3].GetObjectArray() <0> sweet! made my day :) <3> is there a way to zip(keys, values) into a dictionary? <3> nevermind: dict(zip(keys, values)) <4> hi <4> is it possible that i calculate a command which is saved in a variable? like var = '1+1' <5> >>> var = eval('1+1'); print var <5> 2
<4> k, thx <6> Is there a way to create static executables containing all used modules of a (wx) python app? <6> or at least everything exept wx <7> nyk2005: py2exe will probably do what you want <2> To some degree. On Windows, you will have an exe + python.dll + any c modules you use + wxpython modules + wxpython libs <2> but it's easy to build an installer for it with e.g. innosetup <8> I'm writing a blog system for members of my site, and I'd like them to be able to define a cheetah template that determines the look of their blog. Can I do this safely in any way? I'm worried about <% %> tags and such.... <6> kosh: nothing for linux? <2> there''s PyInstaller which is more cross-platform <6> I'm emerging jython, but I don't think it's what I need... <9> probably not <7> nyk2005: for linux I would not do that at all, actually if I found a package done that way I would not use it <9> I don't think it's really necessary in Linux. <6> Just looking for a simpler way to use my prog, without having to install swig and C library I use (with it's old makefile system) and NumPtr (I use to access arrays from C) on every machine <9> In Windows it's a nuisance to search for all the required packages and install them, but on Linux it's just a few clicks or a couple of commands and you're done. <9> hmn <10> quick question about string.isalpha <11> pekuja: ***uming a sane pkg manager, yes. <9> bharring: most distros have one <10> it returns false when the string is compromised of only alpha or only numeric characters, is that right? <12> ?''.isalpha yi <10> err, not the latter <9> bharring: well, I would at least say the most popular distros have one <6> I'm not using stuff that is in any package manager (portage). <7> pekuja: why not make a little package repository and put it in the right format, then you can easily install it on all your machines <10> Pythy: oh isalnum is what i'm looking for, thanks! <6> Well I mean partially.... <7> pekuja: and then you can also update that one repository and trivially push updates out to all the machines <9> kosh: I think you mean nyk2005, not me <7> pekuja: you are right <6> I'm not sure... <6> :) <6> What's the motivation to jython? <13> question: how do i call "sync" in python so that disk buffers are written out, but i don't have a file descriptor (else i could call os.fsync()) <6> ok... I can read that I guess.. <7> you could use os.command <9> nyk2005: you can optimise some stuff by doing it in Java instead of Python. or you could use Python scripts from a Java program <7> at least on unixes <7> pekuja: wow both of those sound pretty bad to me <14> just use os.system("sync") <9> nyk2005: and you could use Swing or AWT for GUIs if you liked <7> pekuja: I don't see how you are going to optimize a python program by using java code ;) <13> ok, thanks.. thought about that, but i thought there might be a "proper" way of doing this in python =) <9> is Java not faster than Python? I was pretty sure it was. <13> thanks, guys :) <6> ok.... if I would "speak" java.. :) <14> perli: C is even faster. <14> not to mention hand-crafted asm. <6> yeah I use C, it's lots simpler! <7> pekuja: it seems to be faster in the micro benchmarks but the java apps I have never seen to be faster in practice <2> Jython is slower than C Python. <11> pekuja: would really need to nail that one down to specific areas of comparison... <7> pekuja: and you have a pretty m***ive vm overhead to try and speed up python with java <9> hand-crafted asm is the best in theory, but in practice no one can do a good enough job on modern CPUs <7> pekuja: where you can speed up python with c code and pretty much no overhead <9> bharring: sure <9> kosh: yeah, C code is probably better, but it all depends on your needs <15> Python 2.4 is 35% faster than 2.2... Unless using Python in computational expensive applications isn't optimizing a Python script sort of pointless? <7> pekuja: one thing I don't like about the java tests is that they all seem to be short duration, so the hit you pay for its excessive memory usage doesn't nail you till after the benchmark <9> kosh: and the VM overhead is pretty irrelevant if you're making some server backend software or something that will be always running and you have plenty of funds to upgrade you RAM <7> pekuja: even with 2G of ram I have found that java apps have ended up crippling server performance since they end up chewing up so much ram that the os can not cache very effectively
<11> vbgunz: just because someone is using python for glue scripting doesn't mean the code should be crappy/slow (all depends on usage/calling)... <9> how is the relative fastness of Py2.4 related to 2.2 relevant in whether it's worthwhile to optimize a Python script? <9> kosh: Sure, but I'm just being hypothetical. <7> pekuja: there are some ways around that but I don't see the point <9> kosh: It could be the best solution in some case. I most probably wouldn't do it like that, but I'm just speculating. <16> hi! i need AES. what module to choose? python cryptography toolkit? <16> huh, is this channel alive? <7> yes <7> coder_5: but Idon't know the answer to your question <2> But Google does. <16> :-( hmm.. i guess i will try pycrypto .. (but soomehow i remember it must be build with the same compiler the python dll was build.. guess this was the showstopper for me last time...) <2> there are pure-python imlpementations <16> Erwin, sure it does, and it spits out 3 modules which are unmaintained since 2001, one which does not states it's age, and one which says it's abandoned... my question is now which one to choose... <16> Erwin, what would you recommend? speed is none of my concerns... <6> What's the best way to do inter process communication between a python and a C thread? <7> how about a unix socket? <17> nyk2005: unix socket, or unix signals. <2> coder_5: Well, I don't think AES has changed. <16> nyk2005, i embedd python into c, extend python from there and can do ipc <17> (signals if you want to say, "NOW NOW NOW", socket if you want to actually p*** data) <16> Erwin, if you'd ask which java runtime to choose from id not recomend kaffee... <16> nyk2005, hell, forget about embedding. this is inside a single thread only. <14> coder_5: Java isn't quite the same thing as AES. <14> coder_5: pick one, try it. <16> Yhg1s, yeah, i threw a coin and check aout pycrypto.. <14> pycrypto is definately the most used one. <14> but it's C. if you want something that works without a compiler, pick one of the pure-python ones. <16> Yhg1s, if it's the most used one, it will be fine for me. but it will end inside a py2exe archive, so i guess a pure python one would be much smaller at the end (?) <9> I'm wondering, are there any other podcasts on Python other than python411? <14> coder_5: well, if you're using py2exe, you've already decided not to care about size :) <9> Not that programming languages are the best things to have podcasts about. <16> Yhg1s, right :-O <18> pekuja what is the best thing to have podcasts about? ;-) <17> Zalamander: potatoes. <9> Zalamander: potatoes. <9> Zalamander: well, I guess a programming language isn't such a fast moving entity, but I guess a podcast could cover interesting Python software and development tools etc... <18> please don't make erase "potatoes" <18> er, me* <9> Zalamander: potatoes is a good topic. stick to that <17> Zalamander: I wonder if there's already a comp.lang.python weekly wrapup podcast. <9> hm... <9> I think there was one actually <9> That was terrible I think... it was made with a speech synthesizer automatically. <17> Zalamander: also, apparently doing interviews is a good idea. <17> Zalamander: over voip works. <9> Zalamander: are you actually planning on starting a podcast? <18> There are sometimes python-related things on itconversations.com I think <18> pekuja no, I'm definitely not planning any podcasts myself any time in the forseeable future <9> heh, ok <9> ok, I was more interested in a podcast with news and stuff like that. the itconversations stuff probably is pretty old <6> coder_5: with python IPC? <18> pekuja hm, not sure what you mean by old, but they seem pretty current to me <18> at least, the new ones (daily) <9> I mean the Python related stuff <9> or do they have Python stuff every now and then? <18> yeah, I recall seeing some. Searching, I find only one from Guido <9> yeah <19> 2.5 alpha is out. Who's tried it ? <20> is there a command to get all the processes windows is running? <7> you can probably get most but not all <20> kosh, and how do I get most? <7> I don't know, I have not coded on windows in over 10 years <7> but I do know that you can't get all <7> because of things like rootkits etc <20> lol <20> mkay <21> I have a list of objects, I want to find one of the objects in the list by iterating over the list and then replacing the object in the list with a new one. <21> can I do something like for p in listofObjects: <7> there are some nice additions in 2.5 it seems <7> pac1: why are you iterating over it to find the item? <21> better way? <7> why not remove and insert? <2> l[l.index(object)] = newobject
Return to
#python or Go to some related
logs:
debian network printer is greyed out #perl qmail tcp.snmp #debian dh_testdir alien gentoo mysql DELETE * FROM TABLE WHERE FIELD CONTAINS
dynqamic page #kde netlogon location
xorg 64 lib32 driver xorg.conf
|
|