Re: lxml - SubElement dump root doesn't dump like Element dump does

2016-06-20 Thread Sayth Renshaw
Thanks your way makes more sense indeed. In the example they create and access I think I just got lost in their example. Sayth -- https://mail.python.org/mailman/listinfo/python-list

Re: value of pi and 22/7

2016-06-20 Thread Marko Rauhamaa
Lawrence D’Oliveiro : > On Monday, June 20, 2016 at 10:26:03 AM UTC+12, Gregory Ewing wrote: > >> If you're building something the size of a pyramid, that could >> add up to quite a lot of error. > > Particularly since so many of their neighbours had worked out how to > do much better than that, t

Re: best text editor for programming Python on a Mac

2016-06-20 Thread Christian Gollwitzer
Am 20.06.16 um 00:15 schrieb Michael Torrie: On 06/19/2016 03:21 PM, Quivis wrote: On Sat, 18 Jun 2016 20:26:36 -0400, Joel Goldstick wrote: that it is on every linux system No, it isn't! I can be *installed* on every Linux system, but that a whole other can of worms. True vim is not. But

Re: best text editor for programming Python on a Mac

2016-06-20 Thread Lawrence D’Oliveiro
On Monday, June 20, 2016 at 10:45:08 AM UTC+12, Gregory Ewing wrote: > > Lawrence D’Oliveiro wrote: > >> But not vi/vim. It only lets you place your cursor *on* a character, not >> *in-between* characters. > > That's because the terminals it was designed to work on > didn't have any way of display

Re: ASCII or Unicode? (was best text editor for programming Python on a Mac)

2016-06-20 Thread Lawrence D’Oliveiro
On Monday, June 20, 2016 at 4:31:00 PM UTC+12, Phil Boutros wrote: > > Steven D'Aprano wrote: >> >> This is how I write x≠y from scratch: > > > To wrap this back full circle, here's how it's done on vim: > > Ctrl-K, =, ! (last two steps interchangeable). Done. Result: ≠ Standard Linux

Re: value of pi and 22/7

2016-06-20 Thread Lawrence D’Oliveiro
On Monday, June 20, 2016 at 7:32:54 PM UTC+12, Marko Rauhamaa wrote: > Width/height ratio of the pyramid of Cheops was so close to π/2 that UFO > enthusiasts were convinced alien technology was used in the construction > of the pyramids. They were also able to get the bases of the pyramids horizo

Re: lxml - SubElement dump root doesn't dump like Element dump does

2016-06-20 Thread Sayth Renshaw
On Monday, 20 June 2016 16:19:31 UTC+10, Peter Otten wrote: > Sayth Renshaw wrote: > > > Afternoon > > > > Wondering has anyone much experience with lxml specifically objectify? > > > > When I pick up a file with lxml and use objectify dumping root works as > > expected actually better its quit

Re: best text editor for programming Python on a Mac

2016-06-20 Thread alister
On Sun, 19 Jun 2016 07:23:15 -0600, Michael Torrie wrote: > On 06/19/2016 01:34 AM, Lawrence D’Oliveiro wrote: >> On Sunday, June 19, 2016 at 7:13:26 PM UTC+12, Christian Gollwitzer >> wrote: >> >>> Am 19.06.16 um 02:12 schrieb Lawrence D’Oliveiro: >>> But not vi/vim. It only lets you place

Re: ASCII or Unicode? (was best text editor for programming Python on a Mac)

2016-06-20 Thread Steven D'Aprano
On Monday 20 June 2016 17:57, Lawrence D’Oliveiro wrote: > On Monday, June 20, 2016 at 4:31:00 PM UTC+12, Phil Boutros wrote: >> >> Steven D'Aprano wrote: >>> >>> This is how I write x≠y from scratch: >> >> >> To wrap this back full circle, here's how it's done on vim: >> >> Ctrl-K, =, ! (l

Re: the global keyword:

2016-06-20 Thread BartC
On 19/06/2016 18:16, Joel Goldstick wrote: People who understand global variables generally avoid using them at all costs. Then perhaps they don't understand that in Python, top-level functions, classes and imports are also globals. -- Bartc -- https://mail.python.org/mailman/listinfo/pytho

Re: the global keyword:

