Re: Is secretly downloading to your computer ?!

2015-12-02 Thread Rob Hills
replying to this thread. I suspect part of the OP's intent is to have his assertion generate lots of traffic, all repeating the assertion via their subject heading... Unless of course you actually agree with his assertion! Cheers, -- Rob Hills Waikiki, Western Australia -- https://mail.python.or

Re: Generate config file from template using Python search and replace.

2015-11-29 Thread Rob Hills
3') > print(data) > > So now the challenge is to use the read().replace magic for multiple values. It's crude, but it works well for me! -- Rob Hills Waikiki, Western Australia -- https://mail.python.org/mailman/listinfo/python-list

Re: Find relative url in mixed text/html

2015-11-28 Thread Rob Hills
Hi Paul, On 28/11/15 13:11, Paul Rubin wrote: > Rob Hills <rhi...@medimorphosis.com.au> writes: >> Note, in the beginning of this project, I looked at using "Beautiful >> Soup" but my reading and limited testing lead me to believe that it is >> designed f

Re: Find relative url in mixed text/html

2015-11-28 Thread Rob Hills
Hi Laura, On 29/11/15 01:04, Laura Creighton wrote: > In a message of Sun, 29 Nov 2015 00:25:07 +0800, Rob Hills writes: >> All that said, I'd be interested to see specific (and hopefully >> unbiased) info about phpBB's failings... > People I know of who run differe

Re: Find relative url in mixed text/html

2015-11-28 Thread Rob Hills
ece of regex is doing and I don't like having bits in my code that hurt my brain. BTW, that's not meant to be an invitation to someone to produce some regex for me, if I can't find any other way of doing it, I'll try and create my own regex and come back here if I can't get that working. Cheers

Find relative url in mixed text/html

2015-11-27 Thread Rob Hills
" but my reading and limited testing lead me to believe that it is designed for well-formed HTML/XML and therefore was unsuitable for the text/html soup I have. If that belief is incorrect, I'd be grateful for general tips about using Beautiful Soup in this scenario... TIA, -- Rob Hills Waikiki, Wes

Re: What meaning is of '#!python'?

2015-11-14 Thread Rob Hills
can then run the script from the command line without having to preface it with a reference to your Python executable. Eg: my-script.py versus python my-script.py HTH, -- Rob Hills Waikiki, Western Australia -- https://mail.python.org/mailman/listinfo/python-list

Re: Need Help w. PIP!

2015-09-04 Thread Rob Hills
ould be the cause of your problem (ie the "C:\Python34\Scripts;" part won't be accessible. Perhaps try deleting the "C:\Python34\python.exe;" entry from your PATH environment variable and see what happens. HTH, -- Rob Hills Waikiki, Western Australia -- https://mail.python.org/mailman/listinfo/python-list

Re: Need Help w. PIP!

2015-09-04 Thread Rob Hills
On 05/09/15 08:55, MRAB wrote: > On 2015-09-05 01:35, Rob Hills wrote: >> On 05/09/15 01:47, Cody Piersall wrote: >>> > On Fri, Sep 4, 2015 at 12:22 PM, Steve Burrus >>> <steveburru...@gmail.com <mailto:steveburru...@gmail.com>> wrote: >>> >

Re: Reading \n unescaped from a file

2015-09-03 Thread Rob Hills
Hi Chris, On 03/09/15 06:10, Chris Angelico wrote: > On Wed, Sep 2, 2015 at 12:03 PM, Rob Hills <rhi...@medimorphosis.com.au> > wrote: >> My mapping file contents look like this: >> >> \r = \\n >> “ = > Oh, lovely. Code page 1252 when you're expectin

Re: Reading \n unescaped from a file

2015-09-03 Thread Rob Hills
Hi, On 03/09/15 06:31, MRAB wrote: > On 2015-09-02 03:03, Rob Hills wrote: >> I am developing code (Python 3.4) that transforms text data from one >> format to another. >> >> As part of the process, I had a set of hard-coded str.replace(...) >> functions that I u

Re: Reading \n unescaped from a file

2015-09-03 Thread Rob Hills
Hi Friedrich, On 03/09/15 16:40, Friedrich Rentsch wrote: > > On 09/02/2015 04:03 AM, Rob Hills wrote: >> Hi, >> >> I am developing code (Python 3.4) that transforms text data from one >> format to another. >> >> As part of the process, I had a set o

Reading \n unescaped from a file

2015-09-02 Thread Rob Hills
to me that I need to either: * change the way I represent '\r' and '\\n' in my mapping file; or * transform them somehow when I read them in However, I haven't figured out how to do either of these. TIA, -- Rob Hills Waikiki, Western Australia -- https://mail.python.org/mailman/listinfo/python-list