| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Comments:
<0> Because I love it - and love is blind <1> they are too ignorant to understand the depth of the issues they are protesting <1> lispy: yes, ptown <2> i had a professor that said everything is an argument...in fact that was the name of our text book <2> she said that the clothes you wear are an argument <1> is an expression same thing as an argument? <3> what is wrong with "if tokens[0].split() in keys" ? <4> vininim: it's missing the terminating : <3> thanks <2> i think an expression can be an argument, foo(2*2), but an argument doesn't have too be an expression? ;) <1> ... deep <2> i wonder why ext is missing... <4> lispy: it's not part of the standard library. <2> then here do you find it? i was trying to google it but not having much luck
<4> lispy: it's part of PyXML. <4> or the 'python-xml' package, if you use debian. <2> i wish i used debian but this is at work :( thanks, i'll get pyxml <1> hmm, I dont have .ext either <1> lispy: do you have xml.dom? <2> agilman: yeah apparently that much comes with python <2> does anyone know what elements like these are called? <? foo ?> <5> lispy: processing directives <2> thanks <2> so why doesn't lxml preserve them? :) <6> j #asterisk <6> oops <7> newbie problem...outputting the variable row with "print row" .. gives me "{'tables_in_biasva': 'pilots'}" .. how do i access the "pilots" bit without doing "row['tables_in_biasva'".. tried row[1] ? any ideas if its possible ? <8> row[0] ? <9> for key, value in row: print row <9> whoops <9> for key, value in row: print value <9> or row.values()[0] if there's only one <10> uh <7> joe_k: lovely ta.. row.values()[0] is what I wanted... strange syntax me trying to get used to ! <9> whoops i guess you can't do k,v in d.... iterator on dict is just keys <11> d.items() <9> yeah <9> i think the iterator should return k,v pairs... i mean why not <11> that's a good question <12> MIT is creating a 100 million army of python programmers <13> p_masho: row.values() creates a list of all values, row.values()[0] then simply is the first element of that list. <12> http://wiki.laptop.org/index.php/OLPC_Python_Environment <13> p_masho: why don't you like row['tables_in_biasva']? it says exactly which element from row you want. row.values()[0] could be any in row. and i mean any. e.g for row={"a2":0,"b2":1,"a1":2,"b1":3, row.values()[0] == 2 <13> ups, there is a '}' missing after :3 <7> ChrisLong: Normally yes... but in this instance I specifically want row[0] as the "tables_in_?" will change .. length will always be the same... <13> p_masho: ok, then ignore what i said :) <7> ChrisLong: thanks for the advice though .. its helpful .. to a newbie :-) <14> hello there <14> is there a python compiler? <14> and gettext support? <13> g***: gettext: http://docs.python.org/lib/module-gettext.html <8> g***: there is not yet a python compiler, but there is way to make independant bundle with integrated interpretor <14> ChrisLong: thanks <14> marmoute: my point is to make applications that cannot be copied easely <8> python byte code is maybe easier to reverse than binary-code but not than much <14> i am putting python at the same level than java <14> as language to use in an application <3> at the same level? pfff.. python > java ;) <14> vininim: if it does not compile ... it is not ... <14> java is bad on speed <13> vininim: '>' as in 'more difficult'? ;) <8> g***: depend of how you evaluate this level <8> ChrisLong: hihi python more difficult than java ;-) <14> python it seems easy to learn <14> as i saw <15> I don't think I get it <15> I can't use jave if I don't install it right? <15> I mean I can get byte code that runs if a jvm is present <14> redir: true <15> How is that different than either installing python or packaging tthe required bits? <15> I have distributed numerous exes do windows users without a hitch <14> redir: my target is linux <15> If they use an OS python usually comes installed <14> redir: but i need compiled source
<15> look at journyx <16> g***: proprietary? <17> If I'm going to start GUI programming with python, which wm would you guys say would be the easiest? <14> kbrooks: yes <13> g***: the distrinbute the .pyc files <15> they distribute their product as pyc files <16> ChrisLong: those files can be decompyled (no, i didnt typo) <14> ChrisLong: redir : true, they are binary <15> there are plenty of java decomps too <13> kbrooks: i know. but it's copmpiled <18> im trying to write an A.I. algo <16> g***: i'd rather you distribute a freezed binary <15> someone with the notion will do it <18> i'm having a headache <15> read the MS EULA and incrporate really draconian punishments for decompiling <14> kbrooks: how ... i am new to the language, can you please make me see the light? <16> freeone3000: theres no specific wm to program for <16> g***: use cx_Freeze on linux, and py2exe on Windows <15> g*** what kbrooks said <16> freeone3000: there are toolkits <17> kbrooks: So I don't have to worry bout the QT/GTK/TCL thing? <14> apt-cache search python compiler -> decompyle - a Python byte-code decompiler <8> freeone3000: you have <14> redir: kbrooks thanks <9> java has nice obfuscators <16> freeone3000: i didn't say "there is a specific wm to program for" <16> freeone3000: you misread <8> freeone3000: there is Tkinter, pygtk pyQt wxPython ;-) <17> ...Which do you guys like? <16> freeone3000: subjective. try pygtk, pyqt and wxpython and tkinter <16> def attempt(*toolkits): <8> freeone3000: personnaly I did wxPython because it's very well portable an integrate expecialy for OsX <17> Mmkay. <16> for toolkit in toolkits: <16> res = toolkit() <16> if res: return toolkit <16> return False <16> freeone3000: ^ actual python code that shows what you should do. try each toolkit. if you like it, use that <13> kbrooks: better use yield toolkit. otherwise only the first gets used :) <19> for toolkit in toolkits: toolkit.complainAboutAbysmalAPI() <16> ChrisLong: that's what it's supposed to do <16> personally ... <16> def pygtk(): return True <16> def pyqt(): return False <16> def wxpython(): return False <13> kbrooks: oh, i misunderstood the code <8> boo <8> ;-) <15> *scared* <16> def tkinter(): return False <20> Dude, don't do that. <20> Freaked me out. <16> zxsykco: don't do... what? context please <8> zxsykco: mee ? <16> i wonder if there is something that wraps re module: <16> from rewrapper import * <9> how does re need wrapping? <16> re = regexp() <16> re = str(words(zero_or_more)) <14> kbrooks: i can also compile with compileall, right? <16> re # "\w*" <16> joe_k: ^ that <15> re wraps sre, no <15> > <16> redir: look above <18> is there any way to use // for comments ? <9> you want an alternate re syntax based on composing python functions? <18> i hate using # :( <16> no. <18> it reminds me bad things about C <9> what is words() supposed to do? <16> joe_k: cl*** instances, not functions <13> HellDragon: only when you write a preprocessor <9> why not write a parser kbrooks
Return to
#python or Go to some related
logs:
latin1 table name mysql and java gnucash missing fonts #centos #math how to setup qmail + ldap + samba Exception thrown without a stack frame in $_SESSION class error: structure has no member named `rlim' nvidia find out centos version ubuntu modline #centos
|
|