Re: Python stock market analysis tools?
On 4 Mar 2007 19:52:56 -0800, Mudcat <[EMAIL PROTECTED]> wrote: > I have done a bit of searching and can't seem to find a stock market > tool written in Python that is active. Anybody know of any? I'm trying > not to re-create the wheel here. Depends on what you mean by stock market tool. There's http://ta-lib.org which while written in C++ claims to have a python wrapper. That being said last time I looked at it I couldn't get the python binding working, but I didn't spend much time on it. Dag -- http://mail.python.org/mailman/listinfo/python-list
Re: Python GUI + OpenGL
On Fri, 02 Mar 2007 18:30:34 +0100, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > Achim Domma wrote: > >> Hi, >> >> I'm developing a GUI app in Python/C++ to visualize numerical results. >> Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there >> are no windows binaries for Python 2.5 for quite some time now. >> >> I need a OpenGL context without restrictions and some settings dialogs. >> Is wx + PyOpenGL the way to go? Or could somebody recommend a better set >> of tools/libs? > > PyQt, but then there is the licensing question of course. I'm facing a similar problem. Would you care to explain why PyQt is better in this particular case. I've used both PyQt and wx for 'normal' GUI programming (but I'm more familiar with wx) so I know about their difference in general. But why is PyQt better than wx for working with OpenGL? Dag -- http://mail.python.org/mailman/listinfo/python-list
Problem with class variables
I have a problem which is probaly very simple to solve, but I can't find a nice solution. I have the following code class Test: def __init__(self): self.a=[1,2,3,4] self.b=self.a def swap(self): self.a[0],self.a[3]=self.a[3],self.a[0] def prnt(self): print self.a print self.b c=Test() c.swap() c.prnt() which returns [4,2,3,1] [4,2,3,1] Now I understand why it is doing this, but it's not what I want. How to I get it to return [4,2,3,1] [1,2,3,4] Dag -- http://mail.python.org/mailman/listinfo/python-list
text file vs. cPickle vs sqlite a design question
I have an application which works with lists of tuples of the form (id_nr,'text','more text',1 or 0). I'll have maybe 20-50 or so of these lists containing anywhere from 3 to over 3 tuples. The actions I need to do is either append a new tuple to the end of the list, display all the tuples or display all the tuples where the last element is a 1 Basically what I'm wondering is the best way to store these data stuctures to disc. As the subject mentioned I've basically got three approaches. Store each list as a text file, pickle each list to file or shove the whole thing into a bunch of database tables. I can see pros and cons with each approach. Does anybody have any advice as to whether any of these approaches is obviously better than any other? On one hand I like the text file approach since it lets me append without loading everything into memory, on the other hand the sqlite approach makes it easy to select stuff with SELECT * FROM foo WHERE... which could be handy if ever need to add more advanced filtering. Dag -- http://mail.python.org/mailman/listinfo/python-list
a question about socket objects
Hello, I have a question: How do I append a socket object into a list "manually" without appending the variable which the socket object is stored in, but just the socket object itself if I somehow know the address(pretend like)? I dont "need" this in any way for my code, but I would like to know, for a better understanding of network programming I know how to do it like "socketobject, addr = sock.accept()". Then append socketobject to that list But if we just pretend like I know that the socketobject is , how can I append this socket._socketobject to the list? like list.append() ??? Thats what I want to know, not that I need it, but I'm curious to know how python handles/work with the socket objects in general Any answer or explanation is greatly appreciated! Best regards Dag Hansteen -- http://mail.python.org/mailman/listinfo/python-list
Re: John Bokma harassment
"Xah Lee" <[EMAIL PROTECTED]> skrev i melding news:[EMAIL PROTECTED] > I'm sorry to trouble everyone. But as you might know, due to my > controversial writings and style, recently John Bokma lobbied people to > complaint to my web hosting provider. After exchanging a few emails, my > web hosting provider sent me a 30-day account cancellation notice last > Friday. The solution to your problem is very simple: Stop posting your "controversial writings and style" to public newgroups, and keep them on your web-server where they belong. -- Dag. -- http://mail.python.org/mailman/listinfo/python-list
Re: Xah's Edu Corner: What is Expressiveness in a Computer Language
"Xah Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What is Expressiveness in a Computer Language PLONK. -- Dag. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python IDE: great headache....
I like PyScripter. It has some of, but not all, the features you request. http://mmm-experts.com/Products.aspx?ProductId=4 -Dag -- http://mail.python.org/mailman/listinfo/python-list
Re: Python IDE: great headache....
> What features exactly does it not have? Come to think of it, the only exception is probably that PyScripter (AFAIK) does not provide conditional pause. But I really like it. PyScripter is written in Delphi, my other favorite language :) -Dag -- http://mail.python.org/mailman/listinfo/python-list
Re: Python IDE: great headache....
> Come to think of it, the only exception is probably that PyScripter (AFAIK) > does not provide conditional pause. Quoting myself :) But now it does! Conditional breakpoints were introduced in the new version released on the 14th of March: http://mmm-experts.com/ -Dag -- http://mail.python.org/mailman/listinfo/python-list
