Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread Chris Angelico
On Tue, Aug 17, 2021 at 1:50 PM Eryk Sun wrote: > > On 8/16/21, Chris Angelico wrote: > > On Tue, Aug 17, 2021 at 11:44 AM Eryk Sun wrote: > > > >> Yes, the PC speaker beep does not get used in Windows 7+. The beep > >> device object is retained for compatibility, but it redirects the > >> reque

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread Eryk Sun
On 8/16/21, Chris Angelico wrote: > On Tue, Aug 17, 2021 at 11:44 AM Eryk Sun wrote: > >> Yes, the PC speaker beep does not get used in Windows 7+. The beep >> device object is retained for compatibility, but it redirects the >> request to a task in the user's session (which could be a remote >>

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread Chris Angelico
On Tue, Aug 17, 2021 at 11:44 AM Eryk Sun wrote: > > On 8/16/21, Roel Schroeven wrote: > > > > We're not necessarily talking about the PC speaker here: (almost) all > > computers these days have sound cards (mostly integrated on the > > motherboard) that are much more capable than those one-bit P

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread Eryk Sun
On 8/16/21, Roel Schroeven wrote: > > We're not necessarily talking about the PC speaker here: (almost) all > computers these days have sound cards (mostly integrated on the > motherboard) that are much more capable than those one-bit PC speakers. Yes, the PC speaker beep does not get used in Win

Re: some problems for an introductory python test

2021-08-16 Thread Dennis Lee Bieber
On Sun, 15 Aug 2021 00:15:58 -0300, Hope Rouselle declaimed the following: Giganews seems to have just vomited up three days worth of traffic... >Dennis Lee Bieber writes: > >> >> Granted, the fact that the Amiga used a shared common address space for >> all running applications ma

Re: please help

2021-08-16 Thread Dennis Lee Bieber
On Mon, 16 Aug 2021 20:24:17 +0100, MRAB declaimed the following: >On 2021-08-16 02:19, vitalis wrote: >> I keep getting this error while trying to install pyqt5 designer >> >> Fatal error in launcher: Unable to create process using '"c:\program >> files\python39\python.exe" "C:\Pro

Re: on slices, negative indices, which are the equivalent procedures?

2021-08-16 Thread Dennis Lee Bieber
On Sun, 15 Aug 2021 00:05:29 -0300, Jack Brandom declaimed the following: >Dennis Lee Bieber writes: > >> subscript: '.' '.' '.' | test | [test] ':' [test] [sliceop] >> sliceop: ':' [test] > >This is looking less readable, so, no, I prefer that previous, which was >much clearer about slices.

Re: some problems for an introductory python test

2021-08-16 Thread Abhiram R
Hello, One of my absolute favorite places to go to practice Python questions from is https://projecteuler.net . It's just Maths based questions that cannot be solved by hand without consuming a Ton of time because of the high limits. This is how I learnt Python. By solving problems from the site in

Re: please help

2021-08-16 Thread MRAB
On 2021-08-16 02:19, vitalis wrote: I keep getting this error while trying to install pyqt5 designer Fatal error in launcher: Unable to create process using '"c:\program files\python39\python.exe" "C:\Program Files\Python39\Scripts\pip.exe" install PyQt5Designer': The system can

Re: on perhaps unloading modules?

2021-08-16 Thread Chris Angelico
On Tue, Aug 17, 2021 at 4:02 AM Greg Ewing wrote: > The second best way would be to not use import_module, but to > exec() the student's code. That way you don't create an entry in > sys.modules and don't have to worry about somehow unloading the > module. I would agree with this. If you need to

Re: some problems for an introductory python test

2021-08-16 Thread Chris Angelico
On Tue, Aug 17, 2021 at 3:51 AM Hope Rouselle wrote: > > Chris Angelico writes: > >> Wow, I kinda feel the same as you here. I think this justifies perhaps > >> using a hardware solution. (Crazy idea?! Lol.) > > > > uhhh Yes. Very crazy idea. Can't imagine why anyone would ever > > thin

please help

2021-08-16 Thread vitalis
I keep getting this error while trying to install pyqt5 designer Fatal error in launcher: Unable to create process using '"c:\program files\python39\python.exe" "C:\Program Files\Python39\Scripts\pip.exe" install PyQt5Designer': The system cannot find the file specified. please wh

fixed the from fiield

2021-08-16 Thread testing
heh -- Python Test Script . -- https://mail.python.org/mailman/listinfo/python-list

post.py

2021-08-16 Thread Testing
Just got done writing this nice little posting script. Its my first python script ecer so be nice lol. #!/usr/bin/python3 import nntplib import sys NAME = 'testbunny' EMAIL = 'te...@test.com' SIG = 'Testbunny' ORG = 'Python Pirates' SERVER = 'nntp.aioe.org' GROUPS = 'alt.test' SUBJECT = input("

Re: on perhaps unloading modules?

2021-08-16 Thread Hope Rouselle
Hope Rouselle writes: > Hope Rouselle writes: > > [...] > >> Of course, you want to see the code. I need to work on producing a >> small example. Perhaps I will even answer my own question when I do. > > [...] > > Here's a small-enough case. We have two students here. One is called > student

Re: on perhaps unloading modules?

2021-08-16 Thread Hope Rouselle
Hope Rouselle writes: [...] > Of course, you want to see the code. I need to work on producing a > small example. Perhaps I will even answer my own question when I do. [...] Here's a small-enough case. We have two students here. One is called student.py and the other is called other.py. T

