Re: How to convert markup text to plain text in python?
On 01-Feb-2008, geoffbache wrote: > I have some marked up text and would like to convert it to plain text, > by simply removing all the tags. Of course I can do it from first > principles but I felt that among all Python's markup tools there must > be something that would do this simply, without having to create an > XML parser etc. > > I've looked around a bit but failed to find anything, any tips? > > (e.g. convert "Today is Friday" to "Today is Friday") Quick but very dirty way: data=urllib.urlopen('http://google.com').read() data=''.join([x.split('>',1)[-1] for x in data.split('<')]) -- http://mail.python.org/mailman/listinfo/python-list
Re: What is best way to learn Python for advanced developer?
Ethan et al, has anyone completed the oreilly python 1 through python 4 training courses (part of their Python Certificate track)? Looks like it will take over 2 months to complete it and it's expensive. I'm trying to decide if it's worth the investment. With a full time job, it would take me a lot longer than contiguous 2 months to go through the training. My objectives are A) to gain more python experience, B) while gaining more programming exposure. Although I have my CS degree and can read and understand code well, I haven't had to write many programs yet. Will this course help with both objectives? Thanks, JP On Wed, Jul 30, 2014 at 2:05 PM, Ethan Furman wrote: > On 07/30/2014 01:20 PM, guirec.cor...@gmail.com wrote: > >> >> I'm looking for online courses and any ressources I can have on the >> subject. >> > > Udacity [1] has some free computer courses, a few of which use Python as > the language -- what I have seen so far is decent. > > O'Reilly [2] has four very good Python courses, which are not free. > > -- > ~Ethan~ > > [1] https://www.udacity.com > [2] http://www.oreillyschool.com/search/?search=Python > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
Re: Porn Addiction Solutions?
BTW, this is the newsgroup of python.org, not python.com; but python does have tools that let you synth new graphics from old, and it would be interesting to know if there were any other programming approaches to this problem . On Wed, Oct 8, 2008 at 12:07 PM, <[EMAIL PROTECTED]> wrote: > Help, I'm addicted to porn. I've been spending a lot of time > downloading hardcore porn and masturbating to it. It's ruining my > life. I just found out that one of these sites somehow hacked my card > and rang up $5K in charges which they won't even refund me. Even with > that I haven't stopped my habit and it's only getting worse. How can I > end this addiction? > > Any suggestions? > -- > http://mail.python.org/mailman/listinfo/python-list > -- Americium Dream Documents "(real opportunity starts with real documentation) http://amerdreamdocs.tripod.com/ http://www.angelfire.com/psy/dr.addn/ -- http://mail.python.org/mailman/listinfo/python-list
Help: problem in setting the background colour ListBox
Hi everyone , I have a requirement of displaying my data in a textCtrl like widget , but i need that the data in the row be clickable , so as when i click the data i could be able to get fire and even and get me the selected data value.After a long search i found ListBox to be perfect for my use but When i try to set the backGround colour to the colour of my application requirement i am not able to do so, but i am able to set the foreground colour . Hope someone will guide me in solving my problem Thanks -- http://mail.python.org/mailman/listinfo/python-list
Help: Guide needed in trying to delete/flush the content of a fifo file.
Hi python geeks, I have problem which i have been trying to find out for the past some days, i have a device which feeds info to my fifo continuosly, and a thread of mine reads the fifo continuosly. Now when i change a parameter in the device, it sends me different values. Now my problem is that , i want to get rid of the contents of my previous info which is present in my buffer of the fifo.So i want to flush the fifo content when my device starts sending different info i am implementing writing and reading the fifo using two different threads. Please someone guide me solving my problem. I highly apologise everyone in case my post is not so clear... Thanks everyone in advance. -- http://mail.python.org/mailman/listinfo/python-list