Re: Unicode 7

2014-05-01 Thread Terry Reedy
On 5/1/2014 10:29 PM, Rustom Mody wrote: Here is an instance of someone who would like a certain optimization to be dis-able-able https://mail.python.org/pipermail/python-list/2014-February/667169.html To the best of my knowledge its nothing to do with unicode or with jmf. Right. Ned has an

Re: Unicode 7

2014-05-01 Thread Chris Angelico
On Fri, May 2, 2014 at 2:42 PM, Rustom Mody wrote: > Unicode consortium's going from old BMP to current (6.0) SMPs to > who-knows-what > in the future is similar. Unicode 1.0: "Let's make a single universal character set that can represent all the world's scripts. We'll define 65536 codepoints t

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 9:46:36 AM UTC+5:30, Terry Reedy wrote: > On 5/1/2014 7:33 PM, MRAB wrote: > > On 2014-05-01 23:38, Terry Reedy wrote: > >> On 5/1/2014 2:04 PM, Rustom Mody wrote: > > Since its Unicode-troll time, here's my contribution > > http://blog.languager.org/2014/04/unicode-a

Re: Unicode 7

2014-05-01 Thread Terry Reedy
On 5/1/2014 7:33 PM, MRAB wrote: On 2014-05-01 23:38, Terry Reedy wrote: On 5/1/2014 2:04 PM, Rustom Mody wrote: Since its Unicode-troll time, here's my contribution http://blog.languager.org/2014/04/unicode-and-unix-assumption.html I will not comment on the Unix-assumption part, but I think

Re: Unicode in Python

2014-05-01 Thread Michael Torrie
Can't help but feed the troll... forgive me. On 04/28/2014 02:57 AM, wxjmfa...@gmail.com wrote: > Python 2.7 + cp1252: > - Solid and coherent system (nothing to do with the Euro). Except that cp1252 is not unicode. Perhaps some subset of unicode can be encoded into bytes using cp1252. But if it

Re: Unicode 7

2014-05-01 Thread Steven D'Aprano
On Thu, 01 May 2014 18:38:35 -0400, Terry Reedy wrote: > "strange beasties like python's FSR" > > Have you really let yourself be poisoned by JMF's bizarre rants? The FSR > is an *internal optimization* that benefits most unicode operations that > people actually perform. It uses UTF-32 by defaul

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 8:31:56 AM UTC+5:30, Chris Angelico wrote: > On Fri, May 2, 2014 at 12:29 PM, Rustom Mody wrote: > > Here is an instance of someone who would like a certain optimization to be > > dis-able-able > > https://mail.python.org/pipermail/python-list/2014-February/667169.html > > To

Re: Unicode 7

2014-05-01 Thread Chris Angelico
On Fri, May 2, 2014 at 12:29 PM, Rustom Mody wrote: > Here is an instance of someone who would like a certain optimization to be > dis-able-able > > https://mail.python.org/pipermail/python-list/2014-February/667169.html > > To the best of my knowledge its nothing to do with unicode or with jmf.

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 8:09:44 AM UTC+5:30, Ben Finney wrote: > Rustom Mody writes: > > Yes, the headaches go a little further back than Unicode. > Okay, so can you change your article to reflect the fact that the > headaches both pre-date Unicode, and are made much easier by Unicode? Predate:

Re: Unicode 7

2014-05-01 Thread Ben Finney
Rustom Mody writes: > Yes, the headaches go a little further back than Unicode. Okay, so can you change your article to reflect the fact that the headaches both pre-date Unicode, and are made much easier by Unicode? > There is a certain large old book... Ah yes, the neo-Sumerian story “Enmerka

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 7:59:55 AM UTC+5:30, Rustom Mody wrote: > "Why should I pay more for a EURO sign than a $ sign?" A unicode 'headache' there: I typed the Euro sign (trying again € ) not EURO Somebody -- I guess its GG in overhelpful mode -- converted it And made my post: Content-Type: text

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 4:08:35 AM UTC+5:30, Terry Reedy wrote: > On 5/1/2014 2:04 PM, Rustom Mody wrote: > >>> Since its Unicode-troll time, here's my contribution > >>> http://blog.languager.org/2014/04/unicode-and-unix-assumption.html > I will not comment on the Unix-assumption part, but I thin

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 5:03:21 AM UTC+5:30, MRAB wrote: > On 2014-05-01 23:38, Terry Reedy wrote: > > On 5/1/2014 2:04 PM, Rustom Mody wrote: > Since its Unicode-troll time, here's my contribution > http://blog.languager.org/2014/04/unicode-and-unix-assumption.html > > I will not comment

optimized compile with egg files

2014-05-01 Thread Matyas
Our project is using setuptools to compile. I noticed that by default python setup.py build will create .pyc files which I assume are archived into the egg file. I do not know yet how to verify what is in the egg file. I tried using python setup.py build_py -O1 python setup.py install --user -

Re: Unicode 7

2014-05-01 Thread MRAB
On 2014-05-01 23:38, Terry Reedy wrote: On 5/1/2014 2:04 PM, Rustom Mody wrote: Since its Unicode-troll time, here's my contribution http://blog.languager.org/2014/04/unicode-and-unix-assumption.html I will not comment on the Unix-assumption part, but I think you go wrong with this: "Unicode

Re: zipimport limited to 65536 files?

