Re: Off-topic circumnavigating the earth in a mile or less [was Re: Significant digits in a float?]

2014-04-30 Thread Gregory Ewing
Terry Reedy wrote: For the most part, there are no bears within a mile of the North Pole either. "they are rare north of 88°" (ie, 140 miles from pole). https://en.wikipedia.org/wiki/Polar_bears They mostly hunt in or near open water, near the coastlines. The way things are going, the coastlin

Re: Unicode 7

2014-04-30 Thread wxjmfauth
Le mercredi 30 avril 2014 20:48:48 UTC+2, Tim Chase a écrit : > On 2014-04-30 00:06, wxjmfa...@gmail.com wrote: > > > @ Time Chase > > > > > > I'm perfectly aware about what I'm doing. > > > > Apparently, you're quite adept at appending superfluous characters to > > sensible strings...did y

Re: Unicode 7

2014-04-30 Thread Steven D'Aprano
On Tue, 29 Apr 2014 21:53:22 -0700, Rustom Mody wrote: > On Tuesday, April 29, 2014 11:29:23 PM UTC+5:30, Tim Chase wrote: >> While I dislike feeding the troll, what I see here is: > > > > Since its Unicode-troll time, here's my contribution > http://blog.languager.org/2014/04/unicode-and-unix-

Re: Significant digits in a float?

2014-04-30 Thread Mark H Harris
On 4/30/14 10:56 PM, Paul Rubin wrote: There is a nice Javascript simulation of the N4-ES here: http://www.antiquark.com/sliderule/sim/n4es/virtual-n4es.html Thank you! The N4-ES and the N4-T (mine) are essentially the same rule. The N4-ES on the site is yellow (mine is white) and the site

Re: Significant digits in a float?

2014-04-30 Thread Paul Rubin
Mark H Harris writes: >I received my Pickett Model N4-T Vector-Type Log Log Dual-Base > Speed Rule as a graduation | birthday gift... There is a nice Javascript simulation of the N4-ES here: http://www.antiquark.com/sliderule/sim/n4es/virtual-n4es.html Some other models are also on that sit

Re: Significant digits in a float?

2014-04-30 Thread Mark H Harris
On 4/30/14 7:02 PM, Dennis Lee Bieber wrote: Sterling? Snort. K&E was the way to go. Absolutely, snort. I still have my K&E (Keuffel & Esser Co. N.Y.); made of wood... (when ships were wood, and men were steel, and sheep ran scared) ... to get to the S L T scales I have to pull the slid

Re: freeze.py

2014-04-30 Thread Ethan Furman
On 04/30/2014 07:42 PM, Ben Finney wrote: Ethan Furman writes: I'm running ubuntu 13.04, I have installed python2.7-dev and python2.7-example, but when I try to run freeze.py I get: Error: needed directory /usr/lib/python2.7/config not found Where is ‘freeze.py’? Is there documentation p

Re: Slightly OT - using PyUIC from Eclipse

2014-04-30 Thread Mark H Harris
On 4/30/14 8:50 PM, Steven D'Aprano wrote: On Thu, 01 May 2014 01:49:25 +0100, Steve Simmons wrote: On 30/04/2014 23:49, Fabio Zadrozny wrote: And that's about where I stopped reading. Post as quote: I'm trying to set up a new dev environme

Re: freeze.py

2014-04-30 Thread Ben Finney
Ethan Furman writes: > I'm running ubuntu 13.04, I have installed python2.7-dev and > python2.7-example, but when I try to run freeze.py I get: > > Error: needed directory /usr/lib/python2.7/config not found Where is ‘freeze.py’? Is there documentation provided for the installation of that too

Re: Off-topic circumnavigating the earth in a mile or less [was Re: Significant digits in a float?]

2014-04-30 Thread Chris Angelico
On Thu, May 1, 2014 at 9:46 AM, Ian Kelly wrote: > It also works if your starting point is (precisely) the north pole. I > believe that's the canonical answer to the riddle, since there are no > bears in Antarctica. Yeah but that's way too obvious! Anyway, it's rather hard to navigate due south

Re: Off-topic circumnavigating the earth in a mile or less [was Re: Significant digits in a float?]

2014-04-30 Thread Terry Reedy
On 4/30/2014 7:46 PM, Ian Kelly wrote: It also works if your starting point is (precisely) the north pole. I believe that's the canonical answer to the riddle, since there are no bears in Antarctica. For the most part, there are no bears within a mile of the North Pole either. "they are rare

