Re: 2 Bugs: in Python 3 tutorial, and in bugs.python.org tracker registration system

2018-09-22 Thread Peter Otten
Francis Esmonde-White wrote: > Hello, > > I came to report one bug (in the Python 3 tutorial documentation), and ran > into another (functional in bugs.python.org bug tracker registration > system). I have included details for both bugs below. > > Thanks in advance for your assistance, I am lovi

Re: 2 Bugs: in Python 3 tutorial, and in bugs.python.org tracker registration system

2018-09-22 Thread Brian Oney via Python-list
That's one thing that confused me. Generators are supposed to be one-off iterators. Iterators, *I understood* as reusable iterables. -- https://mail.python.org/mailman/listinfo/python-list

Re: 2 Bugs: in Python 3 tutorial, and in bugs.python.org tracker registration system

2018-09-22 Thread Cameron Simpson
On 22Sep2018 12:08, Brian Oney wrote: That's one thing that confused me. Generators are supposed to be one-off iterators. Iterators, *I understood* as reusable iterables. You've misread the grammar (the semantics). Iterators are one off - they're something that counts (for want of a better w

Re: What is not working with my "map" usage?

2018-09-22 Thread Victor via Python-list
Let me use a different input args and display them below. Basically, I am hoping to add up all elements of each nested list. So at first it should start with [1,11,111] ==> 1+11+111 = 123. But instead, it appears to take the 1st element from each nested list to add up [1,2,3] = 6. How shoul

Re: What is not working with my "map" usage?

2018-09-22 Thread Peter Otten
Victor via Python-list wrote: > Let me use a different input args and display them below. Basically, I am > hoping to add up all elements of each nested list. So at first it should > start with [1,11,111] ==> 1+11+111 = 123. But instead, it appears to take > the 1st element from each nested lis

Re: 2 Bugs: in Python 3 tutorial, and in bugs.python.org tracker registration system

2018-09-22 Thread Peter Otten
Brian Oney via Python-list wrote: > That's one thing that confused me. Generators are supposed to be one-off > iterators. Iterators, *I understood* as reusable iterables. The way I think about it, informally: iterables need and __iter__ method, iterators need a __next__ method. In practice all

Re: Explicit vararg values

2018-09-22 Thread Buck Evan
Received? On Sun, Sep 16, 2018 at 3:39 PM Buck Evan wrote: > I started to send this to python-ideas, but I'm having second thoughts. > Does tihs have merit? > > --- > I stumble on this a lot, and I see it in many python libraries: > > def f(*args, **kwargs): > ... > > f(*[list comprehension]

Re: What is not working with my "map" usage?

2018-09-22 Thread Victor via Python-list
On Saturday, September 22, 2018 at 6:22:32 AM UTC-7, Peter Otten wrote: > Victor via Python-list wrote: > > > Let me use a different input args and display them below. Basically, I am > > hoping to add up all elements of each nested list. So at first it should > > start with [1,11,111] ==> 1+11+

Problema na DLL

2018-09-22 Thread Allan Sobrero
Olá, estou tendo problemas para executar o Python, baixei a versão 64 bit pois nas configurações de meu computador mostra 64x, porém na hora de executar diz que não tenho o api-ms-win-crt-runtime-l1-1-0.dll -- https://mail.python.org/mailman/listinfo/python-list

Re: What is not working with my "map" usage?

2018-09-22 Thread Peter Otten
Victor via Python-list wrote: > On Saturday, September 22, 2018 at 6:22:32 AM UTC-7, Peter Otten wrote: >> Victor via Python-list wrote: >> >> > Let me use a different input args and display them below. Basically, I >> > am >> > hoping to add up all elements of each nested list. So at first it

Re: What is not working with my "map" usage?

2018-09-22 Thread Thomas Jollans
On 22/09/2018 20:18, Victor via Python-list wrote: On Saturday, September 22, 2018 at 6:22:32 AM UTC-7, Peter Otten wrote: Victor via Python-list wrote: Let me use a different input args and display them below. Basically, I am hoping to add up all elements of each nested list. So at first it

Re: Problema na DLL

2018-09-22 Thread Thomas Jollans
On 22/09/2018 19:28, Allan Sobrero wrote: Olá, estou tendo problemas para executar o Python, baixei a versão 64 bit pois nas configurações de meu computador mostra 64x, porém na hora de executar diz que não tenho o api-ms-win-crt-runtime-l1-1-0.dll https://support.microsoft.com/pt-pt/help/2999

Re: What is not working with my "map" usage?

2018-09-22 Thread Victor via Python-list
On Saturday, September 22, 2018 at 12:20:08 PM UTC-7, Thomas Jollans wrote: > On 22/09/2018 20:18, Victor via Python-list wrote: > > On Saturday, September 22, 2018 at 6:22:32 AM UTC-7, Peter Otten wrote: > >> Victor via Python-list wrote: > >> > >>> Let me use a different input args and display th

Re: What is not working with my "map" usage?

2018-09-22 Thread ROGER GRAYDON CHRISTMAN
On Sat, Sep 22, 2018, Victor (vhnguy...@yahoo.com) wrote Let me use a different input args and display them below. Basically, I am hoping to add up all elements of each nested list. So at first it should start with [1,11,111] ==> 1+11+111 = 123. But instead, it appears to take the 1st element f

Re: Multiple problems with Python 3.7 under Windows 7 Home Premium

2018-09-22 Thread Spencer Graves
  Thanks very much to all who replied.  This problems was solved as follows:  First I downloaded "PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl" from "https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio"; as suggested by MRAB and Terry Reedy.  Then I ran "python -m pip install PyAudio‑0.2.11‑cp37

Re: Explicit vararg values

2018-09-22 Thread Michael Torrie
On 09/16/2018 04:39 PM, Buck Evan wrote: > The syntax I'm proposing is: >f(**kwargs={'a': 1, 'b': 2}) > > as a synonym of f(a=1, b=2) when an appropriate dictionary is already on > hand. But if the kwargs dict already exists you can already unpack it: f(**kwargs) or f(**{'a': 1, 'b': 2}) So