2014-05-01 Thread Terry Reedy
On 5/1/2014 3:49 PM, Tom Graves wrote: Hello, I am trying to use python (2.6.6) to read a jar file that contains python files. I'm simply setting PYTHONPATH=spark-assembly-1.0.0-SNAPSHOT-hadoop2.4.0.jar. Unfortunately it fails to read the python files from the jar file and if run in verbose

Re: Unicode 7

2014-05-01 Thread Terry Reedy
On 5/1/2014 2:04 PM, Rustom Mody wrote: Since its Unicode-troll time, here's my contribution http://blog.languager.org/2014/04/unicode-and-unix-assumption.html I will not comment on the Unix-assumption part, but I think you go wrong with this: "Unicode is a Headache". The major headache is t

Re: Off-topic circumnavigating the earth in a mile or less

2014-05-01 Thread Mark Lawrence
On 01/05/2014 21:57, Adam Funk wrote: On 2014-05-01, Terry Reedy wrote: 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,

Re: Significant digits in a float?

2014-05-01 Thread Adam Funk
On 2014-05-01, Larry Hudson wrote: > On 05/01/2014 05:56 AM, Roy Smith wrote: >> For those who have no idea what we're talking about, take a look at >> http://www.ted.com/talks/clifford_stoll_on_everything. If you just want >> to see what you do with a slide rule, fast forward to 14:20, but you

Re: Off-topic circumnavigating the earth in a mile or less

2014-05-01 Thread Adam Funk
On 2014-04-30, 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 make somethi

Re: Off-topic circumnavigating the earth in a mile or less

2014-05-01 Thread Adam Funk
On 2014-05-01, Terry Reedy wrote: > 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

Re: Significant digits in a float?

2014-05-01 Thread Adam Funk
On 2014-05-01, Dennis Lee Bieber wrote: > On Tue, 29 Apr 2014 20:42:33 -0400, Roy Smith declaimed the > following: > >>In article , >> Dennis Lee Bieber wrote: >>> (one reason slide-rules were acceptable for so long -- and even my high >>> school trig course only required slide-rule significanc

Re: Significant digits in a float?

2014-05-01 Thread Larry Hudson
On 05/01/2014 05:56 AM, Roy Smith wrote: In article , Mark H Harris wrote: 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 slide out (tu

zipimport limited to 65536 files?

2014-05-01 Thread Tom Graves
Hello, I am trying to use python (2.6.6) to read a jar file that contains python files.  I'm simply setting PYTHONPATH=  spark-assembly-1.0.0-SNAPSHOT-hadoop2.4.0.jar.   Unfortunately it fails to read the python files from the jar file and if run in verbose mode just shows: import zipimport # b

Re: Slightly OT - using PyUIC from Eclipse

2014-05-01 Thread Steve Simmons
On 01/05/2014 02:50, 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. I'm sorry Steve, but you're writing to a programmer's foru

Re: Significant digits in a float?

2014-05-01 Thread William Ray Wing
On May 1, 2014, at 12:16 AM, Mark H Harris wrote: > 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

Re: Convert numpy array to single number

2014-05-01 Thread Papp Győző
Maybe something like this? >>> to_num = lambda array: np.sum(array * 2**np.arange(len(array)-1, -1, -1)) >>> to_num(np.array([1,0,1,0])) 10 2014-04-29 17:42 GMT+02:00 Tom P : > On 28.04.2014 15:04, mboyd02...@gmail.com wrote: > >> I have a numpy array consisting of 1s and zeros for representin

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Thursday, May 1, 2014 10:30:43 AM UTC+5:30, Steven D'Aprano wrote: > 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

Re: Unicode in Python

2014-05-01 Thread random832
On Mon, Apr 28, 2014, at 4:57, wxjmfa...@gmail.com wrote: > Python 3: > - It missed the unicode shift. > - Covering the whole unicode range will not make > Python a unicode compliant product. Please cite exactly what portion of the unicode standard requires operations with all characters to be han

Re: Significant digits in a float?

2014-05-01 Thread alister
On Thu, 01 May 2014 09:34:35 -0700, emile wrote: > On 04/30/2014 11:21 AM, Grant Edwards wrote: >> 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 a

Re: Significant digits in a float?

2014-05-01 Thread emile
On 04/30/2014 11:21 AM, Grant Edwards wrote: 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 locatio

Re: Running scripts from shell / IDLE in windows

2014-05-01 Thread Mark H Harris
On 5/1/14 11:02 AM, Mark H Harris wrote: file hello.py=== def Hello(parms list): whatever whatever From IDLE: import hello hello.Hello([1, 2, 3, 4]) Sorry, almost forgot, if you 'run' the module hello.py (with the IDLE run dropdown) then the 'hello' na

Re: Running scripts from shell / IDLE in windows

2014-05-01 Thread Mark H Harris
On 5/1/14 10:34 AM, s71murfy wrote: I am trying to run the simple helloworld script from the IDLE shell. I want to pass it arguments. Please can you give me the syntax to do it? There are several ways to do this, depending on your preferences and goals. Is the helloworld script the tk ver

Running scripts from shell / IDLE in windows

2014-05-01 Thread s71murfy
Hi: I am trying to run the simple helloworld script from the IDLE shell. I want to pass it arguments. Please can you give me the syntax to do it? Thanks, Sam -- https://mail.python.org/mailman/listinfo/python-list

Re: Significant digits in a float?

2014-05-01 Thread Roy Smith
In article , Mark H Harris wrote: > 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 slide out > (turn it over) and reinsert it. You're

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

2014-05-01 Thread Vlastimil Brom
2014-05-01 3:57 GMT+02:00 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 obvio