Re: Basic Lotus 1-2-3 worksheet creation class for Python

2017-09-15 Thread geoffrey . eisenbarth
I just wanted to let you now that as someone whose boss prefers to use WK1 in 2017, this is going to save my life. Thanks :) About to try this out, if I have to do anything to get it to work with Python3 I'll post the changes here later. -- https://mail.python.org/mailman/listinfo/python-list

Re: Deviding N(1, 2, 3, .., N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread Steve D'Aprano
On Tue, 11 Oct 2016 12:38 am, amornsak@gmail.com wrote: > I have a list is > > land = [10,20,30,40,110,50,18,32,5] > > and I want to find each values of summation (don't sorted values in list) > as It has highest as possible > > example. > > I want to dividing N=3 part from list as above a

Re: Deviding N(1, 2, 3, .., N) part from numeric list as summation of each values(don't sorted) has highest possible.

2016-10-10 Thread Ben Bacarisse
Nune9 writes: > I have a list is > > land = [10,20,30,40,110,50,18,32,5] > > and I want to find each values of summation (don't sorted values in > list) as It has highest possible > > example. > > I want to dividing N=3 part from list as above and divieded each part > has highest values that as p

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-27 Thread Emile van Sebille
On 8/26/2015 2:14 PM, Grant Edwards wrote: On 2015-08-26, Emile van Sebille wrote: On 8/26/2015 9:06 AM, Grant Edwards wrote: It's also unfortunate that there's no way to to access the mailing list via an NNTP server Huh? -- gmane.comp.python.general at news://nntp.gmane.com:119/gmane.comp.p

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Ian Kelly
On Wed, Aug 26, 2015 at 12:11 PM, Andy Kubiak wrote: > What if you could send all your mail to another address on a server you > control, or can at least run programs on? That seems like a lot more hassle than it would be worth. -- https://mail.python.org/mailman/listinfo/python-list

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Grant Edwards
On 2015-08-26, Emile van Sebille wrote: > On 8/26/2015 9:06 AM, Grant Edwards wrote: >> It's also unfortunate that there's no way to >> to access the mailing list via an NNTP server > > Huh? -- gmane.comp.python.general at > news://nntp.gmane.com:119/gmane.comp.python.general > > Or do you mean by

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Emile van Sebille
On 8/26/2015 9:06 AM, Grant Edwards wrote: It's also unfortunate that there's no way to to access the mailing list via an NNTP server Huh? -- gmane.comp.python.general at news://nntp.gmane.com:119/gmane.comp.python.general Or do you mean by the OP? Emile -- https://mail.python.org/mailman/l

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Andy Kubiak
> > I wish I could, problem is, if the mail recipient is within the company, > no legal boilerplate is added making the joke fall flat. > What if you could send all your mail to another address on a server you control, or can at least run programs on? Could you configure all your outgoing mail to

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Jean-Michel Pichavant
- Original Message - > From: "Chris Angelico" > Cc: python-list@python.org > Sent: Wednesday, 26 August, 2015 6:11:51 PM > Subject: Re: Please don't make unfounded legalistic demands (was: [a, b, c, > d] = 1, 2, 3, 4) > > On Thu, Aug 27, 2015 at 1:

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Chris Angelico
On Thu, Aug 27, 2015 at 1:09 AM, Terry Reedy wrote: > How about instead you augment your signature with "Please ignore the > boilerplate below. Heh, I like this! Or: """ -- BOILERPLATE TROPHY COLLECTION I am a collector of stupid legal boilerplate. Here's my latest acquisition: """ Then let yo

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Grant Edwards
On 2015-08-26, Terry Reedy wrote: > On 8/26/2015 5:02 AM, Jean-Michel Pichavant wrote: >>> Misleading, intimidating, hostile nonsense. > > Agreed. > >>> If you want to participate here, please do so from a mail system > >> which does not make these legalistic demands. > > I disagree with prohibit

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Gene Heskett
On Wednesday 26 August 2015 11:09:18 Terry Reedy wrote: > On 8/26/2015 5:02 AM, Jean-Michel Pichavant wrote: > > - Original Message - > > > >> From: "Ben Finney" > >> > >>> The contents of this email and any attachments are confidential > >>> and may also be privileged. If you are not the

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Terry Reedy
On 8/26/2015 5:02 AM, Jean-Michel Pichavant wrote: - Original Message - From: "Ben Finney" The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the con

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Jean-Michel Pichavant
- Original Message - > From: "Ben Finney" > > The contents of this email and any attachments are confidential and > > may also be privileged. If you are not the intended recipient, > > please > > notify the sender immediately and do not disclose the contents to > > any > > other person, us

Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Ben Finney
Jean-Michel Pichavant writes: > -- IMPORTANT NOTICE: > > The contents of this email and any attachments are confidential and > may also be privileged. If you are not the intended recipient, please > notify the sender immediately and do not disclose the contents to any > other person, use it for

Re: Could you explain "[1, 2, 3].remove(2)" to me?

2015-06-25 Thread Jussi Piitulainen
fl writes: > aa=[1, 2, 3].remove(2) > > I don't know where the result goes. Could you help me on the question? That method modifies the list and returns None (or raises an exception). Get a hold on the list first: aa=[1, 2, 3] *Then* call the method. Just call the method, do no

Re: Could you explain "[1, 2, 3].remove(2)" to me?

2015-06-25 Thread Ian Kelly
On Thu, Jun 25, 2015 at 12:14 PM, fl wrote: > Hi, > > I see a code snippet online: > > [1, 2, 3].remove(42) I don't know where you pulled this from, but if this is from a tutorial then it doesn't seem to be a very good one. This constructs a list containing the

Could you explain "[1, 2, 3].remove(2)" to me?

2015-06-25 Thread fl
Hi, I see a code snippet online: [1, 2, 3].remove(42) after I modify it to: [1, 2, 3].remove(2) and aa=[1, 2, 3].remove(2) I don't know where the result goes. Could you help me on the question? Thanks, -- https://mail.python.org/mailman/listinfo/python-list

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-04-02 Thread Dan Sommers
On Mon, 01 Apr 2013 21:45:30 -0700, Tim Roberts wrote: > morphex wrote: >> >>While we're on the subject, wouldn't it be nice to have some cap there >>so that it isn't possible to more or less block the system with large >>exponentiation? > > There IS a cap. It's called the "MemoryError" excepti

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-04-02 Thread Nobody
On Mon, 01 Apr 2013 00:39:56 +, Alex wrote: > Given that > > 3 > 5 > 4 > > (i.e.: 4**5**3) is transitive, I think you meant "associative", and exponentiation isn't associative, i.e. (x**y)**z is not, in general, equal to x**(y**z). In fact, (x**y)**z is equal to x**(y*z). Conventional m

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-04-01 Thread Chris Angelico
On Tue, Apr 2, 2013 at 3:45 PM, Tim Roberts wrote: > morphex wrote: >> >>While we're on the subject, wouldn't it be nice to have some cap there so >>that it isn't possible to more or less block the system with large >>exponentiation? > > There IS a cap. It's called the "MemoryError" exception. >

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-04-01 Thread Tim Roberts
morphex wrote: > >While we're on the subject, wouldn't it be nice to have some cap there so >that it isn't possible to more or less block the system with large >exponentiation? There IS a cap. It's called the "MemoryError" exception. But, seriously, what would you have it do instead? -- Tim R

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-04-01 Thread Roy Smith
In article <51590a2b$0$3$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Concrete examples of transitive relations: greater than, equal to, less > than and equal to. Will Python 4 implement "less than and equal to"? :-) [Warning: topic creep] Well, they are transitive over

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Steven D'Aprano
On Mon, 01 Apr 2013 00:39:56 +, Alex wrote: > Chris Angelico wrote: > > >> Opening paragraph, "... exponentiation, which groups from right to >> left". It follows the obvious expectation from mathematics. (The OP is >> using Python 2, but the same applies.) > > Thanks. I did miss that paren

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Chris Angelico
On Mon, Apr 1, 2013 at 11:39 AM, Alex wrote: > Given that > > 3 > 5 > 4 > > (i.e.: 4**5**3) is transitive, I would have expected Python to exhibit > more consistency with the other operators. I guess that is one of the > foolish consistencies that comprise the hobgoblins of my little mind, > th

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Alex
Chris Angelico wrote: > > Opening paragraph, "... exponentiation, which groups from right to > left". It follows the obvious expectation from mathematics. (The OP is > using Python 2, but the same applies.) Thanks. I did miss that parenthetical comment in para 6.15, and that would have been the

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Dave Angel
On 03/31/2013 06:06 PM, Alex wrote: Dave Angel wrote: On 03/31/2013 02:56 AM, morphex wrote: 1**2 1 1**2**3 1 1**2**3**4 1L 1**2**3**4**5 Traceback (most recent call last): File "", line 1, in MemoryError Does anyone know why this raises a MemoryError? Doesn't m

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Chris Angelico
On Mon, Apr 1, 2013 at 9:28 AM, Chris Angelico wrote: > On Mon, Apr 1, 2013 at 9:06 AM, Alex wrote: >> Really? >> >> The Python 3 documentation >> (http://docs.python.org/3/reference/expressions.html) says in section >> 6.14 (Evaluation order) that "Python evaluates expressions from left to >> ri

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Chris Angelico
On Mon, Apr 1, 2013 at 9:06 AM, Alex wrote: > Dave Angel wrote: > >> On 03/31/2013 02:56 AM, morphex wrote: >> > > > > 1**2 >> > 1 >> > > > > 1**2**3 >> > 1 >> > > > > 1**2**3**4 >> > 1L >> > &g

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Alex
Dave Angel wrote: > On 03/31/2013 02:56 AM, morphex wrote: > > > > > 1**2 > > 1 > > > > > 1**2**3 > > 1 > > > > > 1**2**3**4 > > 1L > > > > > 1**2**3**4**5 > > Traceback (most recent call last): > >

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Jason Swails
On Sun, Mar 31, 2013 at 9:15 AM, Roy Smith wrote: > > > $ prtstat 29937 > > Process: mongodState: S (sleeping) > > [...] > > Memory > > Vsize: 1998285 MB > > RSS: 5428 MB > > RSS Limit: 18446744073709 MB > > If I counted the digits right, that 1.9 TB. I love the R

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Roy Smith
In article , Dave Angel wrote: > I'm typing this while a terminal is open doing the particular operation, > and the system doesn't seem in the least sluggish. > > Currently the memory used is at 10gig, and while there are some pauses > in my typing, the system has not died. This is on Linux

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Roy Smith
In article <8276eff6-9e5c-4060-b9e8-94fab6062...@googlegroups.com>, morphex wrote: > Aha, OK. Thought I found a bug but yeah that makes sense ;) > > While we're on the subject, wouldn't it be nice to have some cap there so > that it isn't possible to more or less block the system with large

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Roy Smith
In article <5157e6cc$0$29974$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > For what it's worth, that last intermediate result (two to the power of > the 489-digit number) has approximately a billion trillion trillion > trillion trillion trillion trillion trillion trillion trill

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Dave Angel
On 03/31/2013 08:07 AM, morphex wrote: Aha, OK. Thought I found a bug but yeah that makes sense ;) While we're on the subject, wouldn't it be nice to have some cap there so that it isn't possible to more or less block the system with large exponentiation? There's an assumption there. The O

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread morphex
$ python > > > Python 2.7.3 (default, Sep 26 2012, 21:53:58) [GCC 4.7.2] on linux2 > > > Type "help", "copyright", "credits" or "license" for more information. > > >>>> 1**2 > > > 1 >

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Dave Angel
2] on linux2 Type "help", "copyright", "credits" or "license" for more information. 1**2 1 1**2**3 1 1**2**3**4 1L 1**2**3**4**5 Traceback (most recent call last): File "", line 1, in MemoryError Does anyone know why this rai

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Steven D'Aprano
Type "help", "copyright", "credits" or "license" for more information. >>>> 1**2 > 1 >>>> 1**2**3 > 1 >>>> 1**2**3**4 > 1L >>>> 1**2**3**4**5 > Traceback (most recent call last): > File &q

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Dave Angel
credits" or "license" for more information. 1**2 1 1**2**3 1 1**2**3**4 1L 1**2**3**4**5 Traceback (most recent call last): File "", line 1, in MemoryError Does anyone know why this raises a MemoryError? Doesn't make sense to me. Perhaps you didn&#x

Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread morphex
Hi. I was just doodling around with the python interpreter today, and here is the dump from the terminal: morphex@laptop:~$ python Python 2.7.3 (default, Sep 26 2012, 21:53:58) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for mo

Re: why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread Robert Kern
On 2010-02-25 18:29 PM, r wrote: On Feb 25, 7:00 am, fat bold cyclop wrote: why (1, 2, 3)> [1, 2, 3] is true? It's simple, Everything must have a value! That is not at all an explanation, much less a true one. Please read the other posts in this thread; they have explained the s

Re: why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread r
On Feb 25, 7:00 am, fat bold cyclop wrote: > why (1, 2, 3) > [1, 2, 3] is true? It's simple, Everything must have a value! -- http://mail.python.org/mailman/listinfo/python-list

Re: why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread Terry Reedy
On 2/25/2010 9:21 AM, Richard Thomas wrote: On Feb 25, 2:03 pm, fat bold cyclop wrote: Both are not equal, so the comparison returns an arbitrary result in Py2. Thanks, Stefan. If I understand you correctly the comparison is not valid. But I wonder if there is any logic behind this (in 2.x).

Re: why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread Stefan Behnel
fat bold cyclop, 25.02.2010 15:03: >> Both are not equal, so the comparison returns an arbitrary result in Py2. > Thanks, Stefan. If I understand you correctly the comparison is not > valid. > But I wonder if there is any logic behind this (in 2.x). > Is it possible to predict result of this compar

Re: why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread Iain King
On Feb 25, 2:03 pm, fat bold cyclop wrote: > > Both are not equal, so the comparison returns an arbitrary result in Py2. > > Thanks, Stefan. If I understand you correctly the comparison is not > valid. > But I wonder if there is any logic behind this (in 2.x). > Is it possible to predict result of

Re: why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread Richard Thomas
On Feb 25, 2:03 pm, fat bold cyclop wrote: > > Both are not equal, so the comparison returns an arbitrary result in Py2. > > Thanks, Stefan. If I understand you correctly the comparison is not > valid. > But I wonder if there is any logic behind this (in 2.x). > Is it possible to predict result of

Re: why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread fat bold cyclop
> Both are not equal, so the comparison returns an arbitrary result in Py2. Thanks, Stefan. If I understand you correctly the comparison is not valid. But I wonder if there is any logic behind this (in 2.x). Is it possible to predict result of this comparison? Thanks again, fbc -- http://mail.pyt

Re: why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread Stefan Behnel
fat bold cyclop, 25.02.2010 14:00: > I tired to google for comparison of tuple to list but i failed. > > Could anyone explain it to me? Both are not equal, so the comparison returns an arbitrary result in Py2. Note that this was fixed in Py3: Python 3.1.1+ (r311:74480, Nov 2 2009, 15:45:00) [G

why (1, 2, 3) > [1, 2, 3] is true?

2010-02-25 Thread fat bold cyclop
I tired to google for comparison of tuple to list but i failed. Could anyone explain it to me? Best regards, fat bold cyclop -- http://mail.python.org/mailman/listinfo/python-list

Re: code challenge: generate minimal expressions using only digits 1, 2, 3

2009-02-20 Thread Paul Rubin
Trip Technician writes: > I have a dim intuition that it could be done with a very clever bit of > recursion, but the exact form so far eludes me. This sounds a little like a homework assignment, or maybe a challenge you are trying to solve for yourself, rather than be given a complete answer for

1, 2, 3, 5, 7... PRIME Numbers

2007-01-17 Thread newstips6706
1, 2, 3, 5, 7... PRIME Numbers [ Mathematics / Physics / Engineering ] Definitions What is a PRIME Number ? A PRIME number is a number whose only positive divisors are one and itself. What is a MAGIC SQUARE? A magic square is an arrangement of numbers in a

Re: 1 + 2 = 3

2005-03-20 Thread Do Re Mi chel La Si Do
4 -- http://mail.python.org/mailman/listinfo/python-list