freeze.py

2014-04-30 Thread Ethan Furman
I'm running ubuntu 13.04, I have installed python2.7-dev and python2.7-example, but when I try to run freeze.py I get: Error: needed directory /usr/lib/python2.7/config not found I have the source for Python2.7 which I configured and built, but a search in that tree for a config file was fru

Re: Slightly OT - using PyUIC from Eclipse

2014-04-30 Thread Steven D'Aprano
On Thu, 01 May 2014 01:49:25 +0100, Steve Simmons wrote: > > > > > > > On 30/04/2014 23:49, Fabio Zadrozny > wrote: > > cite="mid:CANXBEFrqndqCeT-9Hgqz7jRCZcmp8nz4VE+ebf-BKsYr54qQqQ > @mail.gmail.com" > type="cite"> And that's about where I stopped re

Re: Off-topic circumnavigating the earth in a mile or less [was Re: Significant digits in a float?]

2014-04-30 Thread Ian Kelly
On Wed, Apr 30, 2014 at 7:14 AM, Ethan Furman wrote: > On 04/29/2014 03:51 PM, Chris Angelico wrote: >> >> On Wed, Apr 30, 2014 at 8:42 AM, emile wrote: >>> >>> On 04/29/2014 01:16 PM, Adam Funk wrote: >>> "A man pitches his tent, walks 1 km south, walks 1 km east, kills a bear, & walks

Re: Off-topic circumnavigating the earth in a mile or less [was Re: Significant digits in a float?]

2014-04-30 Thread Ryan Hiebert
On Wed, Apr 30, 2014 at 9:02 AM, Ethan Furman wrote: > On 04/30/2014 06:14 AM, Ethan Furman wrote: > >> On 04/29/2014 03:51 PM, Chris Angelico wrote: >> >>> On Wed, Apr 30, 2014 at 8:42 AM, emile wrote: >>> On 04/29/2014 01:16 PM, Adam Funk wrote: "A man pitches his tent, walks 1

Re: Slightly OT - using PyUIC from Eclipse

2014-04-30 Thread Steve Simmons
On 30/04/2014 23:49, Fabio Zadrozny wrote: On Wed, Apr 30, 2014 at 8:39 AM, Steve Simmons wrote: I'm trying to set up a new dev environment using Windows 7; Eclipse (

Re: unittest weirdness

2014-04-30 Thread Ethan Furman
On 03/11/2014 01:58 PM, Ethan Furman wrote: So I finally got enough data and enough of an understanding to write some unit tests for my code. The weird behavior I'm getting: - when a test fails, I get the E or F, but no summary at the end (if the failure occurs in setUpClass before

Re: Slightly OT - using PyUIC from Eclipse

2014-04-30 Thread Fabio Zadrozny
On Wed, Apr 30, 2014 at 8:39 AM, Steve Simmons wrote: > I'm trying to set up a new dev environment using Windows 7; Eclipse > (Kepler); Python 3.3; PyDev and PyQt 5 and I've hit an issue getting PyUIC > to generate a python Qt class from within Eclipse. > > I'm using the following setup process (f

Re: Off-topic circumnavigating the earth in a mile or less [was Re: Significant digits in a float?]

2014-04-30 Thread Chris Angelico
On Thu, May 1, 2014 at 12:02 AM, Ethan Furman wrote: > Wow. It's amazing how writing something down, wrongly (I originally had > north and south reversed), correcting it, letting some time pass (enough to > post the message so one can be properly embarrassed ;), and then rereading > it later can

Re: Unicode 7

2014-04-30 Thread Tim Chase
On 2014-04-30 00:06, wxjmfa...@gmail.com wrote: > @ Time Chase > > I'm perfectly aware about what I'm doing. Apparently, you're quite adept at appending superfluous characters to sensible strings...did you benchmark your email composition, too? ;-) -tkc (aka "Tim", not "Time") -- https://ma

RE: Designing a network in Python

2014-04-30 Thread Joseph L. Casale
> I don't know how to do that stuff in python. Basically, I'm trying to pull > certain data from the > xml file like the node-name, source, destination and the capacity. Since, I > am done with that > part, I now want to have a link between source and destination and assign > capacity to it. I

Re: Significant digits in a float?

