Re: Python download problem

2020-09-09 Thread MRAB
On 2020-09-09 10:23, Talin Alnaber wrote: Good evening, I would like to ask for help regarding Python installation , I'm a beginner and I would like to challenge myself to start coding using Python language , but unfortunately I'm having problems while installing it , I used python.org to insta

Re: Module exists and cannot be found

2020-09-09 Thread Menno Holscher
Op 09-09-2020 om 07:35 schreef James Moe via Python-list: python 3.6.10 opensuse tumbleweed Tumbleweed is a rolling distro, so that is extremely old for Tumbleweed. I would expect Python 3.8.4 or 3.8.5 to be current there. If you want to use another version, you would have to run in a virtual

Re: newbie

2020-09-09 Thread Michael Torrie
On 9/8/20 7:24 PM, Grant Edwards wrote: > On 2020-09-08, Don Edwards wrote: > >> I may need. My aim is to write a program >> that simulates croquet - 2 balls colliding with the strikers (cue) ball >> going into the hoop (pocket), not the target ball. I want to be able to >> move the balls around

Python download problem

2020-09-09 Thread Talin Alnaber
Good evening, I would like to ask for help regarding Python installation , I'm a beginner and I would like to challenge myself to start coding using Python language , but unfortunately I'm having problems while installing it , I used python.org to install the latest Windows version of Python (

Re: Module exists and cannot be found

2020-09-09 Thread Barry Scott
> On 9 Sep 2020, at 06:35, James Moe via Python-list > wrote: > > python 3.6.10 > opensuse tumbleweed > linux 5.8.4 > > An old program based on Python (BackInTime) has recently been having > difficulties functioning. See below. > > Module PyQt5 is most definitely installed. Apparently there

Re: Fwd: PYTHON BUG. deleting elements of list.

2020-09-09 Thread Mats Wichmann
On 9/8/20 5:18 PM, Richard Damon wrote: > On 9/8/20 7:06 PM, Mats Wichmann wrote: >> On 9/7/20 5:01 PM, Driuma Nikita wrote: >> for i, el in enumerate(_list[:]): >> del _list[i] >> > The issue isn't so much that he is modifying the list that he is > iterating over, but also when he de

Re: Fwd: PYTHON BUG. deleting elements of list.

2020-09-09 Thread Chris Angelico
On Wed, Sep 9, 2020 at 6:18 PM Nicholas Cole wro > > On Wed, Sep 9, 2020 at 8:52 AM Chris Angelico wrote: > > [snip] > > And if you absolutely have to mutate in place: > > > > items[:] = [i for i in items if i not in "bcd"] > > How does that work to mutate in place? Technically it constructs a n

Re: Fwd: PYTHON BUG. deleting elements of list.

2020-09-09 Thread Nicholas Cole
On Wed, Sep 9, 2020 at 8:52 AM Chris Angelico wrote: [snip] > And if you absolutely have to mutate in place: > > items[:] = [i for i in items if i not in "bcd"] How does that work to mutate in place? -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: PYTHON BUG. deleting elements of list.

2020-09-09 Thread Chris Angelico
On Wed, Sep 9, 2020 at 5:45 PM Peter Otten <__pete...@web.de> wrote: > > Peter Otten wrote: > > > If the list is huge you can also delete in reverse order: > > > > for i in reversed(len(_list)): > > Make that reversed(range(len(_list))). > > > if discard(_list[i]): > > del _list[i] > >

Re: Fwd: PYTHON BUG. deleting elements of list.

2020-09-09 Thread Peter Otten
Peter Otten wrote: > If the list is huge you can also delete in reverse order: > > for i in reversed(len(_list)): Make that reversed(range(len(_list))). > if discard(_list[i]): > del _list[i] Example: >>> items = ['a', 'b', 'c', 'd', 'e'] >>> for i, item in enumerate(items): ...

Audacity and pipe_test.py

2020-09-09 Thread Steve
I am trying to adapt this short file to be used for simple control of the Audacity audio recording program. I can get the following does to work: do_command("Record1stChoice") #Creates a new track and starts recording do_command("AddLabel:") #Places a label in the label track