2016-06-20 Thread Antoon Pardon
Op 19-06-16 om 23:20 schreef BartC: > On 19/06/2016 15:35, Antoon Pardon wrote: >> Op 12-06-16 om 23:10 schreef BartC: >>> On 12/06/2016 20:25, Ned Batchelder wrote: Just as here there is no link between x and y: x = 12 y = x >>> >>> (And that's a good illustratio

Re: the global keyword:

2016-06-20 Thread Steven D'Aprano
On Mon, 20 Jun 2016 08:21 pm, BartC wrote: > On 19/06/2016 18:16, Joel Goldstick wrote: > >> People who understand global variables generally avoid using them at >> all costs. > > Then perhaps they don't understand that in Python, top-level functions, > classes and imports are also globals. But

Re: the global keyword:

2016-06-20 Thread Steven D'Aprano
On Mon, 20 Jun 2016 09:14 pm, Antoon Pardon wrote: > Op 19-06-16 om 23:20 schreef BartC: >> On 19/06/2016 15:35, Antoon Pardon wrote: >>> Op 12-06-16 om 23:10 schreef BartC: On 12/06/2016 20:25, Ned Batchelder wrote: > Just as here there is no link between x > and y: > >

Re: the global keyword:

2016-06-20 Thread Antoon Pardon
Op 20-06-16 om 14:15 schreef Steven D'Aprano: > On Mon, 20 Jun 2016 09:14 pm, Antoon Pardon wrote: > >> Op 19-06-16 om 23:20 schreef BartC: >>> On 19/06/2016 15:35, Antoon Pardon wrote: Op 12-06-16 om 23:10 schreef BartC: > On 12/06/2016 20:25, Ned Batchelder wrote: >> Just as here t

Re: best text editor for programming Python on a Mac

2016-06-20 Thread Random832
On Sun, Jun 19, 2016, at 18:44, Gregory Ewing wrote: > Lawrence D’Oliveiro wrote: > > But not vi/vim. It only lets you place your cursor *on* a character, not > > *in-between* characters. > > That's because the terminals it was designed to work on > didn't have any way of displaying a cursor betwe

Re: the global keyword:

2016-06-20 Thread Random832
On Mon, Jun 20, 2016, at 08:15, Steven D'Aprano wrote: > Bart didn't say anyone had defended it. He made an observation: > > "that's a good illustration of why 'y' isn't a name reference to 'x'" > > which is factually correct. And this does refer to the "ducks limp" > thread. Except it doesn't.

EuroPython 2016: Conference Dinner and Party - Tickets available

2016-06-20 Thread M.-A. Lemburg
We all know that good food, drinks and music are essential for a perfect EuroPython conference and so we’ve arranged a nice dinner with local food and a party for Tuesday evening (July 19th). *** EuroPython Conference Dinner and Party *** https://ep2016.europython.eu/en/even

Re: best text editor for programming Python on a Mac

2016-06-20 Thread Christian Gollwitzer
Am 20.06.16 um 15:26 schrieb Random832: The point is that in vim you can't position the normal-mode cursor in such a way that inserted characters are inserted at the end of the line. But you can press i at the end of the line, then arrow-right, which positions the cursor over the empty space a

Re: best text editor for programming Python on a Mac

2016-06-20 Thread Rustom Mody
On Monday, June 20, 2016 at 7:06:57 PM UTC+5:30, Christian Gollwitzer wrote: > Am 20.06.16 um 15:26 schrieb Random832: > > The point is that in vim you > > can't position the normal-mode cursor in such a way that inserted > > characters are inserted at the end of the line. > > But you can press i

Re: ASCII or Unicode? (was best text editor for programming Python on a Mac)

2016-06-20 Thread Rustom Mody
On Monday, June 20, 2016 at 11:34:36 AM UTC+5:30, Random832 wrote: > On Mon, Jun 20, 2016, at 01:03, Rustom Mody wrote: > > > Ctrl-K, =, ! (last two steps interchangeable). Done. Result: ≠ > > > > Are these 'shortcuts' parameterizable? > > They originate from RFC 1345, with the extension that

Re: best text editor for programming Python on a Mac

2016-06-20 Thread Christian Gollwitzer
Am 20.06.16 um 15:48 schrieb Rustom Mody: On Monday, June 20, 2016 at 7:06:57 PM UTC+5:30, Christian Gollwitzer wrote: Am 20.06.16 um 15:26 schrieb Random832: The point is that in vim you can't position the normal-mode cursor in such a way that inserted characters are inserted at the end of the

Re: ASCII or Unicode? (was best text editor for programming Python on a Mac)

2016-06-20 Thread Grant Edwards
On 2016-06-20, Phil Boutros wrote: > Steven D'Aprano wrote: >> >> Quote: >> >> "Why do we have to write x!=y then argue about the status of x<>y when we >> can simply write x≠y?" >> >> "Simply"? >> >> This is how I write x≠y from scratch: > > > To wrap this back full circle, here's how it's d

Re: the global keyword:

2016-06-20 Thread Steven D'Aprano
On Mon, 20 Jun 2016 11:29 pm, Random832 wrote: > On Mon, Jun 20, 2016, at 08:15, Steven D'Aprano wrote: >> Bart didn't say anyone had defended it. He made an observation: >> >> "that's a good illustration of why 'y' isn't a name reference to 'x'" >> >> which is factually correct. And this does r

Re: ASCII or Unicode? (was best text editor for programming Python on a Mac)

2016-06-20 Thread Steven D'Aprano
On Tue, 21 Jun 2016 12:23 am, Grant Edwards wrote: > On 2016-06-20, Phil Boutros wrote: [...] >> Ctrl-K, =, ! (last two steps interchangeable). Done. Result: ≠ > > On any non-broken X11 system it's: = / Nope, doesn't work for me. I guess I've got a "broken" X11 system. Oh, I did learn one

Re: ASCII or Unicode? (was best text editor for programming Python on a Mac)

2016-06-20 Thread Rustom Mody
On Monday, June 20, 2016 at 8:30:25 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 21 Jun 2016 12:23 am, Grant Edwards wrote: > > > On 2016-06-20, Phil Boutros wrote: > [...] > >> Ctrl-K, =, ! (last two steps interchangeable). Done. Result: ≠ > > > > On any non-broken X11 system it's: = / >

Re: value of pi and 22/7

2016-06-20 Thread Ian Kelly
On Mon, Jun 20, 2016 at 12:22 AM, Steven D'Aprano wrote: > There's a difference though. Nobody has tried to legislate the value of pi to > match your casual reference to "about 1900 square feet", but there's been at > least one serious attempt to legislate the value of pi to match the implied > va

Re: value of pi and 22/7

2016-06-20 Thread Ian Kelly
On Mon, Jun 20, 2016 at 10:01 AM, Ian Kelly wrote: > I'm not aware of any other such legislative attempts. Snopes records > one that allegedly occurred in Indiana but dismisses the claim as > false. s/Indiana/Alabama -- https://mail.python.org/mailman/listinfo/python-list

sublime text interpreter not showing output

2016-06-20 Thread Marie Nganele
hi. I'm new to python and trying to work with simple letter strings and the print command in my first python lessons. However, in my sublime text editor nothing but the time it takes to complete the build shows up, and sometimes not even that updates. How can I configure sublime text so that it

Re: value of pi and 22/7

2016-06-20 Thread Grant Edwards
On 2016-06-19, Gregory Ewing wrote: > Lawrence D’Oliveiro wrote: > >> I feel a new phrase coming on: “good enough for Bible work”! > > I understand there's a passage in the Bible somewhere that > uses a 1 significant digit approximation to pi... A lot of the time, 3 is a good-enough approximation

Re: value of pi and 22/7

2016-06-20 Thread Grant Edwards
On 2016-06-20, Steven D'Aprano wrote: > One of the most underrated yet critical functions of government is > to standardise weights and measures, and that function evolved very > slowly over time. I doubt that the Egyptian Pharoahs cared about it, Oh, I bet they did. How you measure things affe

Re: value of pi and 22/7

2016-06-20 Thread Marko Rauhamaa
Gregory Ewing : > Lawrence D’Oliveiro wrote: > >> I feel a new phrase coming on: “good enough for Bible work”! > > I understand there's a passage in the Bible somewhere that > uses a 1 significant digit approximation to pi... Yes: And he made a molten sea, ten cubits from the one brim to the

Re: value of pi and 22/7

2016-06-20 Thread Wildman via Python-list
On Mon, 20 Jun 2016 01:01:21 -0700, Lawrence D’Oliveiro wrote: > On Monday, June 20, 2016 at 7:32:54 PM UTC+12, Marko Rauhamaa wrote: > >> Width/height ratio of the pyramid of Cheops was so close to π/2 that UFO >> enthusiasts were convinced alien technology was used in the construction >> of the

Re: value of pi and 22/7

2016-06-20 Thread Marko Rauhamaa
Wildman : > As you can see, a stone had to be cut, transported and put in place > every 6 minutes 24 hours a day for 23 years. And if the stone count > was actually 2.4 million, the time would be reduced to 5 minutes per > stone. All I can say is wow! It probably means mostly that the Nile produc

Re - bug in tokenize module

2016-06-20 Thread Harrison Chudleigh
Sorry. Only works with text files. But my point is still valid. *** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended

Re: Re - bug in tokenize module

2016-06-20 Thread Steven D'Aprano
On Tue, 21 Jun 2016 09:01 am, Harrison Chudleigh wrote: > Sorry. Only works with text files. But my point is still valid. What point? Without context, how are we supposed to know what you're talking about? We're not mind-readers you know. -- Steven -- https://mail.python.org/mailman/listin