2014-04-30 Thread Grant Edwards
On 2014-04-29, emile wrote: > On 04/29/2014 01:16 PM, Adam Funk wrote: > >> "A man pitches his tent, walks 1 km south, walks 1 km east, kills a >> bear, & walks 1 km north, where he's back at his tent. What color is >> the bear?" ;-) > > From how many locations on Earth can someone walk one mil

Re: Significant digits in a float?

2014-04-30 Thread Grant Edwards
On 2014-04-29, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> On Tue, Apr 29, 2014 at 11:38 PM, Roy Smith wrote: >> > I'm trying to intuit, from the values I've been given, which coordinates >> > are likely to be accurate to within a few miles. I'm willing to accept >> > a few fa

Re: Significant digits in a float?

2014-04-30 Thread Grant Edwards
On 2014-04-29, Roy Smith wrote: >> What reason do you have to think that something recorded to 14 >> decimal places was only intended to have been recorded to 4? > > Because I understand the physical measurement these numbers represent. > Sometimes, Steve, you have to assume that when somebody

Re: Off-topic circumnavigating the earth in a mile or less [was Re: Significant digits in a float?]

2014-04-30 Thread Chris Angelico
On Wed, Apr 30, 2014 at 11:14 PM, Ethan Furman wrote: >> Any point where the mile east takes you an exact number of times >> around the globe. So, anywhere exactly one mile north of that, which >> is a number of circles not far from the south pole. > > > It is my contention, completely unbacked by

Re: First attempt at a Python prog (Chess)

2014-04-30 Thread Robert Kern
On 2014-04-30 16:15, Mark H Harris wrote: On 4/30/14 8:28 AM, Chris Hinsley wrote: On 2013-02-15 05:05:27 +, Rick Johnson said: First of all your naming conventions suck. You've used the "interface" style for every function in this game so i can't /easily/ eyeball parse the /real/ interfac

Re: First attempt at a Python prog (Chess)

2014-04-30 Thread Mark H Harris
On 4/30/14 8:28 AM, Chris Hinsley wrote: On 2013-02-15 05:05:27 +, Rick Johnson said: First of all your naming conventions suck. You've used the "interface" style for every function in this game so i can't /easily/ eyeball parse the /real/ interface functions from the helper functions -- an

Re: Designing a network in Python

2014-04-30 Thread Mark H Harris
On 4/30/14 9:57 AM, varun...@gmail.com wrote: I don't know how to do that stuff in python. Always a good time to learn. Let the database do the work for you; try not to re-invent the relational database wheel. Access the database via python-sql: https://pypi.python.org/pypi/python-sql

Re: Designing a network in Python

2014-04-30 Thread varun7rs
I don't know how to do that stuff in python. Basically, I'm trying to pull certain data from the xml file like the node-name, source, destination and the capacity. Since, I am done with that part, I now want to have a link between source and destination and assign capacity to it. eg., [a,b,c,d,

Re: Off-topic circumnavigating the earth in a mile or less [was Re: Significant digits in a float?]

2014-04-30 Thread Ethan Furman
On 04/30/2014 06:14 AM, Ethan Furman wrote: On 04/29/2014 03:51 PM, Chris Angelico wrote: On Wed, Apr 30, 2014 at 8:42 AM, emile wrote: On 04/29/2014 01:16 PM, Adam Funk wrote: "A man pitches his tent, walks 1 km south, walks 1 km east, kills a bear, & walks 1 km north, where he's back at hi

Off-topic circumnavigating the earth in a mile or less [was Re: Significant digits in a float?]

2014-04-30 Thread Ethan Furman
On 04/29/2014 03:51 PM, Chris Angelico wrote: On Wed, Apr 30, 2014 at 8:42 AM, emile wrote: On 04/29/2014 01:16 PM, Adam Funk wrote: "A man pitches his tent, walks 1 km south, walks 1 km east, kills a bear, & walks 1 km north, where he's back at his tent. What color is the bear?" ;-) Fr

Re: First attempt at a Python prog (Chess)

2014-04-30 Thread Chris Hinsley
On 2013-02-15 05:05:27 +, Rick Johnson said: On Thursday, February 14, 2013 11:48:10 AM UTC-6, Chris Hinsley wrote: Is a Python list as fast as a bytearray? Why would you care about that now? Are you running this code on the Xerox Alto? Excuse me for the sarcasm but your post title has

