Upcoming book: Learn Python through Nursery Rhymes and Fairy Tales

2021-08-18 Thread Shari Eskenas
Hi everyone, I'm writing a new Python book for beginners called Learn Python through Nursery Rhymes and Fairy Tales. It teaches Python concepts by translating the classic tales into Python programs. I launched the book on Kickstarter for pre-order- you can check it out here: https://www.kickst

Re: question on trax

2021-08-18 Thread Greg Ewing
On 19/08/21 3:59 am, joseph pareti wrote: Another question is on this line: z = add((x, y)) If I code: z = add(x, y) Then the following exception occurs : *Expected input to be a tuple or list; instead got .* What exactly is your question? Does add((x, y)) not do what you want? If not, you'll

Re: basic auth request

2021-08-18 Thread Jon Ribbens via Python-list
On 2021-08-18, Robin Becker wrote: > On 17/08/2021 22:47, Jon Ribbens via Python-list wrote: > ... >> That's only true if you're not using HTTPS - and you should *never* >> not be using HTTPS, and that goes double if forms are being filled >> in and double again if passwords are being supplied

Re: Compute working days

2021-08-18 Thread MRAB
On 2021-08-18 20:57, Bruno Lirio wrote: Em sábado, 14 de março de 2009 às 13:59:41 UTC-3, Casey escreveu: How about: from datetime import date, timedelta # Define the weekday mnemonics to match the date.weekday function (MON, TUE, WED, THU, FRI, SAT, SUN) = range(7) def workdays(start_date, end_

Re: Compute working days

2021-08-18 Thread Bruno Lirio
Em sábado, 14 de março de 2009 às 13:59:41 UTC-3, Casey escreveu: > How about: > from datetime import date, timedelta > # Define the weekday mnemonics to match the date.weekday function > (MON, TUE, WED, THU, FRI, SAT, SUN) = range(7) > def workdays(start_date, end_date, whichdays=(MON,TUE,WED,THU,

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

2021-08-18 Thread Steve
-Original Message- From: Python-list On Behalf Of Greg Ewing Sent: Wednesday, August 18, 2021 11:49 AM To: python-list@python.org Subject: Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency On 18/08/21 4:43 pm, Steve wrote: >> >> "The HAL (hardware abs

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

2021-08-18 Thread Greg Ewing
On 18/08/21 4:43 pm, Steve wrote: "The HAL (hardware abstraction layer) function HalMakeBeep()" Is the beep that opens the pod bay doors? def HalMakeBeepUsingPCSpeaker(): raise IOError("I'm sorry, I can't do that, Dave.") -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: basic auth request

2021-08-18 Thread Robin Becker
On 17/08/2021 22:47, Jon Ribbens via Python-list wrote: ... That's only true if you're not using HTTPS - and you should *never* not be using HTTPS, and that goes double if forms are being filled in and double again if passwords are being supplied. I think I agree with most of the replies;

Re: question on trax

2021-08-18 Thread Dennis Lee Bieber
On Tue, 17 Aug 2021 17:50:59 +0200, joseph pareti declaimed the following: >In the following code, where does tl.Fn come from? i see it nowhere in the >documents, i.e I was looking for trax.layers.Fn : "layers" imports a whole slew of sub modules using from xxx import * i

Re: question on trax

2021-08-18 Thread joseph pareti
yes, but I do not see Fn anywhere. Another question is on this line: z = add((x, y)) If I code: z = add(x, y) Then the following exception occurs : *Expected input to be a tuple or list; instead got .* Am Di., 17. Aug. 2021 um 19:21 Uhr schrieb MRAB : > On 2021-08-17 16:50, joseph pareti wrote