Re: why sqrt is not a built-in function?

2021-01-16 Thread Michael F. Stemper
On 15/01/2021 17.17, dn wrote: On 16/01/2021 11.40, Michael F. Stemper wrote: On 15/01/2021 16.01, Chris Angelico wrote: On Sat, Jan 16, 2021 at 8:56 AM Michael F. Stemper wrote: On 15/01/2021 15.26, Stefan Ram wrote: "Michael F. Stemper" writes: On 15/01/2021 14.01, Stefan Ram wrote: _

Issues with running python in Command prompt

2021-01-16 Thread mohsen shooshtari
hello, Thanks in advance for your consideration. I install python3.8 and then install Pycharm but when I call python in Command prompt, followed by ( 'python' is not recognized as an internal or external command, operable program or batch file. what should I do to fix this problem? -- https://mai

Re: HEKLP

2021-01-16 Thread Grant Edwards
Perhaps once you get your 'K' key fixed it'll work better. -- https://mail.python.org/mailman/listinfo/python-list

Re: Exploring terminfo

2021-01-16 Thread Alan Gauld via Python-list
On 15/01/2021 21:41, Dennis Lee Bieber wrote: > On Fri, 15 Jan 2021 13:19:26 +, Alan Gauld via Python-list > declaimed the following: > >> So the native C functions work as expected. >> Why does the Python wrapper not? > > Are you running Python from a plain command shell, or from some

Re: Issues with running python in Command prompt

2021-01-16 Thread OmPs
On Sat, 16 Jan 2021, 23:51 mohsen shooshtari, wrote: > hello, > Thanks in advance for your consideration. I install python3.8 and then > install Pycharm but when I call python in Command prompt, followed by > ( 'python' > is not recognized as an internal or external command, operable program or >

Re: Issues with running python in Command prompt

2021-01-16 Thread Mats Wichmann
On 1/16/21 8:30 AM, mohsen shooshtari wrote: hello, Thanks in advance for your consideration. I install python3.8 and then install Pycharm but when I call python in Command prompt, followed by ( 'python' is not recognized as an internal or external command, operable program or batch file. what s

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread DonK
On Tue, 12 Jan 2021 09:26:18 +1100, Chris Angelico wrote: >On Tue, Jan 12, 2021 at 7:41 AM DonK wrote: >> Hi, I'm thinking about learning Python but I'm 74 years old and will >> very likely not ever have a programming job again. I used to program >> in Visual Basic, C\C++, Delphi, etc. and some

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread DonK
On Mon, 11 Jan 2021 21:56:48 -0800, Paul Rubin wrote: >DonK writes: >> My problem is that I don't understand how Python programs are >> used. (i.e user input and output) Is Python mainly used for backends? >> I've seen some Python gui frameworks like Tkinter, PyQt, etc > >I would say at leas

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread 2QdxY4RzWzUUiLuE
On 2021-01-16 at 15:42:44 -0500, DonK wrote: > Yes, Windows. Iterating open windows with the Window's API is easy the > hard (very hard) part is sending keystrokes to those windows to Save > them. It's very tricky because the timing is critical. > > You have to use one of those "spy" utilities

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread DonK
On Tue, 12 Jan 2021 10:16:47 +0400, Abdur-Rahmaan Janhangeer wrote: >Greetings, > >Web with Python is really easy to get started with, here >is a simple endpoint with a framework called Flask > >from flask import Flask >app = Flask(__name__) > >@app.route('/') >def hello_world(): > return 'Hell

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread DonK
On Sat, 16 Jan 2021 14:56:37 -0600, 2qdxy4rzwzuui...@potatochowder.com wrote: >On 2021-01-16 at 15:42:44 -0500, >DonK wrote: > >> Yes, Windows. Iterating open windows with the Window's API is easy the >> hard (very hard) part is sending keystrokes to those windows to Save >> them. It's very trick

Re: Exploring terminfo

2021-01-16 Thread Greg Ewing
On 16/01/21 4:17 pm, Chris Angelico wrote: But somewhere along the way, you're finding that there's a problem, which implies that SOMETHING is calling on C stdio. That thing, surely, should be the thing responsible for flushing? The C library using stdio has no way of knowing that something els

Python not Running

2021-01-16 Thread Logan Cranford
I downloaded Python but when I try to run Idle it says it is not found and I should try to redownload it. When I try to do that all that comes up is a page that says modify, repair or uninstall. I have repaired several times but it still gives me the same message. Can anyone help me with this? --

Re: Exploring terminfo

2021-01-16 Thread Chris Angelico
On Sun, Jan 17, 2021 at 10:36 AM Greg Ewing wrote: > > On 16/01/21 4:17 pm, Chris Angelico wrote: > > But somewhere along the way, you're finding that there's a problem, > > which implies that SOMETHING is calling on C stdio. That thing, > > surely, should be the thing responsible for flushing? >

Re: Exploring terminfo

2021-01-16 Thread Greg Ewing
On 17/01/21 12:40 pm, Chris Angelico wrote: This is true. However, at some point, the boundary is crossed from Python into the C library. Something, at that point, knows. It's very common to have a flush option available, so it should be used. I'm wondering whether the problem in this particula

Re: Exploring terminfo

2021-01-16 Thread Chris Angelico
On Sun, Jan 17, 2021 at 11:06 AM Greg Ewing wrote: > > On 17/01/21 12:40 pm, Chris Angelico wrote: > > This is true. However, at some point, the boundary is crossed from > > Python into the C library. Something, at that point, knows. It's very > > common to have a flush option available, so it sho

Re: count consecutive elements

2021-01-16 Thread Dan Stromberg
On Thu, Jan 14, 2021 at 2:01 PM Wolfram Hinderer via Python-list < python-list@python.org> wrote: > Am 13.01.2021 um 22:20 schrieb Bischoop: > > I want to to display a number or an alphabet which appears mostly > > consecutive in a given string or numbers or both > > Examples > > s= ' aabskaaabad

Re: Exploring terminfo

2021-01-16 Thread Eryk Sun
On 1/16/21, Greg Ewing wrote: > On 17/01/21 12:40 pm, Chris Angelico wrote: >> This is true. However, at some point, the boundary is crossed from >> Python into the C library. Something, at that point, knows. It's very >> common to have a flush option available, so it should be used. > > I'm wonde

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread 2QdxY4RzWzUUiLuE
On 2021-01-16 at 17:46:13 -0500, DonK wrote: > On Sat, 16 Jan 2021 14:56:37 -0600, 2qdxy4rzwzuui...@potatochowder.com > wrote: > > >On 2021-01-16 at 15:42:44 -0500, > >DonK wrote: > >> For example, I've found a need to parse text documents quite a number > >> of times over the years. Basic/VB

Re: Python not Running

2021-01-16 Thread Terry Reedy
On 1/16/2021 3:55 PM, Logan Cranford wrote: I downloaded Python but when I try to run Idle it says it is not found and From where? try how? what is 'it'? Read the section of https://docs.python.org/3/using/index.html appropriate for your system, likely Windows. I should try to redownload it.

Using plotly and getting "This site can't be reached"

2021-01-16 Thread Chuck Untulis
The Chrome browser on the machine shows "127.0.0.1 refused to connect" for various urls of the form 127.0.0.1:x where x are numbers like 64981, 65029,... About once in 20-40 attempts, the graphs appear. I ran the same code on a different machine and it created the plots in the Chrome brows

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread Terry Reedy
On 1/16/2021 9:17 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: A bare minimum skeleton might look something like this: with open(filename) as f: for line in f.readlines(): handle_one_line(f) f.readlines() reads the entire file into a list of lines (strings). If y