Re: questions re: calendar module

2020-07-31 Thread dn via Python-list
On 31/07/2020 02:52, o1bigtenor wrote: I regularly work in planning through multiple years at once. This means that I like to have a lot of stuff available in a calendar function. Python seems to be locked when I need to display more than 1 year at a time. I don't see a way to display something l

Re: Issue with Python installation for a beginner Python coder.

2020-07-31 Thread boB Stepp
On Thu, Jul 30, 2020 at 9:24 AM Sarvesh Poddar via Python-list wrote: > I re-installed Python in my Windows system as the earlier one was not able to > import modules... You do not provide much detail to diagnose what your problem(s) is(are). By the "earlier one" is it the same version as the

Re: Winreg

2020-07-31 Thread David L Neil via Python-list
On 31/07/2020 16:48, R Pasco wrote: Thanks for your extensive info. Its too bad this isn't published in the python winreg/_winreg modules' info. Ray Pasco Welcome to the world of documentation! Perhaps you have 'discovered' something, or maybe you're using the tool in an unusual way, or mayb

Downloading Python

2020-07-31 Thread Tanmay Shah
Hello to whoever this may concern, After downloading Python 3.8.5 IDLE, an error message popped up, saying the code execution cannot proceed because python38.dll was not found. What should I do in order to use the Python interpreter? Thank you! -- https://mail.python.org/mailman/listinfo/python-

Re: "1,+2,", but not "(1,)+2,"

2020-07-31 Thread Chris Angelico
On Sat, Aug 1, 2020 at 4:31 AM Jon Ribbens via Python-list wrote: > > On 2020-07-31, Bart wrote: > > Not sure about the trailing commas on each. It seems Python ignores > > trailing commas on tuple constructors, so that the A,B, would be a > > 2-tuple, and A+B, would have been a 1-tuple if A+B ha

Re: "1,+2,", but not "(1,)+2,"

2020-07-31 Thread Jon Ribbens via Python-list
On 2020-07-31, Bart wrote: > Not sure about the trailing commas on each. It seems Python ignores > trailing commas on tuple constructors, so that the A,B, would be a > 2-tuple, and A+B, would have been a 1-tuple if A+B had been legal. It's not just tuples, it's lists, sets, dictionaries, etc. I

Re: Winreg

2020-07-31 Thread R Pasco
My code was just experimental and will be much refined in the future which will include specific exception catches. Connecting to the local registry is to 'go the last yard' for a full-blown implementation. I had a hard time grasping the Windows registry concept of having to first get a key handl

Re: "1,+2,", but not "(1,)+2,"

2020-07-31 Thread Python
Stefan Ram wrote: Jon Ribbens writes: On 2020-07-31, Stefan Ram wrote: You can write |>>> 1,+2, |(1, 2) , but not |>>> (1,)+2, |TypeError: can only concatenate tuple (not "int") to tuple . Why? (Python 3.9) For the obvious reason, as indicated by the error message? What are you expe

Re: "1,+2,", but not "(1,)+2,"

2020-07-31 Thread MRAB
On 2020-07-31 14:15, Jon Ribbens via Python-list wrote: On 2020-07-31, Stefan Ram wrote: You can write |>>> 1,+2, |(1, 2) , but not |>>> (1,)+2, |TypeError: can only concatenate tuple (not "int") to tuple . Why? (Python 3.9) For the obvious reason, as indicated by the error message?

Re: "1,+2,", but not "(1,)+2,"

2020-07-31 Thread Jon Ribbens via Python-list
On 2020-07-31, Stefan Ram wrote: > You can write > >|>>> 1,+2, >|(1, 2) > > , but not > >|>>> (1,)+2, >|TypeError: can only concatenate tuple (not "int") to tuple > > . Why? (Python 3.9) For the obvious reason, as indicated by the error message? What are you expecting these expressions to