[Python-announce] Re: [python-committers] [RELEASE] Python 3.11 release candidate 1 (3.11.0rc1) is available

2022-08-08 Thread Terry Reedy
On 8/8/2022 12:59 PM, Pablo Galindo Salgado wrote: Python 3.11.0 is almost ready. This release, 3.11.0rc1, is the penultimate release preview. You can get it here: ## This is the first release candidate of Python 3.11 https://www.python.org/downloads/release/python-3110rc1/

Re: [python-committers] [RELEASE] Python 3.11 release candidate 1 (3.11.0rc1) is available

2022-08-08 Thread Terry Reedy
On 8/8/2022 12:59 PM, Pablo Galindo Salgado wrote: Python 3.11.0 is almost ready. This release, 3.11.0rc1, is the penultimate release preview. You can get it here: ## This is the first release candidate of Python 3.11 https://www.python.org/downloads/release/python-3110rc1/

Explaining exec(globals, separate_locals)

2021-09-20 Thread Terry Reedy
The second paragraph of the current exec entry https://docs.python.org/3.11/library/functions.html#exec ends with a sentence I wrote. "If exec gets two separate objects as globals and locals, the code will be executed as if it were embedded in a class definition." Would the following would be

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

2021-09-13 Thread Terry Reedy
On 9/13/2021 8:46 AM, Mostowski Collapse wrote: The Standard Python version of Dogelog runtime is annoyingly slow. So we gave it a try with andother Python, and it was 6x times faster. We could test GraalVM. We worked around the missing match in Python 3.8 by replacing it with if-then-else.

Re: Friday Finking: Contorted loops

2021-09-10 Thread Terry Reedy
On 9/10/2021 7:38 AM, Alan Gauld via Python-list wrote: But python complicates this tenet still further by adding an else clause to its loops. And complicating this still more is that these else clauses have almost exactly opposite effects. To the contrary... if...else executes the else part

Re: Friday Finking: Contorted loops

