RE: Audacity and pipe_test.py
"There is no promise on time.sleep() that the program will restart exactly when the time expires." No precision needed, +- two minutes is acceptable, even three.. In my tests, I see scarcely three seconds difference. No problem. As for ENDIF, ENDWHILE, "But they have no syntactic meaning, and may get out of sync with the indentation." Being comments, will have no effect of indents. I use them strictly to see the structure and usually for long segments of code only. -Original Message- From: Python-list On Behalf Of Dennis Lee Bieber Sent: Sunday, September 13, 2020 3:06 PM To: python-list@python.org Subject: Re: Audacity and pipe_test.py On Sat, 12 Sep 2020 14:23:25 -0400, "Steve" declaimed the following: > >You are correct. I use the py timer to pause the commands being sent >to the pipe. There seems to be something fluky about that too. It >looks as if when I have four or more do_commands, it doesn't run as a >timer. Takes more scrutiny... time.sleep() is not a "timer" per se. In most implementations it is a blocking call to the operating system; the OS suspends the task and gives the CPU to another task until the requested delay expires, after which the task is placed onto the "ready queue" to /eventually/ continue running. In a system with lots of high priority tasks, that "eventually" could be a long time. There is no promise on time.sleep() that the program will restart exactly when the time expires. >"ENDIF, ENDFOR, ENDWHILE statements" do exist in my python program. I >place them as comments to document the end of the operations. It makes >it easier for me to follow the logic especially if they are nested. But they have no syntactic meaning, and may get out of sync with the indentation. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Need tests of turtledemo.colordemo on Windows installations
User Tushar Sadhwani and I both have Win 10 with 3.8.5 installed. When he runs ...> py -3.8 -m turtledemo.colormixer and moves the sliders a reasonable amount, he repeatably gets Fatal Python error: Cannot recover from stack overflow. ... https://bugs.python.org/issue41758 I have no problem, regardless of version, PowerShell or Command Prompt, installation or repository build. I suspect that the issue is specific to his machine, but before closing, we need more evidence either way. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list
Re: Audacity and pipe_test.py
On 2020-09-13, Steve wrote: > "There is no promise on time.sleep() that the program will restart exactly > when the time expires." > > No precision needed, +- two minutes is acceptable, even three.. In my > tests, I see scarcely three seconds difference. No problem. > > As for ENDIF, ENDWHILE, > "But they have no syntactic meaning, and may get out of sync with the > indentation." > > Being comments, will have no effect of indents. Exactly. That's the problem. > I use them strictly to see the structure and usually for long > segments of code only. The problem is that since they're comments, the compiler can't warn you when there's a mistake. After the code has been edited a few times, they will end up being wrong and misleading. If you can't see the structure of the code by looking at the code, then you're doing something wrong. Fix the code (or use a better editor). Adding comments to try to clarify the flow of poorly structured code just ends up making the problem worse later on when the comments are wrong. And they will end up being wrong. -- https://mail.python.org/mailman/listinfo/python-list
RE: Audacity and pipe_test.py
" The problem is that since they're comments, the compiler can't warn you when there's a mistake. After the code has been edited a few times, they will end up being wrong and misleading." If that is the case, then I would suspect that you are doing it incorrectly. It works especially well for me. It goes a long way to help with indents. It also prevents a lot of excessive scrolling. I do something similar with HTML. A comment at the end of a data structure that explains the purpose of the DS is extremely helpful. -Original Message- From: Python-list On Behalf Of Grant Edwards Sent: Sunday, September 13, 2020 9:41 PM To: python-list@python.org Subject: Re: Audacity and pipe_test.py On 2020-09-13, Steve wrote: > "There is no promise on time.sleep() that the program will restart > exactly when the time expires." > > No precision needed, +- two minutes is acceptable, even three.. In my > tests, I see scarcely three seconds difference. No problem. > > As for ENDIF, ENDWHILE, > "But they have no syntactic meaning, and may get out of sync with the > indentation." > > Being comments, will have no effect of indents. Exactly. That's the problem. > I use them strictly to see the structure and usually for long segments > of code only. The problem is that since they're comments, the compiler can't warn you when there's a mistake. After the code has been edited a few times, they will end up being wrong and misleading. If you can't see the structure of the code by looking at the code, then you're doing something wrong. Fix the code (or use a better editor). Adding comments to try to clarify the flow of poorly structured code just ends up making the problem worse later on when the comments are wrong. And they will end up being wrong. -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: Need tests of turtledemo.colordemo on Windows installations
On 2020-09-14 3:18 AM, Terry Reedy wrote: User Tushar Sadhwani and I both have Win 10 with 3.8.5 installed. When he runs ...> py -3.8 -m turtledemo.colormixer and moves the sliders a reasonable amount, he repeatably gets Fatal Python error: Cannot recover from stack overflow. ... https://bugs.python.org/issue41758 I have no problem, regardless of version, PowerShell or Command Prompt, installation or repository build. I suspect that the issue is specific to his machine, but before closing, we need more evidence either way. I am running 3.8.2 on Windows 10, and I can run the test with no issues at all. I will upgrade to 3.8.5 later today and try again. Frank Millman -- https://mail.python.org/mailman/listinfo/python-list
Re: Need tests of turtledemo.colordemo on Windows installations
On 2020-09-14 7:07 AM, Frank Millman wrote: On 2020-09-14 3:18 AM, Terry Reedy wrote: User Tushar Sadhwani and I both have Win 10 with 3.8.5 installed. When he runs ...> py -3.8 -m turtledemo.colormixer and moves the sliders a reasonable amount, he repeatably gets Fatal Python error: Cannot recover from stack overflow. ... https://bugs.python.org/issue41758 I have no problem, regardless of version, PowerShell or Command Prompt, installation or repository build. I suspect that the issue is specific to his machine, but before closing, we need more evidence either way. I am running 3.8.2 on Windows 10, and I can run the test with no issues at all. I will upgrade to 3.8.5 later today and try again. Frank Millman 3.8.5 (64-bit) also runs with no problems. My machine is a Lenovo T420 laptop. Frank -- https://mail.python.org/mailman/listinfo/python-list