Extracting text using Beautifulsoup

2009-10-25 Thread TC
Greetings all. Working with data from 'http://www.finviz.com/quote.ashx?t=SRS', I was able to get the info using re, however I thought using Beautifulsoup a more elegant approach. Having a bit of a problem though... Trying to extract text: SMA20 -1.77% SMA50 -9.73% utilizing attribute bod

Re: Question on importing and function defs

2008-03-02 Thread TC
On Mar 2, 11:37 am, Gary Herron <[EMAIL PROTECTED]> wrote: > TC wrote: > > I have a problem. Here's a simplified version of what I'm doing: > > > I have functions a() and b() in a module called 'mod'. b() calls a(). > > > So now, I h

Question on importing and function defs

2008-03-02 Thread TC
I have a problem. Here's a simplified version of what I'm doing: I have functions a() and b() in a module called 'mod'. b() calls a(). So now, I have this program: from mod import * def a(): blahblah b() The problem being, b() is calling the a() that's in mod, not the new a() that I wa

Re: what is wrong with that r"\"

2007-07-04 Thread Matthieu TC
May I suggest giving the possibility to use any delimiter for a raw string? just like in Vi or ruby. Vi: %s_a_b_g is valid and so is %s/a/b/g Ruby: %q{dj'\ks'a\'"} or %q-dj'\ks'a\'"- So as long as your regex does not use all the valid characters, readability is maintained. -matt -

Re: for ... else ?

2007-06-12 Thread Matthieu TC
> > > On 6/12/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > > >> for x in iterable: > > >>do something with x > > >> else: > > >>do something when there are no more x > > > > >> You can think the above as: > > > > >> while there are still values in iterable: > > >>do some

What's up with the PyFX Project??? (ex PyCG nVidia CG implementation)

2005-04-04 Thread tc
rather like to program in a language such as python... PyGame doesn't meet my need's because i'd like to take adantage of the much faster directx technology. Any comments, hints? Greets TC -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython vs. pyQt

2005-03-17 Thread tc
n can i excpect qt4 to be released? tc -- http://mail.python.org/mailman/listinfo/python-list

Re: simulated samba server

2005-03-15 Thread tc
GREAT, thanks that should just do the trick. Maybe that way i'll generate a bit more network traffic (because it first transfers the data from different servers to the linux server and the sends it from there...) but it actually will work just fine. thanks alot cheers tc --

Re: simulated samba server

2005-03-15 Thread tc
neither... I really need a network drive or a shell integration (like virtual cd drive...) cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: simulated samba server

2005-03-15 Thread tc
HTTP isn't a solution. I thought of that also, but I need it to simulate a drive, because various programs (also such that don't support webDAV / HTTP) need to access the files on that storage, as if it where a local or a network drive. -- http://mail.python.org/mailman/listinfo/python-list

Re: python reading excel thru ADO ?

2005-03-15 Thread tc
I always used win32com.client to access excel files and parse them, save them as website, csv and so on. why exactly is it that u use ado for solving this? TC -- http://mail.python.org/mailman/listinfo/python-list

simulated samba server

2005-03-15 Thread tc
Does anyone know of a module for python which simulates a samba server (windows fileshare). Instead of sharing a Phisical Device I'd like to share a database based filesystem which is spread over various numbers of drives and servers. Any hints? TC -- http://mail.python.org/mailman/lis