Re: Significant digits in a float?

2014-04-30 Thread Mark Lawrence
On 30/04/2014 09:14, Gregory Ewing wrote: Chris Angelico wrote: Any point where the mile east takes you an exact number of times around the globe. So, anywhere exactly one mile north of that, which is a number of circles not far from the south pole. True, but there are no bears in Antarctica,

RE: Designing a network in Python

2014-04-30 Thread Joseph L. Casale
> I have managed to read most of the important data in the xml onto lists. > Now, I have two lists, Source and Destination and I'd like to create > bi-directional > links between them. > And moreover, I'd like to assign some kind of a bandwidth capacity to the > links and > similarly, storage an

Re: Bug in Decimal??

2014-04-30 Thread pleasedontspam
On Tuesday, April 29, 2014 11:39:12 PM UTC-4, Steven D'Aprano wrote: > On Tue, 29 Apr 2014 19:37:17 -0700, pleasedontspam wrote: > > > > > from decimal import * > > > getcontext().prec=2016 > > > one=Decimal(1) > > > number=Decimal('1e-1007') > > > partial=(one+number)/(one-number) > > > fi

Re: Bug in Decimal??

2014-04-30 Thread pleasedontspam
On Tuesday, April 29, 2014 11:39:12 PM UTC-4, Steven D'Aprano wrote: > On Tue, 29 Apr 2014 19:37:17 -0700, pleasedontspam wrote: > > > > > from decimal import * > > > getcontext().prec=2016 > > > one=Decimal(1) > > > number=Decimal('1e-1007') > > > partial=(one+number)/(one-number) > > > fi

Re: Significant digits in a float?

2014-04-30 Thread Roy Smith
In article , Chris Angelico wrote: > But I think a better answer is New York City. You start out lost, you > go a mile south, a mile east, a mile north, and you are again lost. Only in Queens. -- https://mail.python.org/mailman/listinfo/python-list

Slightly OT - using PyUIC from Eclipse

2014-04-30 Thread Steve Simmons
I'm trying to set up a new dev environment using Windows 7; Eclipse (Kepler); Python 3.3; PyDev and PyQt 5 and I've hit an issue getting PyUIC to generate a python Qt class from within Eclipse. I'm using the following setup process (from Google Groups) modified to match my PyQt5 configuration

Designing a network in Python

2014-04-30 Thread varun7rs
Hello Friends I would like to design a network given the topology and the source I use is http://sndlib.zib.de/home.action I have managed to read most of the important data in the xml onto lists. Now, I have two lists, Source and Destination and I'd like to create bi-directional links between

Re: Significant digits in a float?

2014-04-30 Thread alister
On Tue, 29 Apr 2014 15:42:25 -0700, emile wrote: > On 04/29/2014 01:16 PM, Adam Funk wrote: > >> "A man pitches his tent, walks 1 km south, walks 1 km east, kills a >> bear, & walks 1 km north, where he's back at his tent. What color is >> the bear?" ;-) > > From how many locations on Earth c

Re: Significant digits in a float?

2014-04-30 Thread Chris Angelico
On Wed, Apr 30, 2014 at 6:14 PM, Gregory Ewing wrote: > Chris Angelico wrote: > >> Any point where the mile east takes you an exact number of times >> around the globe. So, anywhere exactly one mile north of that, which >> is a number of circles not far from the south pole. > > > True, but there a

Re: Significant digits in a float?

2014-04-30 Thread Gregory Ewing
Chris Angelico wrote: Any point where the mile east takes you an exact number of times around the globe. So, anywhere exactly one mile north of that, which is a number of circles not far from the south pole. True, but there are no bears in Antarctica, so that rules out all the south-pole solut

Re: Bug in Decimal??

2014-04-30 Thread Gregory Ewing
pleasedonts...@isp.com wrote: I compared the results with wolfram Alpha, and also with an open source arbitrary precision calculator, which matches Alpha results. Decimal is *not* an arbitrary precision data type, so you can't expect exact results from it. You can set the precision to be very l

Re: Unicode 7

2014-04-30 Thread wxjmfauth
@ Time Chase I'm perfectly aware about what I'm doing. @ MRAB "...Although the third example is the fastest, it's also the wrong way to handle Unicode: ..." Maybe that's exactly the opposite. It illustrates very well, the quality of coding schemes endorsed by Unicode.org. I deliberately choose