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
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
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
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
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
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
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
>
> 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
- 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:
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
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
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
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
- 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
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
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
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
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
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
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
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.
>
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
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
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
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
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
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
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
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
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):
> >
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
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
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
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
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
$ 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
>
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
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
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
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
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
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
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).
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
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
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
> 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
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
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
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
[ 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
4
--
http://mail.python.org/mailman/listinfo/python-list
52 matches
Mail list logo