Re: on perhaps unloading modules?

2021-08-16 Thread Hope Rouselle
Greg Ewing writes: > On 16/08/21 1:50 am, Hope Rouselle wrote: >> By the way, I'm aware that what I'm doing here is totally unsafe and I >> could get my system destroyed. I'm not planning on using this --- thank >> you for your concern. I'm just interested in understanding more about >> modules

Re: on perhaps unloading modules?

2021-08-16 Thread Greg Ewing
On 16/08/21 1:50 am, Hope Rouselle wrote: By the way, I'm aware that what I'm doing here is totally unsafe and I could get my system destroyed. I'm not planning on using this --- thank you for your concern. I'm just interested in understanding more about modules. Okay, I'll assume all the sec

ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-08-16 Thread Mostowski Collapse
Yesterday we went into a little programming binge, despite there was a free parade in Zurich. We could now already implement a transpiler that targets Python. We simply took the transpiler main.p that targets JavaScript and moded it into a new transpiler mainpy.p that targets Python. The code is

on perhaps unloading modules?

2021-08-16 Thread Hope Rouselle
(*) Introduction By the way, I'm aware that what I'm doing here is totally unsafe and I could get my system destroyed. I'm not planning on using this --- thank you for your concern. I'm just interested in understanding more about modules. (*) The problem I got myself into a mess with loading m

Recoding Categorical to Numerical

2021-08-16 Thread John Griner
thanks Virus-free. www.avast.com <#m_4567368322047

Re: some problems for an introductory python test

2021-08-16 Thread Hope Rouselle
Grant Edwards writes: > On 2021-08-12, Hope Rouselle wrote: > >>> OS/2 had all kinds of amazing features (for its time). [...] Plus, >>> it had this fancy concept of "extended attributes"; on older >>> systems (like MS-DOS's "FAT" family), a file might be Read-Only, >>> Hidden, a System file, or

Re: some problems for an introductory python test

2021-08-16 Thread Hope Rouselle
Hope Rouselle writes: [...] >> Granted you may have to restrict some features if [...] > > To let students use the entire language feels a bit weird in the sense > that the group goes in so many different directions. It definitely put > teachers in a position they have to be --- I don't know th

Re: some problems for an introductory python test

2021-08-16 Thread Hope Rouselle
Chris Angelico writes: > On Fri, Aug 13, 2021 at 2:15 AM Hope Rouselle wrote: >> >> Chris Angelico writes: >> >> > History lesson! >> > >> > Once upon a time, IBM and Microsoft looked at what Intel was >> > producing, and went, hey, we need to design an operating system that >> > can take advan

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread jak
Il 13/08/2021 18:17, Chris Angelico ha scritto: On Sat, Aug 14, 2021 at 2:11 AM Terry Reedy wrote: On 8/13/2021 6:53 AM, Umang Goswami wrote: Hi There, Hope you find this mail in good health. I am Umang Goswami, a Python developer and student working on a huge project for automation of music

Re: some problems for an introductory python test

2021-08-16 Thread Hope Rouselle
Dennis Lee Bieber writes: > On Wed, 11 Aug 2021 09:27:38 -0300, Hope Rouselle > declaimed the following: >> >>I wouldn't. This is all Python-stuff. The course chooses a language >>like Python, but it is not trying to teach Python --- it is trying to >>teach computer programming, that is, strat

Re: some problems for an introductory python test

2021-08-16 Thread Hope Rouselle
Chris Angelico writes: > On Thu, Aug 12, 2021 at 9:23 AM Dennis Lee Bieber > wrote: [...] >> I was spoiled by the Amiga variant of REXX. Most current >> implementations (well, Regina is the only one I've looked at) can just pass >> command to the default shell. The Amiga version took

Re: some problems for an introductory python test

2021-08-16 Thread Hope Rouselle
Dennis Lee Bieber writes: > On Thu, 12 Aug 2021 06:15:28 +1000, Chris Angelico > declaimed the following: > >>The default command interpreter and shell on OS/2 was fairly primitive >>by today's standards, and was highly compatible with the MS-DOS one, >>but it also had the ability to run REXX sc

Re: on slices, negative indices, which are the equivalent procedures?

2021-08-16 Thread Jack Brandom
Dennis Lee Bieber writes: > On Wed, 11 Aug 2021 11:59:11 -0300, Jack Brandom > declaimed the following: > >> >>Where are these production rules coming from? They're not at >> >> https://docs.python.org/3/reference/grammar.html >> >>The word ``stride'' doesn't appear in this grammar. > >

Cyclic imports

2021-08-16 Thread Dan Stromberg
Hi folks. I'm working on a large codebase that has at least one cyclic import. In case I end up needing to eliminate the cyclic imports, is there any sort of tool that will generate an import graph and output Just the cycles? I tried pyreverse, but it produced too big a graph to be very useful;

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread Roel Schroeven
Op 15/08/2021 om 7:01 schreef Chris Angelico: On Sun, Aug 15, 2021 at 1:02 PM John O'Hagan wrote: > > > On 2021-08-13 17:17, Chris Angelico wrote: > > > Is it really? In my experience, no human ear can distinguish 277Hz > > > from 277.1826Hz when it's played on a one-bit PC speaker, which the >