Pete Forman wrote:
However I am coming from scientific measurements where 1.0 is the stored
value for observations between 0.95 and 1.05.
You only know that because you're keeping some extra
information in your head about what the 1.0 stored in
your computer represents. It's not inherent in the
Can u provide the pseudo code for the same
On Fri, May 20, 2016 at 9:06 PM, Michael Torrie wrote:
> On 05/20/2016 01:30 AM, Robert Clove wrote:
> > Hi,
> >
> > Can someone give me pseudo code to download and JNLP file from a URL and
> > run it?
> >
> > Looks like a advance concept in python
>
>
With thоuѕаndѕ аnd thousands оf uѕеrѕ аnd еnоrmоuѕ amounts of dоwnlоаdѕ,
Andrоid Aррliсаtiоnѕ Dеvеlорmеnt field iѕ humming with асtiоn.
More visit.
http://www.volivesolutions.com/android-mobile-application-development-company.html";>
business apps developement
--
https://mail.python.org/mailman
On Tuesday, May 24, 2016 at 4:10:59 AM UTC+5:30, Ian wrote:
> On Mon, May 23, 2016 at 9:30 AM, Rustom Mody wrote:
> > Yes the point is being missed but in a different direction:
> > The SET (as a completed whole) of real numbers (ℝ) is no more than a 100
> > years
> > old.
> > People may have used
On Monday, May 23, 2016 at 9:06:13 PM UTC-4, Steven D'Aprano wrote:
> On Tue, 24 May 2016 08:36 am, Christopher Reimer wrote:
>
> > Those symbols are blowing my 8-bit ASCII brain. :)
>
> That's certainly true, because there is no such thing as 8-bit ASCII. ASCII
> is a 7-bit encoding. (Most imple
On Tue, 24 May 2016 03:09 am, Jon Ribbens wrote:
> On 2016-05-23, Steven D'Aprano wrote:
>> But one thing is certain: very few people, Jon Ribbens being one of them,
>> expects 1/3 to return 0. And that is why Python changed the meaning of
>> the / operator: because using it for integer division
On Tue, 24 May 2016 08:36 am, Christopher Reimer wrote:
> Those symbols are blowing my 8-bit ASCII brain. :)
That's certainly true, because there is no such thing as 8-bit ASCII. ASCII
is a 7-bit encoding. (Most implementations set the extra bit to zero, a few
*very* old machines might have set i
On Tue, 24 May 2016 06:17 am, Mark Dickinson signed his post:
> (who should probably take a numerical methods class someday)
Really? I would have thought you could have taught a numerical methods
class. You certainly know more about it than I do, and I have taken one!
(Twice!)
--
Steven
--
On Tue, 24 May 2016 04:16 am, Pete Forman wrote:
> Something else which I do not think has been stated yet in this thread
> is that floating point is an inexact representation. Just because
> integers and binary fractions have an exact correspondence we ought not
> to be affording them special sig
On Tue, May 24, 2016 at 10:07 AM, Dennis Lee Bieber
wrote:
> Now... Figuring out how many pfennig to charge for that half wheel...
> THAT requires number crunching
Nah, you just take the number of pfennig you would have charged, and
charge that many halbpfennig instead. At least, that's
On Tue, May 24, 2016 at 6:20 AM, Mohan L wrote:
> I wanted to send an email notification with content of logfile after 15
> mins on any change. The idea is I want to send only one mail for chunk of
> events.Say for example, I want to send only one email when some one extract
> a tar.gz file in wat
On 05/23/2016 02:52 PM, Ian Kelly wrote:
On Mon, May 23, 2016 at 11:44 AM, Random832 wrote:
On Mon, May 23, 2016, at 13:33, Chris Angelico wrote:
and then you can use the special "tagged literal" syntax, like with special forms of string
literal:
f*22/7 + f*2/11
Fraction(256, 77)
I like t
> On May 23, 2016, at 1:22 PM, Grant Edwards wrote:
>
>> On 2016-05-23, Ian Kelly wrote:
>>> On Mon, May 23, 2016 at 9:53 AM, Ian Kelly wrote:
>>> I'm not sure where ℝ comes into this in the first place. Existing
>>> Python numeric types only represent various subsets of ℚ (in the case
>>> of f
On Mon, May 23, 2016 at 9:12 AM wrote:
> > On 23 mei 2016, at 14:19, Peter Otten <__pete...@web.de> wrote:
> > li...@onemanifest.net wrote:
> >
> >> I've got a 2D array
> >> And an array of indexes that for shows which row to keep for each column
> >> of values:
> >>
> >> keep = np.array([2, 3, 1
On Mon, May 23, 2016 at 9:30 AM, Rustom Mody wrote:
> Yes the point is being missed but in a different direction:
> The SET (as a completed whole) of real numbers (ℝ) is no more than a 100 years
> old.
> People may have used fractions earlier
>
> And even here the first line of Steven's http://nri
Ian Kelly writes:
> On Mon, May 23, 2016 at 12:16 PM, Pete Forman wrote:
>> Something else which I do not think has been stated yet in this
>> thread is that floating point is an inexact representation. Just
>> because integers and binary fractions have an exact correspondence we
>> ought not to
Mark Dickinson writes:
> Ben Bacarisse bsb.me.uk> writes:
>> [1] Not being a Python expert I don't know how you show that actual
>> value of a float. What is the Pythonic way to do that?
>
> I don't know about Pythonic, but here are some options.
>
> 1. Convert the float to Decimal, and print t
On 2016-05-23, Ian Kelly wrote:
> On Mon, May 23, 2016 at 9:53 AM, Ian Kelly wrote:
>> I'm not sure where ℝ comes into this in the first place. Existing
>> Python numeric types only represent various subsets of ℚ (in the case
>> of fractions.Fraction, the entirety of ℚ).
>
> And of course I reali
Hi All,
I am using the bellow script to watch directories. Using 20 seconds to
aggregate together a larger chunk of events and enabled coalescing of
events.
I wanted to send an email notification with content of logfile after 15
mins on any change. The idea is I want to send only one mail for ch
Ben Bacarisse bsb.me.uk> writes:
> [1] Not being a Python expert I don't know how you show that actual
> value of a float. What is the Pythonic way to do that?
I don't know about Pythonic, but here are some options.
1. Convert the float to Decimal, and print the result. This shows
the exact
Chris Angelico writes:
> On Tue, May 24, 2016 at 2:51 AM, Ben Bacarisse wrote:
>> Chris Angelico writes:
>>
>>> On Tue, May 24, 2016 at 12:29 AM, Ben Bacarisse
>>> wrote:
Right, but this is to miss the point. Let's say that 4000 years have
defined 1/3 to be one third, but Python 3
Steven D'Aprano writes:
> On Tue, 24 May 2016 12:29 am, Ben Bacarisse wrote:
>
>> Ian Kelly writes:
>>
>>> On Mon, May 23, 2016 at 2:09 AM, Steven D'Aprano
>>> wrote:
Are you saying that the Egyptians, Babylonians and Greeks didn't know
how to work with fractions?
http://ma
On Mon, May 23, 2016 at 12:16 PM, Pete Forman wrote:
> Something else which I do not think has been stated yet in this thread
> is that floating point is an inexact representation. Just because
> integers and binary fractions have an exact correspondence we ought not
> to be affording them special
Ian Kelly writes:
> On Mon, May 23, 2016 at 8:29 AM, Ben Bacarisse wrote:
>> Ian Kelly writes:
>>
>>> On Mon, May 23, 2016 at 2:09 AM, Steven D'Aprano
>>> wrote:
Are you saying that the Egyptians, Babylonians and Greeks didn't
know how to work with fractions?
http://mathwor
On Tue, May 24, 2016 at 3:57 AM, Jon Ribbens
wrote:
> On 2016-05-23, Chris Angelico wrote:
>> On Tue, May 24, 2016 at 3:09 AM, Jon Ribbens
>> wrote:
>>> On 2016-05-23, Steven D'Aprano wrote:
But one thing is certain: very few people, Jon Ribbens being one of them,
expects 1/3 to return
On 2016-05-23, Chris Angelico wrote:
> On Tue, May 24, 2016 at 3:09 AM, Jon Ribbens
> wrote:
>> On 2016-05-23, Steven D'Aprano wrote:
>>> But one thing is certain: very few people, Jon Ribbens being one of them,
>>> expects 1/3 to return 0. And that is why Python changed the meaning of
>>> the /
Rustom Mody writes:
> On Monday, May 23, 2016 at 1:38:41 PM UTC+5:30, rocky wrote:
>> On Monday, May 23, 2016 at 2:17:07 AM UTC-4, Pete Forman wrote:
>> > rocky writes:
>> >
>> > > I'm looking for a good name for a relatively new project I'll put
>> > > on pypy.
>> > >
>> > > I've been working o
On Mon, May 23, 2016 at 11:44 AM, Random832 wrote:
> On Mon, May 23, 2016, at 13:33, Chris Angelico wrote:
>> and then you can use the special "tagged literal" syntax, like with
>> special forms of string literal:
>>
>> >>> f*22/7 + f*2/11
>> Fraction(256, 77)
>
> I like the infix fraction literal
On Mon, May 23, 2016, at 13:33, Chris Angelico wrote:
> and then you can use the special "tagged literal" syntax, like with
> special forms of string literal:
>
> >>> f*22/7 + f*2/11
> Fraction(256, 77)
I like the infix fraction literal syntax better: 22/f/7 + 2/f/11.
--
https://mail.python.org/
On Tue, May 24, 2016 at 3:09 AM, Jon Ribbens
wrote:
> On 2016-05-23, Steven D'Aprano wrote:
>> But one thing is certain: very few people, Jon Ribbens being one of them,
>> expects 1/3 to return 0. And that is why Python changed the meaning of
>> the / operator: because using it for integer divisi
On 2016-05-23, Steven D'Aprano wrote:
> But one thing is certain: very few people, Jon Ribbens being one of them,
> expects 1/3 to return 0. And that is why Python changed the meaning of
> the / operator: because using it for integer division was deeply unpopular
> and a bug magnet.
Making it ret
On Mon, May 23, 2016 at 10:39 AM, Robin Becker wrote:
> I had always imagined that the str founction did some kind of rounding on
> floats to prevent small numerical errors from showing up. The 2.7
> documentation starts like this
>
>> class str(object='')
>> Return a string containing a nicely pr
On Tue, 24 May 2016 12:29 am, Ben Bacarisse wrote:
> Ian Kelly writes:
>
>> On Mon, May 23, 2016 at 2:09 AM, Steven D'Aprano
>> wrote:
>>> Are you saying that the Egyptians, Babylonians and Greeks didn't know
>>> how to work with fractions?
>>>
>>> http://mathworld.wolfram.com/EgyptianFraction.
On Tue, May 24, 2016 at 2:51 AM, Ben Bacarisse wrote:
> Chris Angelico writes:
>
>> On Tue, May 24, 2016 at 12:29 AM, Ben Bacarisse wrote:
>>> Right, but this is to miss the point. Let's say that 4000 years have
>>> defined 1/3 to be one third, but Python 3 (as do many programming
>>> languages
Chris Angelico writes:
> On Tue, May 24, 2016 at 12:29 AM, Ben Bacarisse wrote:
>> Right, but this is to miss the point. Let's say that 4000 years have
>> defined 1/3 to be one third, but Python 3 (as do many programming
>> languages) defines 1/3 to be something very very very very close to one
Marko Rauhamaa wrote:
> Christopher Reimer :
>
>> Under various proposals in the U.S., everyone will soon learn how to
>> program and/or become a computer scientist. Won't be long before some
>> snotty-nosed brat graduates from preschool, takes a look at your code,
>> and poops in his diapers. He
I had always imagined that the str founction did some kind of rounding on floats
to prevent small numerical errors from showing up. The 2.7 documentation starts
like this
class str(object='')
Return a string containing a nicely printable representation of an object. For s
However, I see a
On Mon, May 23, 2016 at 9:53 AM, Ian Kelly wrote:
> I'm not sure where ℝ comes into this in the first place. Existing
> Python numeric types only represent various subsets of ℚ (in the case
> of fractions.Fraction, the entirety of ℚ).
And of course I realized after sending that I forgot about com
On Tue, May 24, 2016 at 1:47 AM, Steven D'Aprano wrote:
> On Tue, 24 May 2016 12:57 am, Chris Angelico wrote:
>
>> On Tue, May 24, 2016 at 12:29 AM, Ben Bacarisse
>> wrote:
>>> Right, but this is to miss the point. Let's say that 4000 years have
>>> defined 1/3 to be one third, but Python 3 (as
On Tue, 24 May 2016 12:57 am, Chris Angelico wrote:
> On Tue, May 24, 2016 at 12:29 AM, Ben Bacarisse
> wrote:
>> Right, but this is to miss the point. Let's say that 4000 years have
>> defined 1/3 to be one third, but Python 3 (as do many programming
>> languages) defines 1/3 to be something ve
On 2016-05-23, breamore...@gmail.com wrote:
> On Monday, May 23, 2016 at 2:04:01 AM UTC+1, Jon Ribbens wrote:
>> On 2016-05-23, Chris Angelico wrote:
>> > The point of arithmetic in software is to do what mathematics defines.
>> > Would you expect 1+2 to return 5? No. Why not? Where was the resul
On Monday, May 23, 2016 at 7:59:47 PM UTC+5:30, Ben Bacarisse wrote:
> Ian Kelly writes:
>
> > On Mon, May 23, 2016 at 2:09 AM, Steven D'Aprano wrote:
> >> Are you saying that the Egyptians, Babylonians and Greeks didn't know how
> >> to
> >> work with fractions?
> >>
> >> http://mathworld.wolfr
Hi.
Can anyone point me to documentation/instructions for cross compiling Python
3.5? I'm trying to compile Python for an ARM processor.
It seems like something broke with cross compilation in 3.5 and a patch was
created (https://bugs.python.org/issue22359), but I don't even know where to
beg
On Tue, May 24, 2016 at 12:29 AM, Ben Bacarisse wrote:
> Right, but this is to miss the point. Let's say that 4000 years have
> defined 1/3 to be one third, but Python 3 (as do many programming
> languages) defines 1/3 to be something very very very very close to one
> third, and *that* idea is v
On Mon, May 23, 2016 at 8:29 AM, Ben Bacarisse wrote:
> Ian Kelly writes:
>
>> On Mon, May 23, 2016 at 2:09 AM, Steven D'Aprano
>> wrote:
>>> Are you saying that the Egyptians, Babylonians and Greeks didn't know how to
>>> work with fractions?
>>>
>>> http://mathworld.wolfram.com/EgyptianFractio
Ian Kelly writes:
> On Mon, May 23, 2016 at 2:09 AM, Steven D'Aprano
> wrote:
>> Are you saying that the Egyptians, Babylonians and Greeks didn't know how to
>> work with fractions?
>>
>> http://mathworld.wolfram.com/EgyptianFraction.html
>>
>> http://nrich.maths.org/2515
>>
>> Okay, it's not qu
On Mon, May 23, 2016 at 2:09 AM, Steven D'Aprano
wrote:
> Are you saying that the Egyptians, Babylonians and Greeks didn't know how to
> work with fractions?
>
> http://mathworld.wolfram.com/EgyptianFraction.html
>
> http://nrich.maths.org/2515
>
> Okay, it's not quite 4000 years ago. Sometimes my
>
> On 23 mei 2016, at 14:19, Peter Otten <__pete...@web.de> wrote:
>
> li...@onemanifest.net wrote:
>
>> I've got a 2D array with values:
>>
>> values = np.array(
>> [[ 20, 38, 4, 45, 65],
>> [ 81, 44, 38, 57, 92],
>> [ 92, 41, 16, 77, 44],
>> [ 53, 62, 9, 75, 12],
>> [ 58, 2, 60, 100,
On Monday, May 23, 2016 at 1:38:41 PM UTC+5:30, rocky wrote:
> On Monday, May 23, 2016 at 2:17:07 AM UTC-4, Pete Forman wrote:
> > rocky writes:
> >
> > > I'm looking for a good name for a relatively new project I'll put on pypy.
> > >
> > > I've been working on a module to disassemble Python byt
li...@onemanifest.net wrote:
> I've got a 2D array with values:
>
> values = np.array(
> [[ 20, 38, 4, 45, 65],
> [ 81, 44, 38, 57, 92],
> [ 92, 41, 16, 77, 44],
> [ 53, 62, 9, 75, 12],
> [ 58, 2, 60, 100, 29],
> [ 63, 15, 48, 43, 71],
> [ 80, 97, 87, 64, 60],
> [ 16, 16, 70, 88,
Hi,
I've got a nympy problem I can't get my head around. (numpy is new to me).
I've got a 2D array with values:
values = np.array(
[[ 20, 38, 4, 45, 65],
[ 81, 44, 38, 57, 92],
[ 92, 41, 16, 77, 44],
[ 53, 62, 9, 75, 12],
[ 58, 2, 60, 100, 29],
[ 63, 15, 48, 43, 71],
[ 80, 97, 87,
Mehrzad Irani wrote:
> Hi All,
>
> Consider the situation
> [cti@iranim-rhel python_cti]$ cat a.py
> def a(a = 1, b = 2, c = 3, *d, **e):
> print(a, b, c)
> print(d)
> print(e)
>
> r = {'e': 7, 'f': 8, 'g': 9}
>
>
> a(**r)
> a(3, **r)
>
> r1 = (4,5,6)
>
> a(3,2,1,*r1,
On Monday 23 May 2016 13:15, Siyi Deng wrote:
> I have a dynamic library doing some numerical computations.
>
> I used ctypes to interact it by passing numpy arrays back and forth.
>
> Python 3.5 gives me the correct results.
>
> Python 2.7 gives me different, erroneous results, but it never cr
Hi All,
Consider the situation
[cti@iranim-rhel python_cti]$ cat a.py
def a(a = 1, b = 2, c = 3, *d, **e):
print(a, b, c)
print(d)
print(e)
r = {'e': 7, 'f': 8, 'g': 9}
a(**r)
a(3, **r)
r1 = (4,5,6)
a(3,2,1,*r1, **r)
a(*r1, **r)
r1 = (4,5,6,7)
a(*r1, **r)
[cti@iranim
On 05/23/2016 05:15 AM, Siyi Deng wrote:
I have a dynamic library doing some numerical computations.
I used ctypes to interact it by passing numpy arrays back and forth.
Python 3.5 gives me the correct results.
Python 2.7 gives me different, erroneous results, but it never crashes.
How is this po
Le 23/05/2016 10:39, ragav s a écrit :
Hi all,
How can i add different Return-path and fromid in python.i have pasted the
below code for preview
def sendMail(sub,fromid,to,cc,html):
msg = MIMEMultipart('alternative')
msg['Subject'] = sub
msg['From'] = fromid
msg['To'] = to
Hi all,
How can i add different Return-path and fromid in python.i have pasted the
below code for preview
def sendMail(sub,fromid,to,cc,html):
msg = MIMEMultipart('alternative')
msg['Subject'] = sub
msg['From'] = fromid
msg['To'] = to
toaddress = [to]
if cc:
msg[
On Monday 23 May 2016 10:36, Jon Ribbens wrote:
> OK, I'm bored of you now. You clearly are not willing to imagine
> a world beyond your own preconceptions. I am not saying that my view
> is right, I'm just saying that yours is not automatically correct.
> If you won't even concede that much then
On Monday 23 May 2016 16:09, Rustom Mody wrote:
> Steven is making wild and disingenuous statements; to wit:
>
> On Monday, May 23, 2016 at 3:39:19 AM UTC+5:30, Steven D'Aprano wrote:
>> I'm not defining the result. 4000+ years of mathematics defines the result.
>
> This is off by on order of ma
On Monday, May 23, 2016 at 2:17:07 AM UTC-4, Pete Forman wrote:
> rocky writes:
>
> > I'm looking for a good name for a relatively new project I'll put on pypy.
> >
> > I've been working on a module to disassemble Python bytecode from many
> > versions of Python. (Right now 2.3 .. 3.5 bytecode, l
John McKenzie writes:
> I need help using the Python bindings for GPSD. Specifically, I would
> like to take a latitude reading, put it in a variable and use it later.
> The problem is that every example I see involves constantly taking
> changing readings. That part I have working for myself
On Monday 23 May 2016 03:25, Random832 wrote:
> Why shouldn't Python do this?
>
> Imagine some future version of Python:
x = 2/3
x
> (2/3)
type(x)
>
You would have a lot of trouble convincing Guido that this was a good idea,
because that's what ABC used to do, and it was a perf
62 matches
Mail list logo