[Tutor] Html entities, beautiful soup and unicode

2010-01-19 Thread andy
Hi people I'm using beautiful soup to rip the uk headlines from the uk bbc page. This works rather well but there is the problem of html entities which appear in the xml feed. Is there an elegant/simple way to convert them into the "standard" output? By this I mean £ going to  ? or do i have to u

Re: [Tutor] Html entities, beautiful soup and unicode

2010-01-19 Thread Gerard Flanagan
andy wrote: Hi people I'm using beautiful soup to rip the uk headlines from the uk bbc page. This works rather well but there is the problem of html entities which appear in the xml feed. Is there an elegant/simple way to convert them into the "standard" output? By this I mean £ going to  ? or

Re: [Tutor] Html entities, beautiful soup and unicode

2010-01-19 Thread spir
On Tue, 19 Jan 2010 08:49:27 +0100 andy wrote: > Hi people > > I'm using beautiful soup to rip the uk headlines from the uk bbc page. > This works rather well but there is the problem of html entities which > appear in the xml feed. > Is there an elegant/simple way to convert them into the "stan

Re: [Tutor] Python workspace - IDE and version control

2010-01-19 Thread Kent Johnson
On Mon, Jan 18, 2010 at 4:17 PM, Alan Gauld wrote: > I use plain old RCS for version control because its just me working on the > code. Wow. You should take a look at Mercurial. It is so easy to set up a Mercurial repository for a local project - just hg init # create a repository hg st # show w

Re: [Tutor] Python workspace - IDE and version control

2010-01-19 Thread Kent Johnson
On Tue, Jan 19, 2010 at 9:12 AM, Andreas Kostyrka wrote: > The cool part about git that I've not yet replicated with hg is git add -p > which allows you to seperate out > different changes in the same file. Sounds like the record and crecord extensions come close, anyway: http://mercurial.seleni

Re: [Tutor] Python workspace - IDE and version control

2010-01-19 Thread Alan Gauld
"Kent Johnson" wrote I use plain old RCS for version control because its just me working on the code. hg init # create a repository md RCS in rcs hg st # show what will be checked in hg add # mark new files as to be added Don't need any of that stuff hg ci -m "Initial checkin" # the

Re: [Tutor] Python workspace - IDE and version control

2010-01-19 Thread ALAN GAULD
> >>> I use plain old RCS for version control because its just me working >> I prefer RCS - two commands is all you need (ci/co) :-) > > Certainly, OTOH, you get only file based commits, no upgrade path > should you ever decide that you need to go multiuser > (and multiuser can be just you wit

[Tutor] create an object from a class in dll with ctypes?

2010-01-19 Thread katrin schmid
hi, i am getting started with ctypes in python 2.5 and was wondering if i would be able to create an object from the class in my dll somehow. I only found examples that show how to access a function but the function i want to call is part of a cpp class in my dll... Thank you, katrin_

Re: [Tutor] create an object from a class in dll with ctypes?

2010-01-19 Thread Mark Tolonen
"katrin schmid" wrote in message news:0edda7dddff84d639352526b72dbf...@katissspc... hi, i am getting started with ctypes in python 2.5 and was wondering if i would be able to create an object from the class in my dll somehow. I only found examples that show how to access a function but the fun

Re: [Tutor] Python workspace - IDE and version control

2010-01-19 Thread Mark Tolonen
"Kent Johnson" wrote in message news:1c2a2c591001190905u28db4464hc1d1461ad26e9...@mail.gmail.com... On Tue, Jan 19, 2010 at 9:12 AM, Andreas Kostyrka wrote: The cool part about git that I've not yet replicated with hg is git add -p which allows you to seperate out different changes in the