| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Comments:
<0> hello all <0> I just compiled python, does it come with drivers for databases? Postgresql/MySQL etc? <1> jsm: then that would probably be conn.insert_id() .... where did you get conn.db from? <2> cbrinker, No, not built-in. <1> cbrinker: get the MySQLdb etc packages <0> AcidReign: what package system? apt/rpm? <0> heck does python have its own package management system? <1> cbrinker: which ever, and yes <1> cbrinker: which do you have? <0> AcidReign: I am on a mac, but I installed this python from source <1> cbrinker: if you have apt, then I believe its apt-get install python-mysql <3> AcidReign: i thought db was the attribute i needed <1> or you can go to http://sourceforge.net/projects/mysql-python <1> jsm: why did you think that? <1> jsm: a MySQLdb connection doesn't even have a db member
<3> AcidReign: I read the doc wrong.. it was outdated, my mistake <4> GOOD SHABBOS!!! <5> Goodbye. <0> anyone here ever get pygresql to compile? <6> I though psycopg was the cool one... <3> what's the best way to sort o a list of lists? <3> sorry, rather find unique items in a list of lists <7> define what uniquenes is first <8> dictionary? <7> since you have a list of lists do you mean that the sublists are unique or that a single element in a single sublist is unique to all of them <7> for example [(1,2), (2,3)] are (1,2) and (2,3) unique or is 1 and 3 unique or do you want 1 2 3? <9> oye <9> how can I use external program in my python script? e.g. system() in perl <10> os.system <9> thanks <10> np :) <11> Hello, what's the best IDE for Python? <7> on what os/ <7> ? <7> I prefer kdevelop3 but eric3 is also good but I think both of those are unix only <12> vim <13> Hello again <13> Which is the best Python IDE? <9> what about kwrite <12> vim <14> crayoons <15> fromvega_: eclipse? <7> I prefer kdevelop3 or eric3 however those are only for unixes <9> does python have something like a TurboC IDE <9> where one can also run the program plus get online help etc. <9> ;) <7> kdevelop3 can run the program and do help <13> I planning to start using python for some projects, perhaps I will try Eclipse, but is there another IDE with code completion and things like that that I could check? <7> code completion works very badly with python <13> why? <7> lots of tools have tried all kinds of ways to make it work better but it is not really a very good fit <9> what is code completion <7> since good code completion also requires static typing essentially <13> Is that I only have a superficial understanding of pyhon... I usually works with PHP and Java sometimes... I'm choosing python now because some of the serial port libraries.... <13> *python <7> however from my experience you need code completion a lot more with java,c++ then you would with python <7> most things in python are far more uniform <13> do you have any experience with port control, like serial port, with python? <7> nope <7> actually I have never worked with that in any programming language <13> I would like something cross plataform, it seems Java have a good API for Linux but do not have it implemented for Windows.... I have read about pySerial and it seems interesting.... <7> I am not even sure if any of the machines around here even have serial ports :) <7> http://osteele.com/archives/2004/11/ides that is an interesting read, python is a language mastery based language and java is more of a tool based language and they each have their own sets of pros and cons <16> how to format a float to print as 2 digits before decimal and 2 digits after decimal, for example : 12.35 <7> '%.2f' % somefloat <7> however how many digits you have before the . sign up up to how large the number is <13> kosh: I know USB is the default port communicaions nowadays but it's a quite difficult to implement <17> I'm out of Idea's now <17> What should I make in python? <16> kosh:thx <7> Eleaf: doomsday device, I would like it delivered tomorrow since I have a deadline to meet :) <17> lol <17> kosh, what should it do? <16> kosh: I am trying to align "1.56 and 12.78" when I print them on different line
<17> kosh, eat you!>!> <7> wuming: ah I see <18> I am interested in making a .exe from my python script. Can anybody point me in the right direction please? <16> kosh: is there a solution to this problem? <7> py2exe <7> wuming: yes but I have to find it <18> kosh: Thank you. <16> kosh: I'd try to find it, still no luck <17> kosh, ? <7> Eleaf: I am not edible <17> kosh, I disagree strongly. <7> Eleaf: I am non corporeal :) <17> kosh, Highly disagreeable <17> lol <7> wuming: well I don't see an easy way to do it but you can do it manually but you need to know how long your longest number is first <16> yep <16> thx anyway <7> or how long you want them adjusted to at least <17> kosh, YUM <11> So, why should I use python instead of other languages as PHP and Java? I do not want to use Python for Webdev since I'm very pleased with PHP, but for other things like software integration and port communications.... Should I choose Python? Is it difficult to catch? <19> catch? <11> to know how to program easily <19> yes the syntax isn't too hard to learn <19> why not give it a go and see <7> well I have used it for a fair number of things but not for serial ports I don't know how hard that is <7> but for making guis it is certainly easier then java <7> I primarily use python for webdev though, I really like zope and I have seen no other application with the as good of a security framework by a long shot <11> kosh: could you take a look at this: http://pyserial.sourceforge.net/ ? I think it's good but since I do not know python very well maybe not.... <7> well the examples look easy at least I just don't know how it will work in practice <11> kosh: does python have threads? <7> yes <11> kosh: and listeners? <17> kosh, billions of threads? <7> however they usually won't gain you much if anythying other then making your program harder to debug <7> and they won't scale across cpus very efficiently <7> a single python process, regardless of how many threads, will scale at best across 2 cpus and not very well at that <20> Can you invert a re.compile? So I could use \w and somehow say "find anything BUT \w" <20> Bad example, I need more than \W (the inverse) <20> It's a special set, so I need a way to inverse <21> i have small script for using yahoo's search engine but im not sure how to make grep/sed type functions into the python code if one of you dont mind looking at this and give me some pointers of which way to go with it http://pastebin.com/549393 <16> how can i change a global virable inside a function? <16> varable <22> bretth: [^<set>] ex [^A-Z] [^\w] etc <23> wuming: global variable_name <20> wchun: Thanks! <16> lde:thx <23> wuming: but you shouldn't do it ;) <20> wchun: Can I do that TO a set? I want to invert \w, space, and period <16> lde: it's a small report generating tool :) <20> wchun: [^\w|^ |^\.] ... that doesn't invert the "or"'s <16> lde: global myVar = "reset" it works like this? <23> no <23> def foo(): <23> global bar <23> (...) <23> bar = 5 <16> i see <24> bretth: you want to match everything except alphanumeric chars, spaces, and a period? <20> sysfault: yeah <24> Brend: [^\W\S\.] should do it, or just test for for anything non-numeric and process the non-match accordingly. <24> bretth* <25> sysfault, a regex is faster than that <24> I doubt the speed gain is that significant. <26> Damn. The tab went blue and I got all excited <24> lol <24> Brend: always happens to me. <27> hello everybody!! <10> hi <28> Hiya, Condector <27> hehee <27> shekmalhen, cjfs you know how make a daemon prog with python without make my prog into background ?
Return to
#python or Go to some related
logs:
#lisp #mysql ndiswrapper line 135 #debian ubuntu freeNX vs VNCserver #linux mssql_bind() ubuntu #css sudo must be setuid ubuntu #web
|
|