2021-09-09 Thread Terry Reedy
On 9/9/2021 5:36 PM, dn via Python-list wrote: Why does Python not have a repeat-until loop construct? 1. It is not needed. You covered that. 2. It is rare useful. For loops are common. While loops are occasional (nearly an order of magnitude less common than for loops. Fractional loop

Re: Problem with python

2021-09-04 Thread Terry Reedy
On 9/4/2021 2:27 PM, Igor Korot wrote: Hi, ALL, [code] igor@WaylandGnome ~/bakefile $ python Python 3.9.6 (default, Aug 8 2021, 17:26:32) [GCC 10.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. from distutils import sysconfig In 3.10, distutils and

How to include insertion order in dict equality

2021-09-04 Thread Terry Reedy
In https://bugs.python.org/issue45093, Michael Rans suggested adding a dict method that would include the insertion order in comparing dicts for equality. He wanted this for testing. The proposal is rejected because there are already multiple good methods. To make them more visible and

Re: on writing a while loop for rolling two dice

2021-08-28 Thread Terry Reedy
On 8/28/2021 8:00 AM, Hope Rouselle wrote: How should I write this? I'd like to roll two six-sided dice until I get the same number on both. I'd like to get the number of times I tried. Here's a primitive I'm using: --8<---cut here---start->8--- x, y =

Re: on the popularity of loops while and for

2021-08-28 Thread Terry Reedy
On 8/28/2021 9:31 AM, Hope Rouselle wrote: I'd like get a statistic of how often each loop is used in practice. My guess is that for loops are at least twice as common as while loops. I was trying to take a look at the Python's standard libraries --- those included in a standard installation

Re: Can't get rid of old version of python

2021-08-13 Thread Terry Reedy
On 8/13/2021 2:32 PM, Ciarán Ó Duibhín via Python-list wrote: Hi, On Windows 10, I uninstalled all previous versions of Python and installed v3.9.6. When I use the start menu option Python 3.9 (64-bit), I get the prompt "Python 3.9.6" as expected.  The same happens when I type "py" at the

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

2021-08-13 Thread Terry Reedy
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 instruments. I am producing the musical notes using the Beep function of Winsound Module(

Re: some problems for an introductory python test

2021-08-10 Thread Terry Reedy
On 8/10/2021 5:27 PM, Hope Rouselle wrote: Terry Reedy writes: On 8/10/2021 9:15 AM, Hope Rouselle wrote: 2.__add__(3) SyntaxError: invalid syntax But then I tried: (2).__add__(3) 5 Add a space is easier. 2 .__add__(3) 5 Hah. That's brilliant! So cool. Python is a little

Re: some problems for an introductory python test

2021-08-10 Thread Terry Reedy
On 8/10/2021 9:15 AM, Hope Rouselle wrote: 2.__add__(3) SyntaxError: invalid syntax But then I tried: (2).__add__(3) 5 Add a space is easier. >>> 2 .__add__(3) 5 >>> -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: CODING PAGE ACCESS

2021-08-07 Thread Terry Reedy
On 8/6/2021 11:34 PM, MICHAEL J W SMITH via Python-list wrote: I downloaded python. I selected it from the start menu. I clicked on:- Python 3-9New 'New' goes away after the first access I got:- IDLE (Python 3.9 64-bit) This is the included editor and enhanced interactive shell for writing

Re: Subtle difference between any(a list) and any(a generator) with Python 3.9

2021-07-29 Thread Terry Reedy
On 7/29/2021 5:39 AM, Unknown wrote: Hello Reading PEP572 about Python 3.9 assignment expressions, I discovered a subtle difference between any(a list) and any(a generator) see: >>> lines = ["azerty", "#qsdfgh", "wxcvbn"] >>> any((comment := line).startswith('#') for line in lines) True

Re: a simple question

2021-07-27 Thread Terry Reedy
On 7/26/2021 6:19 PM, Glenn Wilson via Python-list wrote: I recently downloaded the latest version of python, 3.9.6. Everything works except, the turtle module. I get an error message every time , I use basic commands like forward, backward, right and left. My syntax is correct:

Re: Python and Ubuntu versions

2021-07-24 Thread Terry Reedy
On 7/23/2021 5:11 PM, Mike Easter wrote: For those who are following this thread on a conventional news server, there are missing parts which came from the python-list mailing list instead. For those who prefer an nntp access to the mailing list, the corresponding group on news.gmane.io is

Re: Python and Ubuntu versions

2021-07-23 Thread Terry Reedy
On 7/23/2021 12:54 AM, אורי wrote: Hi, I have a production server with Ubuntu 18.04 LTS (currently upgraded to Ubuntu 18.04.5 LTS) and I use Python in virtualenv - currently Python 3.6.9. I'm using Django and I read that from Django 4.0, a minimal version of Python 3.8 will be required. I would

Re: zoneinfo not working properly

2021-07-18 Thread Terry Reedy
On 7/18/2021 1:44 AM, Shashank Jain wrote: I was using python 3.9.3 then zoneinfo library was working fine without any issues. but now after installing 3.9.6 there are problems. Ex. Using below code there no outputs. and further there are issues while working with timezones with zoninfo where

Re: Tkinter widgets for desktop database application

2021-07-14 Thread Terry Reedy
On 7/13/2021 4:24 PM, Rich Shepard wrote: I'm writing a couple of database applications that use tkinter, and not a web browser, for the UI and I'm still trying to determine the optimal way to do this. Individual tk and ttk widgets (LineEntry, Combobox, etc.) work for adding Do you mean

Re: Unfindable module: code

2021-07-03 Thread Terry Reedy
On 7/2/2021 5:44 AM, Chris Angelico wrote: I've just spent half an hour trying to figure out how to mess with the Python REPL (specifically, how to implement a line-by-line interactive interpreter within a larger app). It's rather hard to find it, but the key module is "code".

Re: IDLE is not working after Python installation .

2021-06-22 Thread Terry Reedy
On 6/22/2021 1:14 AM, Ayaana Soni wrote: I have installed python from your site. For what OS. After installation my IDLE doesn't work. How did you try to start it? Did you read the Using Python doc on the website? Can you start python? IDLE is not in my search list. On Windows

Re: Subpixel positioning on Tk canvas

2021-06-19 Thread Terry Reedy
On 6/19/2021 12:42 AM, Christian Gollwitzer wrote: Am 19.06.21 um 06:26 schrieb George Furbish: On Saturday, June 19, 2021 at 12:22:31 AM UTC-4, Christian Gollwitzer wrote: Am 19.06.21 um 02:03 schrieb George Furbish: Does Tk support interpolation/subpixel positioning of canvas elements?

Re: Tkinter problem

2021-06-19 Thread Terry Reedy
On 6/18/2021 2:28 AM, Liya Ann Sunny wrote: I am using Colab. How could solve this problem. import tkinter as Tk If you do this, import 'as tk'. from tkinter import * The second import overwrites the first since it imports tkinter.Tk as 'Tk'. Don't try to do both. import sys import

Re: Strange disassembly

2021-06-19 Thread Terry Reedy
On 6/18/2021 8:13 PM, Chris Angelico wrote: On Sat, Jun 19, 2021 at 9:50 AM Terry Reedy wrote: Why are there two separate bytecode blocks for the "raise Exception"? Because one block must POP_TOP and other must not. I'd have thought that the double condition would still be evalua

Re: Faker package

2021-06-18 Thread Terry Reedy
On 6/18/2021 6:24 PM, Rich Shepard wrote: I'm trying to use the faker package to generate data to load in a sample postgres database so I can learn how to use tksheet and psycopg2. The 8.8.1 documentation shows output on a root shell prompt (#), not a python prompt (>>>). It also has a

Re: Strange disassembly

2021-06-18 Thread Terry Reedy
On 6/18/2021 6:04 AM, Chris Angelico wrote: sys.version '3.10.0b2+ (heads/3.10:33a7a24288, Jun 9 2021, 20:47:39) [GCC 8.3.0]' def chk(x): ... if not(0 < x < 10): raise Exception 0 < x < 10 == 0 < x and x < 10, except that 'x' is evaluated once. not(_) == (not 0 < x) or (not x < 10)

Re: How Do I Get A Bug In Multiprocessing Fixed?

2021-06-18 Thread Terry Reedy
On 6/17/2021 5:02 PM, Michael Boom wrote: The below issue is pretty serious and it is preventing me from using a system I wrote on a larger scale. How do I get this bug fixed? Thanks. https://bugs.python.org/issue43329 Reduce your code to the minimum needed to exhibit the problem. Then run

Re: tkinter: tksheet

2021-06-16 Thread Terry Reedy
On 6/16/2021 12:31 PM, Rich Shepard wrote: Reading the doc for tksheet tells me that it allows me to modify cells (or entire rows) as well as display them. What I don't see is whether I can add a new row using tksheet Somewhat sparse doc at

Re: Behaviour of pop() for dictionaries

2021-06-14 Thread Terry Reedy
On 6/14/2021 5:18 PM, BlindAnagram wrote: I believe that consistency in how methods common to different types work is useful since it adds to the coherence of the language as a whole and avoids the need to remember special cases. Each collection class *is* a special case, and pop has to be

Re: curses apps on MS Windows?

2021-06-14 Thread Terry Reedy
On 6/13/2021 1:44 PM, Grant Edwards wrote: Does windows have a terminfo/termcap subsystem to deal with different terminal types? No. AFAIK Or do the apps only work with the built-in terminal windows implemented by command.com/cmd.exe? The windows console is implemented by separate code.

Re: Replacement for Mailman

2021-06-08 Thread Terry Reedy
On 6/8/2021 4:36 PM, Jon Ribbens via Python-list wrote: On 2021-06-08, Grant Edwards wrote: On 2021-06-08, Paul Bryan wrote: How about Mailman 3.x on Python 3.x? According to https://www.gnu.org/software/mailman/requirements.html mailman 3.x still requires Python 2.7 for the archiver and

Re: Replacement for Mailman

2021-06-08 Thread Terry Reedy
On 6/8/2021 3:08 PM, D'Arcy Cain wrote: Given that mailman still runs under 2.7 and that's being deprecated, It is not 'deprecated'. Rather, official python.org support, including security fixes, has ended. The same is true of 3.x up to 3.5, and 3.6 by the end of the year. I don't know if

Re: Posting code on stackoverflow

2021-06-05 Thread Terry Reedy
On 6/5/2021 5:36 PM, Rich Shepard wrote: I tried to post a question on stackoverflow.com which included a bunch of code (entered after clicking the box 'code'). I noticed that lines were wrapped but could not find how to expand the input box so they would not wrap. SO wouldn't let me post the

Re: Python app setup

2021-06-01 Thread Terry Reedy
On 5/31/2021 2:20 PM, Murali Pa wrote: Hi, I've installed latest version of Python 3.9.5 and downloaded for Windows. Once I click on the Python app, I'm getting command screen You are getting the Python interactive interpreter. This is different from the system command line

Re: python 3.9.5

2021-06-01 Thread Terry Reedy
On 5/31/2021 3:15 AM, said ganoune wrote: Just installed python 3.9.5 in my HP laptop, cant open it. Laptop hp I3 running with windows 10. You have to say a lot more. How did you install, with what options? How do you try to 'open' (start) it? What happens instead? -- Terry Jan Reedy --

Re: Definition of "property"

2021-05-30 Thread Terry Reedy
On 5/30/2021 12:57 PM, Irv Kalb wrote: I am doing some writing (for an upcoming book on OOP), and I'm a little stuck. I understand what a "property" is, how it is used and the benefits, but apparently my explanation hasn't made the light bulb go on for my editor. The editor is asking for a

Re: string storage [was: Re: imaplib: is this really so unwieldy?]

2021-05-26 Thread Terry Reedy
On 5/26/2021 12:07 PM, Chris Angelico wrote: On Thu, May 27, 2021 at 1:59 AM Jon Ribbens via Python-list wrote: On 2021-05-26, Alan Gauld wrote: On 25/05/2021 23:23, Terry Reedy wrote: In CPython's Flexible String Representation all characters in a string are stored with the same number

Re: imaplib: is this really so unwieldy?

2021-05-25 Thread Terry Reedy
On 5/25/2021 1:25 PM, MRAB wrote: On 2021-05-25 16:41, Dennis Lee Bieber wrote: In Python 3, strings are UNICODE, using 1, 2, or 4 bytes PER CHARACTER This is CPython 3.3+ specific. Before than, it depended on the OS. I believe MicroPython uses utf-8 for strings. (I don't recall

Re: Question for potential python development contributions on Windows

2021-05-24 Thread Terry Reedy
On 5/23/2021 10:05 PM, Terry Reedy wrote: On 5/23/2021 12:20 PM, pjfarl...@earthlink.net wrote: I asked this question on python-dev last week but did not get an answer.  If anyone here know the answer I would appreciate it. The Python Developers Guide specifically states to get VS2017

Re: Question for potential python development contributions on Windows

2021-05-23 Thread Terry Reedy
On 5/23/2021 12:20 PM, pjfarl...@earthlink.net wrote: I asked this question on python-dev last week but did not get an answer. If anyone here know the answer I would appreciate it. The Python Developers Guide specifically states to get VS2017 for developing or enhancing python on a Windows

Re: If you have Python Cookbook, 3rd ed.

2021-05-21 Thread Terry Reedy
On 5/19/2021 2:57 PM, Terry Reedy wrote: can you verify that the Algorithm chapter (near end in 2nd ed.) does *NOT* have an introduction by Tim Peters? (Info needed to verify timeit doc correction https://github.com/python/cpython/pull/21744) Thank you to 2 respondents. I have gone ahead

Python at SpaceX

2021-05-21 Thread Terry Reedy
https://stackoverflow.blog/tag/software-in-space/ has 4 links to interviews. 2 specifically mention Python. https://stackoverflow.blog/2021/05/11/testing-software-so-its-reliable-enough-for-space/ "Python “is for backend test running, build orchestration, and all our web servers are

Re: Unexpected Inheritance Problem

2021-05-20 Thread Terry Reedy
On 5/20/2021 2:53 PM, Grant Edwards wrote: On 2021-05-20, Mats Wichmann wrote: On 5/20/21 4:54 AM, Richard Damon wrote: On 5/20/21 3:24 AM, Peter Otten wrote: On 20/05/2021 06:00, Richard Damon wrote: class GedcomHead(Gedcom0Tag): """GEDCOM 0 HEAD tag""" def ___init___(self,

Re: If you have Python Cookbook, 3rd ed.

2021-05-20 Thread Terry Reedy
On 5/20/2021 1:14 PM, boB Stepp wrote: On Thu, May 20, 2021 at 11:43 AM Terry Reedy wrote: can you verify that the Algorithm chapter (near end in 2nd ed.) does *NOT* have an introduction by Tim Peters? (Info needed to verify timeit doc correction https://github.com/python/cpython/pull/21744

Re: Python install failing. Install log is available.

2021-05-20 Thread Terry Reedy
On 5/20/2021 7:06 AM, jan via Python-list wrote: This time it's simply not installing correctly when run as administrator, and not at all when run as non-administrator. As administrator, it's not installing for other users as I believe it should. It's certainly not adding the python path

If you have Python Cookbook, 3rd ed.

2021-05-20 Thread Terry Reedy
can you verify that the Algorithm chapter (near end in 2nd ed.) does *NOT* have an introduction by Tim Peters? (Info needed to verify timeit doc correction https://github.com/python/cpython/pull/21744) -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: How to build stable 3.9 branch from fork and clone of cpython

2021-05-18 Thread Terry Reedy
On 5/18/2021 3:00 AM, Chris Angelico wrote: On Tue, May 18, 2021 at 4:33 PM wrote: I am following the "Getting Started" section of the Python Developers Guide, but when I build the first version to verify everything builds, it builds branch 3.11. If I want to build and contribute to branch

Re: Standarize TOML?

2021-05-17 Thread Terry Reedy
On 5/17/2021 4:29 PM, Barry Scott wrote: On 15 May 2021, at 23:39, Jason C. McDonald wrote: During the Steering Committee presentation at PyCon, it was mentioned that no one has formally proposed TOML be added to the standard library (emphasis on formal). THe joke went forth that there

Re: Decoratored functions parsed differently by ast stdlib between 3.7 and 3.8

2021-05-03 Thread Terry Reedy
On 4/30/2021 11:07 PM, Mike Lee Williams wrote: On Friday, April 30, 2021 at 7:55:10 PM UTC-7, Mike Lee Williams wrote: This trivial bit of code is parsed differently by the ast module between python 3.7 and python 3.8. I'm trying to figure out what changed and why, and once I know that, if

Re: cant use certain commands, leading to more problems

2021-04-28 Thread Terry Reedy
On 4/28/2021 10:09 AM, Michael Torrie wrote: On 4/28/21 4:00 AM, Rasig Kosonmontri wrote: so i heard that the microsoft store's version of python tends to hide itself. and so i uninstalled it but when i typed in to a powershell it just directs me to the mircrosoft store's page i then disabled

Re: Not found in the documentation

2021-04-27 Thread Terry Reedy
On 4/26/2021 7:24 PM, elas tica wrote: Python documentation doesn't seem to mention anywhere what is the str value of an int: is it right? the same for float, Fraction, complex, etc? Not worth to be documented? Perphaps str(42) returns "forty two" or "XLII" or "101010" ... Python has this

Re: do ya still use python?

2021-04-22 Thread Terry Reedy
On 4/21/2021 6:07 AM, o1bigtenor wrote: On Tue, Apr 20, 2021 at 6:26 PM Terry Reedy wrote: On 4/20/2021 4:32 AM, Alan Gauld via Python-list wrote: We see the same trend on the tutor list, traffic has dropped off by a factor of 3-5 times what it was at its peak. And the questions

Re: do ya still use python?

2021-04-20 Thread Terry Reedy
On 4/20/2021 4:32 AM, Alan Gauld via Python-list wrote: We see the same trend on the tutor list, traffic has dropped off by a factor of 3-5 times what it was at its peak. And the questions are changing too, fewer basic things about loops and writing functions, more about specific library

Re: do ya still use python?

2021-04-20 Thread Terry Reedy
On 4/20/2021 5:44 PM, dn via Python-list wrote: Are there reasons why someone might prefer StackOverflow to this list? For programming questions with testable answers, generally yes. But I sometimes advise SO questioners to redirect questions here when more appropriate. Advantages

Re: Repair Install of 64 bit python

2021-04-17 Thread Terry Reedy
On 4/16/2021 10:15 AM, Cameron Simpson wrote: On 16Apr2021 13:13, Dan Ciprus (dciprus) wrote: Isn't the recommended python3 way of pip-ing stuff: python3 -m pip install ... .. just curious. If there's only one Python 3 installed then "pip3 install ..." _ought_ to be equivalent. However, in

Re: port to PDOS (especially mainframe)

2021-04-17 Thread Terry Reedy
On 4/16/2021 4:02 PM, Paul Edwards wrote: On Saturday, April 17, 2021 at 5:13:31 AM UTC+10, Paul Rubin wrote: Paul Edwards writes: I have succeeded in producing a Python 3.3 executable despite being built with a C library that only supports C90. Not surprising. CPython was restricted to C90

Re: translating external files type thing

2021-04-13 Thread Terry Reedy
On 4/13/2021 4:53 PM, Avi Gross via Python-list wrote: https://translate.google.com/?sl=is=en=translate Or, you could do it the hard way. Kidding aside, there may be a python module you can hand a file name or contents to and have it do much of the job using some API that may tap into the

Re: googletrans in python

2021-04-12 Thread Terry Reedy
On 4/12/2021 12:48 PM, Quentin Bock wrote: Can someone explain the basics of googletrans in python? You most likely want to install https://pypi.org/project/googletrans/ -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Style qeustion: Multiple return values

2021-04-12 Thread Terry Reedy
On 4/12/2021 4:29 AM, Steve Keller wrote: Just a short style question: When returning multiple return values, do you use parenthesis? E.g. would you write def foo(): return 1, 2 a, b = foo() or do you prefer def foo(): return (1, 2) (a, b) = foo()

Re: PyWin32 : When using Microsoft Word in code , opening it doesn't work

2021-04-08 Thread Terry Reedy
On 4/8/2021 6:35 PM, VISHESH MANGLA wrote: On Friday, April 9, 2021 at 4:02:37 AM UTC+5:30, Chris Angelico wrote: On Fri, Apr 9, 2021 at 8:26 AM VISHESH MANGLA wrote: Please help with this . https://github.com/mhammond/pywin32/issues/1689 Did you follow the instructions in the first line

Re: PyWin32 : When using Microsoft Word in code , opening it doesn't work

2021-04-08 Thread Terry Reedy
On 4/8/2021 6:22 PM, VISHESH MANGLA wrote: Please help with this . https://github.com/mhammond/pywin32/issues/1689 Closed by Mark Hammond as a support requrest rather than a bug report or feature request. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Yield after the return in Python function.

2021-04-05 Thread Terry Reedy
On 4/5/2021 3:32 PM, Chris Angelico wrote: On Tue, Apr 6, 2021 at 5:14 AM Terry Reedy wrote: Python *could* do the same for expresssions: load 'a' (in this case) once into a register or stack slot and use that value consistently throughout the expression. Replacing the eval

Re: Yield after the return in Python function.

2021-04-05 Thread Terry Reedy
On 4/5/2021 1:53 PM, Chris Angelico wrote: On Tue, Apr 6, 2021 at 3:46 AM Terry Reedy wrote: *While 'a and not a' == False in logic, in Python it might raise NameError. But that would still mean that it is never True, making 'yield 0' still unreachable. When I wrote that, I knew I might

Re: Yield after the return in Python function.

2021-04-05 Thread Terry Reedy
On 4/5/2021 8:25 AM, Bischoop wrote: The return suspends the function execution so how is it that in below example I got output: def doit(): return 0 yield 0 print(doit()) *Any* use of 'yield' in a function makes the function a generator function. This is a simple rule that

Re: About \033[m

2021-04-04 Thread Terry Reedy
On 4/4/2021 7:40 AM, Skip Montanaro wrote: Porque quando se usa formatac,ao de cores, o python nao consegue centralizar dentro da cadeia de 40 caracteres ? Tive que colocar 54 no parametro pois de alguma forma esta sendo considerado os caracteres de dentro do comando \033[m

Re: not able to download PyAudio

2021-04-02 Thread Terry Reedy
On 4/2/2021 6:09 AM, Benjamin Schollnick wrote: On Apr 2, 2021, at 4:40 AM, ᗷᑌᑎᑎY wrote: Hello everyone I am not able to download PyAudio. I tried by typing pip install in PyAudio in cmd but it show's no compatible version availbale. What should I do? . There seems to be some

Re: Unable to find 'edit with ide' option in the Context menu

2021-03-31 Thread Terry Reedy
On 3/31/2021 2:11 AM, Arjav Jain wrote: I am using the lastest version of python recently. But I am facing a problem with the python files, When I am right clicking any python file there is no option for `Edit with idle'. I have repaired the python installation too, but this

Re: Code Formatter Questions

2021-03-30 Thread Terry Reedy
On 3/29/2021 4:18 PM, dn via Python-list wrote: Very good point: I'd much rather you spent time helping me with a design/coding problem, helping debug, and/or reviewing/improving my code (and I for you); than we had not time left-over after spending many hours and much mental energy arguing

Re: XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-03-28 Thread Terry Reedy
On 3/27/2021 6:10 PM, lucas wrote: I hope it will solve it too. Do i need to do anything ? Review the patch by trying it out on your system. If necessary because you do not have a local cpython clone, backup installed 3.9 Lib/xmlrpc.py and hand-edit. Then report OS, python used, and

Re: XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-03-27 Thread Terry Reedy
On 3/27/2021 5:49 PM, Chris Angelico wrote: https://bugs.python.org/issue38038 It seems to have been intended as a pure refactor, so I'd call this a regression. Fortunately, it's not difficult to fix; but I'm not sure if there are any other subtle changes. The regression's already been

Re: Access to python37_d.lib

2021-03-27 Thread Terry Reedy
On 3/27/2021 11:34 AM, Kathleen Kennedy wrote: When matplotlib-cpp from GitHub is used to add graphics to a Visual Studio C++ Console application the following error is obtained: Cannot open python37_d.lib. The error was not resolved by re-installing python, including debug files. Any

Re: python documentation

2021-03-27 Thread Terry Reedy
On 3/27/2021 1:20 AM, pyt...@blackward.eu wrote: By the way, some months ago I started trying to migrate to Python 3 and gave up in favor of creating said compilation. Why? What was biggest roadblock? Compatibility of Python and its Packages decreased with V3 significantly. I don't

Re: python documentation

2021-03-27 Thread Terry Reedy
I would like to suggest adding "Blythooon" to the list under "Other parties have re-packaged CPython" listed here: https://www.python.org/download/alternatives/ Your title is misleading because you are proposing a change to a python.org website page, not the 'Python documentation'. That

Re: python documentation

2021-03-27 Thread Terry Reedy
I answered your actual question, in your original post, separately. But by posting here, and continuing to respond, you implicitly invited extended discussion with questions and opinions. On 3/26/2021 11:15 PM, pyt...@blackward.eu wrote: in response to Chris Angelico, a long-time python-list

Re: .title() - annoying mistake

2021-03-19 Thread Terry Reedy
On 3/19/2021 6:17 PM, Thomas Jollans wrote: From a quick scan of my (medium-sized) bookshelf, most publishers seem to agree that the thing to do is set the title in all caps. In my quick perusal, this is more true of 'popular' works, whereas 'academic' work are more likely to use titlecase.

Re: IDLE python

2021-03-13 Thread Terry Reedy
On 3/11/2021 10:28 AM, Yoosuf Oluwatosin via Python-list wrote: I have tried to startup my IDLE python severally but it keeps giving the following message: IDLE’s subprocess didn’t make connection. See the ‘Startup Failure’ section of the IDLE doc online at

Re: REPL peculiarity

2021-03-11 Thread Terry Reedy
On 3/11/2021 6:01 AM, Rob Cliffe via Python-list wrote: This is a valid Python program: def f(): pass print(f) But at the REPL: >>> def f(): pass ... print(f)   File "", line 2     print(f)     ^ SyntaxError: invalid syntax It doesn't seem to matter what the second line is.  In the REPL

Re: Application problems

2021-03-11 Thread Terry Reedy
On 3/10/2021 2:25 PM, Yoosuf Oluwatosin via Python-list wrote: I have downloaded python 3.9.2 on my hp laptop with windows 10 and tried opening both the normal python and the idle python on my pc but the norml keeps opening the modify, repair and uninstall page while the idle keeps giving a

Re: "unexpected argument"

2021-03-09 Thread Terry Reedy
On 3/9/2021 3:03 PM, Quentin Bock wrote: Error 1: Space Invaders.py:90: SyntaxWarning: "is" with a literal. Did you mean "=="? if bullet_state is "fire": Multiple string objects can have the same string value. Just because bullet_state == 'fire' does not mean that it *is* the particular

Re: Button placement

2021-03-09 Thread Terry Reedy
On 3/8/2021 9:08 PM, Bischoop wrote: I try for a while place the top button in a a middle of column=0 with span to column2 below so the button being centered to those, tried with canvas as well but with no success. Is someone with Tkinter experience able to advice what I could do? Say more

Please don't feed the trolls

2021-03-07 Thread Terry Reedy
Trolling, among other things, is fishing with a moving line, especially with a revolving lure, as from a moving boat. A troll, among other things, is that method or the lure used. On the internet, 'troll' is used metaphorically. A troll is a flashy post designed to catch peoples emotions

Re: Problem with printing statement when condition is false

2021-03-05 Thread Terry Reedy
On 3/4/2021 4:28 PM, Terry Reedy wrote: Quentin privately sent me 12 lines (which should have been posted here instead), which can be reduced to the following 4 that exhibit his bug. if a == b:     print('correct')     if a != b:     print('incorrect') The bug is a != b will never

Re: Problem with printing statement when condition is false

2021-03-04 Thread Terry Reedy
On 3/4/2021 3:15 PM, Terry Reedy wrote: On 3/4/2021 12:10 PM, Quentin Bock wrote: I won't paste the code into this because it's 164 lines so I will attach a file copy, The alternative to posting too much is to reduce your code to the minimum needed to exhibit the behavior you want to change

Re: Problem with printing statement when condition is false

2021-03-04 Thread Terry Reedy
On 3/4/2021 12:10 PM, Quentin Bock wrote: I won't paste the code into this because it's 164 lines so I will attach a file copy, The alternative to posting too much is to reduce your code to the minimum needed to exhibit the behavior you want to change. Doing so may reveal to you the

Re: Why assert is not a function?

2021-03-03 Thread Terry Reedy
On 3/1/2021 5:51 PM, Marco Sulla wrote: I have a curiosity. Python, as many languages, has assert as a keyword. Can't it be implemented as a function? Is there an advantage to have it as a keyword? One does not need to turn the test expression into a function. One does not need to wrap the

Re: error of opening Python

2021-02-26 Thread Terry Reedy
On 2/26/2021 12:55 AM, Mladen Gogala via Python-list wrote: On Thu, 25 Feb 2021 17:22:35 +, Botao Liu wrote: Dear Python team, This is my first time using Python, I tried to launch Python and it showed "Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)]

Re: Tkinter long-running window freezes

2021-02-25 Thread Terry Reedy
On 2/24/2021 6:53 PM, John O'Hagan wrote: On Wed, 24 Feb 2021 11:03:30 -0500 Terry Reedy wrote: On 2/24/2021 6:35 AM, John O'Hagan wrote: [...] I am trying this out on Windows 10, with a wider label (so I can move the window) and a button that changes when pressed, and a sequential counter

Re: Tkinter long-running window freezes

2021-02-24 Thread Terry Reedy
On 2/24/2021 6:35 AM, John O'Hagan wrote: Hi list I have a 3.9 tkinter interface that displays data from an arbitrary number of threads, each of which runs for an arbitrary period of time. A frame opens in the root window when each thread starts and closes when it stops. Widgets in the frame

Re: Idle Python issue

2021-02-24 Thread Terry Reedy
On 2/24/2021 5:32 AM, jak wrote: Hello everybody, I encounter a problem using Idle Python in Windows when I use utf8 characters longer than 2 bytes such as the character representing the smile emoticon: The problem is with 'astral' unicode characters, those not in the Basic Multilingual

Re: Deleting Python 3.8.5

2021-02-22 Thread Terry Reedy
On 2/22/2021 2:00 PM, Vinicius Costa Marques wrote: Hello there Python team, I’m having this problem were I installed Python 3.9.2 and then went to unistall 3.8.5 but here is the problem the version 3.8.5 dosen’t get deleted properly. The uninstall program says that everything worked but the

Re: Is there a way to subtract 3 from every digit of a number?

2021-02-20 Thread Terry Reedy
On 2/20/2021 12:02 PM, jak wrote: Il 20/02/2021 15:40, C W ha scritto: Hello everyone, I'm curious if there is a way take number and back each digit by 3 ? 2342 becomes 9019 8475 becomes 5142 5873 becomes 2540 The tricky part is that 2 becomes 9, not -1. Here's my toy example and what I

Re: use set notation for repr of dict_keys?

2021-02-20 Thread Terry Reedy
On 2/20/2021 2:25 AM, Wolfgang Stöcher wrote: Having a dict like   d = {'one': 1, 'two': 2} the representation of its keys   repr(d.keys()) gives   "dict_keys(['one', 'two'])" But since the keys are unique, wouldn't a representation using the set notation be more intuitive, i.e. what about

Re: I need some help interpreting this error

2021-02-17 Thread Terry Reedy
On 2/17/2021 10:40 AM, Chris Green wrote: I'm running this using Python 3.7 on a Linux system. Most of the time (i.e. for a couple of days now) the program has been satifactorily delivering mail messages, hundreds of them. However one mail message has provoked the following error:-

Re: IDLE

2021-02-16 Thread Terry Reedy
On 2/16/2021 11:52 AM, Mats Wichmann wrote: On 2/16/21 8:09 AM, Will Anderson wrote:     Hi, I hope you are having a good day. I have a small IDLE problem and     can’t seem to fix it. I have a .py file that I want to open using IDLE but     there is no option I have even tried totally wiping

Re: New Python implementation

2021-02-13 Thread Terry Reedy
On 2/12/2021 4:42 PM, Mr Flibble wrote: On 12/02/2021 02:45, Terry Reedy wrote: On 2/11/2021 5:33 PM, Mr Flibble wrote: On 11/02/2021 22:25, Dan Stromberg wrote: On Thu, Feb 11, 2021 at 2:00 PM Mr Flibble wrote: On 11/02/2021 21:13, Dan Stromberg wrote: Does your project have a name yet

Re: mutating a deque whilst iterating over it

2021-02-12 Thread Terry Reedy
On 2/11/2021 3:22 PM, duncan smith wrote: It seems that I can mutate a deque while iterating over it if I assign to an index, but not if I append to it. Is this the intended behaviour? Does the deque doc say anything about mutation while iterating? (Knowing the author of deque, I

Re: New Python implementation

2021-02-12 Thread Terry Reedy
On 2/11/2021 5:33 PM, Mr Flibble wrote: On 11/02/2021 22:25, Dan Stromberg wrote: On Thu, Feb 11, 2021 at 2:00 PM Mr Flibble wrote: On 11/02/2021 21:13, Dan Stromberg wrote: Does your project have a name yet?  I'd like to follow it through google alerts or an announcement mailing list.

Re: @unittest.skip doesn't print anything in Python <= 3.7

2021-02-12 Thread Terry Reedy
On 2/11/2021 3:25 PM, אורי wrote: Hi, https://stackoverflow.com/questions/66161394/unittest-skip-doesnt-print-anything-in-python-3-7 We are using Django with unittest. Some tests are skipped with the @unittest.skip decorator. But if I run the tests with Python 3.6 or 3.7, I get a number of

  1   2   3   4   5   6   7   8   9   10   >