Errors in testing the SciPy installation

2020-02-22 Thread Markos

Hi,

Following the guidelines of the book Learning SciPy for Numerical and 
Scientific Computing Second Edition


I did the tests:

>>> import scipy
>>> scipy.test()

and got some errors:

Ran 23065 tests in 490.568s

FAILED (KNOWNFAIL=60, SKIP=1795, errors=29)


What should I do?

Thank you,
Markos

--
https://mail.python.org/mailman/listinfo/python-list


Help with oop

2020-02-22 Thread S Y
How can I use remove,add and verify methods in class oop. Which has tuple with 
allowed values inside class. Like two classes cart and inventory
Get Outlook for iOS
-- 
https://mail.python.org/mailman/listinfo/python-list


python

2020-02-22 Thread lberia460
hi guys can you help me.how to find maximum and minimum in list using while 
loop python
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python

2020-02-22 Thread Python

[email protected] wrote:

hi guys can you help me.how to find maximum and minimum in list using while 
loop python


l = [1, 4, 2, -1, 0, 4, 2, 1, 10]
for i in range(100):
pass

maximum = max(l)
minimum = min(l)


--
https://mail.python.org/mailman/listinfo/python-list


Re: python

2020-02-22 Thread MRAB

On 2020-02-22 18:18, [email protected] wrote:

hi guys can you help me.how to find maximum and minimum in list using while 
loop python


You don't need to use a loop. Use the 'max' and 'min' functions.
--
https://mail.python.org/mailman/listinfo/python-list


Re: python

2020-02-22 Thread Bev In TX


> On Feb 22, 2020, at 2:42 PM, MRAB  wrote:
> 
>> On 2020-02-22 18:18, [email protected] wrote:
>> hi guys can you help me.how to find maximum and minimum in list using while 
>> loop python
> You don't need to use a loop. Use the 'max' and 'min' functions.
Unless it was a homework question, in which case a loop might have been 
required.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Idiom for partial failures

2020-02-22 Thread Ethan Furman

On 02/21/2020 02:51 PM, Rob Gaddi wrote:

On 2/21/20 9:18 AM, David Wihl wrote:



Yes, the API has to support partial failures across all six supported
languages. Not all operations need to be atomic and there is considerable
efficiency in having multiple operations sent in a single request. Thanks,


A partial failure is a partial success and should not trigger a mandatory 
flow-control change, which is what an exception is.


Whether it should or not is a design question which won't always have the same 
answer.


If there is any information in the successes, then I'd expect an operation like 
this to return me a list corresponding 1-to-1 with the list of operations


Sure, if there is processing still needed for the successes then that is the 
way I would choose, also.


If successes have nothing to add to the party, then I'd expect the operation to 
return a list containing only the errors, and an empty list means no errors.


I would go the exception route here, for two reasons:

- the code that handles failures is very obviously in one place
- the program won't run merrily along if I forget to handle the failure case
  (an exception would draw attention to the problem)

--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list


Why is passing loop argument to asyncio.Event deprecated?

2020-02-22 Thread Frank Millman

Hi all

Why is 'explicit passing of a loop argument to asyncio.Event' deprecated 
(see What's new in Python 3.8)?


I use this in my project. I can find a workaround, but it is not elegant.

I can explain my use case if requested, but I was just curious to find 
out the reason.


Thanks

Frank Millman

--
https://mail.python.org/mailman/listinfo/python-list


python

2020-02-22 Thread luka beria
hi guys i have another question.how to  find the minimum and maximum numbers in 
this list without using the min () and max () functions use   while loop
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python

2020-02-22 Thread Frank Millman

On 2020-02-23 9:26 AM, luka beria wrote:

hi guys i have another question.how to  find the minimum and maximum numbers in 
this list without using the min () and max () functions use   while loop



Hi Luka

Did you read the reply to your previous question from Dennis Lee Bieber?

If not, here it is again -

"""
This smells like a homework assignment. We do NOT provide solutions to
homework. In particular, we will not provide you with an algorithm to 
solve such a simple problem.


We WILL provide help with Python syntax and semantics, but YOU need to
provide a starting point of what you've tried, what the results are, and
what you expected for the results.

Suggestion: pretend you are the computer. Use a piece of paper to track
current MAX and current MIN. You get one item from the list at a time --
how do you determine if it is to become a new MAX, a new MIN, or is ignored
as neither.

Now -- write a program does just that...

"""

Try his suggestion, and come back here if you get stuck.

Frank Millman

--
https://mail.python.org/mailman/listinfo/python-list