Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Mark Lawrence
On 12/07/2015 21:29, Laura Creighton wrote: In a message of Sun, 12 Jul 2015 21:09:22 +0100, Mark Lawrence writes: On 12/07/2015 20:47, Laura Creighton wrote: Simon Evans -- what editor are you using to write your Python code with? Laura Creighton Editor? His earlier posts clearly show he'

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Laura Creighton
In a message of Sun, 12 Jul 2015 21:09:22 +0100, Mark Lawrence writes: >On 12/07/2015 20:47, Laura Creighton wrote: >> Simon Evans -- what editor are you using to write your Python code with? >> >> Laura Creighton >> > >Editor? His earlier posts clearly show he's using the 2.7.6 32 bit >interacti

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Larry Hudson via Python-list
On 07/12/2015 05:48 AM, Simon Evans wrote: Dear Peter Otten, Yes, I have been copying and pasting, as it saves typing. I do get 'indented block' error responses as a small price > to pay for the time and energy thus saved. > You CANNOT ignore indenting. Indenting is NOT optional, it is REQUIRED

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Mark Lawrence
On 12/07/2015 20:47, Laura Creighton wrote: Simon Evans -- what editor are you using to write your Python code with? Laura Creighton Editor? His earlier posts clearly show he's using the 2.7.6 32 bit interactive interpreter on Windows. -- My fellow Pythonistas, ask not what our language c

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Laura Creighton
Simon Evans -- what editor are you using to write your Python code with? Laura Creighton -- https://mail.python.org/mailman/listinfo/python-list

Re: Python backreference replacing doesn't work as expected

2015-07-12 Thread MRAB
On 2015-07-12 10:40, Yonggang Chen wrote: There are two named groups in my pattern: myFlag and id, I want to add one more myFlag immediately before group id. Here is my current code: ## code begin # i'm using Python 3.4.2 import re import os contents = b''' xdlg::xdlg(x_app* pApp, CWnd* pParent

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Albert Visser
On Sun, 12 Jul 2015 19:33:17 +0200, Simon Evans wrote: Dear Peter Otten, I typed in (and did not copy and paste) the code as you suggested just now (6.28 pm, Sunday 12th July 2015), this is the result I got: Pyth

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Mark Lawrence
On 12/07/2015 18:33, Simon Evans wrote: Dear Peter Otten, I typed in (and did not copy and paste) the code as you suggested just now (6.28 pm, Sunday 12th July 2015), this is the result I got: Python 2.7.6 (default, No

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread MRAB
On 2015-07-12 18:33, Simon Evans wrote: Dear Peter Otten, I typed in (and did not copy and paste) the code as you suggested just now (6.28 pm, Sunday 12th July 2015), this is the result I got: Python 2.7.6 (default, No

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Chris Angelico
On Mon, Jul 13, 2015 at 3:54 AM, Laurent Pointal wrote: > Double \ in your string: > "C:\\Beautiful Soup\\ecologicalpyramid.html" > > Or use a raw string by prepending a r to disable escape sequences: > r"C:\Beautiful Soup\ecologicalpyramid.html" Or use forward slashes: "C:/Be

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Laurent Pointal
Simon Evans wrote: > - with open("C:\Beautiful Soup\ecologicalpyramid.html","r") as You seem to run Python under Windows. You have to take care of escape mechanism beyond \ char in string literals (see Python docs). By

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
Dear Peter Otten, I typed in (and did not copy and paste) the code as you suggested just now (6.28 pm, Sunday 12th July 2015), this is the result I got: Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Peter Otten
Simon Evans wrote: > Dear Peter Otten, > Yes, I have been copying and pasting, as it saves typing. I do get > 'indented block' error responses as a small price to pay for the time and > energy thus saved. Also Console seems to reject for 'indented block' > reasons better known to itself, copy and

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
Dear Peter Otten, Yes, I have been copying and pasting, as it saves typing. I do get 'indented block' error responses as a small price to pay for the time and energy thus saved. Also Console seems to reject for 'indented block' reasons better known to itself, copy and pasted lines that it accep

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
Dear Peter Otten, Incidentally, you have discovered a fault in that there is an erroneous difference in my code of 'ecologicalpyramid.html' and that given in the text, in the first few lines re: plants 1000

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Peter Otten
Simon Evans wrote: > Dear Peter Otten, thank you for your reply that I have not gone very far > into the detail of which, as it seems Python console cannot recognise the > name 'f' as given it, re output below : > > > Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] > on

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
Dear Peter Otten, thank you for your reply that I have not gone very far into the detail of which, as it seems Python console cannot recognise the name 'f' as given it, re output below : Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright"

EuroPython 2015: Recruiting Offers

2015-07-12 Thread M.-A. Lemburg
Many of our sponsors are looking for new employees, so EuroPython 2015 is not only an exciting conference, but may very well also be your chance to find the perfect job you’ve always been looking for. Sponsor job board - We will post sponsor recruiting offers on the job board of o

Re: beginners choice: wx or tk?

2015-07-12 Thread Laura Creighton
In a message of Sat, 11 Jul 2015 15:50:05 -0700, Paul Rubin writes: >Ulli Horlacher writes: >> This is not an option for me. My users only accept standalone executables. >> They cannot install any runtime environment or extra libraries. > >Long ago I was involved with a thing like this and used In

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Peter Otten
Simon Evans wrote: > Dear Mark Lawrence, thank you for your advice. > I take it that I use the input you suggest for the line : > > soup = BeautifulSoup("C:\Beautiful Soup\ecological_pyramid.html",lxml") > > seeing as I have to give the file's full address I therefore have to > modify your : >

Python backreference replacing doesn't work as expected

2015-07-12 Thread Yonggang Chen
There are two named groups in my pattern: myFlag and id, I want to add one more myFlag immediately before group id. Here is my current code: ## code begin # i'm using Python 3.4.2 import re import os contents = b''' xdlg::xdlg(x_app* pApp, CWnd* pParent) : customized_dlg((UINT)0, pParent, pAp

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
Dear Mark Lawrence, thank you for your advice. I take it that I use the input you suggest for the line : soup = BeautifulSoup("C:\Beautiful Soup\ecological_pyramid.html",lxml") seeing as I have to give the file's full address I therefore have to modify your : soup = BeautifulSoup(ecological_py

Re: beginners choice: wx or tk?

2015-07-12 Thread Chris Angelico
On Sun, Jul 12, 2015 at 6:00 PM, Christian Gollwitzer wrote: > Am 12.07.15 um 09:55 schrieb Ulli Horlacher: >> >> wxjmfa...@gmail.com wrote: >> >>> On Windows, there are no more usable, working GUI toolkits (wrappers). >> >> >> What is the problem with tkinter? >> A first "hello world" program wor

Re: beginners choice: wx or tk?

2015-07-12 Thread Christian Gollwitzer
Am 12.07.15 um 09:55 schrieb Ulli Horlacher: wxjmfa...@gmail.com wrote: On Windows, there are no more usable, working GUI toolkits (wrappers). What is the problem with tkinter? A first "hello world" program worked. Don't listen. jmf is a troll, who always complains about Unicode support, wh

Re: beginners choice: wx or tk?

2015-07-12 Thread Ulli Horlacher
wxjmfa...@gmail.com wrote: > On Windows, there are no more usable, working GUI toolkits (wrappers). What is the problem with tkinter? A first "hello world" program worked. -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum IZUS/TIK E-Mail: horlac...@tik.uni-stutt