Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Grant Edwards via Python-list
On 2025-01-17, Alan Gauld via Python-list wrote: > On 15/01/2025 00:41, Keith Thompson via Python-list wrote: >> Alan Gauld writes: >>> On 11/01/2025 14:28, Chris Green via Python-list wrote: I'm looking for Python packages that can help with text mode input, >>> >>> The standard package for

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Mats Wichmann via Python-list
On 1/17/25 12:03, Keith Thompson via Python-list wrote: Alan Gauld writes: On 15/01/2025 00:41, Keith Thompson via Python-list wrote: Alan Gauld writes: On 11/01/2025 14:28, Chris Green via Python-list wrote: I'm looking for Python packages that can help with text mode input, I haven't foll

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Keith Thompson via Python-list
Alan Gauld writes: > On 15/01/2025 00:41, Keith Thompson via Python-list wrote: >> Alan Gauld writes: >>> On 11/01/2025 14:28, Chris Green via Python-list wrote: I'm looking for Python packages that can help with text mode input, >>> >>> The standard package for this is curses which comes as

Re: Struggling to understand Callable type hinting

2025-01-17 Thread dn via Python-list
On 18/01/25 12:33, Ian Pilcher via Python-list wrote: I am making my first attempt to use type hinting in a new project, and I'm quickly hitting areas that I'm having trouble understanding.  One of them is how to write type hints for a method decorator. Here is an example that illustrates my con

Re: Strategies for avoiding having to use --break-system-packages with pip

2025-01-17 Thread Peter J. Holzer via Python-list
On 2025-01-14 11:32:35 +, Chris Green via Python-list wrote: > Use a virtual environment, what do I have to do then to make using > my program (that uses tkintertable) 'transparent', i.e. I just > want to be able to run the program from the command prompt like > any other progra

Struggling to understand Callable type hinting

2025-01-17 Thread Ian Pilcher via Python-list
I am making my first attempt to use type hinting in a new project, and I'm quickly hitting areas that I'm having trouble understanding. One of them is how to write type hints for a method decorator. Here is an example that illustrates my confusion. (Sorry for the length.) import collections.a

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Keith Thompson via Python-list
Alan Gauld writes: > On 11/01/2025 14:28, Chris Green via Python-list wrote: >> I'm looking for Python packages that can help with text mode input, > > The standard package for this is curses which comes as part > of the standard library on *nix distros. The thing about curses (which may or may n

is input from a pipe?

2025-01-17 Thread km via Python-list
Not a question, but a quick note about a problem that sometimes pops up in forums, that is how to detect on Linux if standard input (or any I/O stream) is via pipe. My suggestion is to check if the stream is a FIFO, if True it is a pipe, otherwise not a pipe The solution that sometimes is prop

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Alan Gauld via Python-list
On 15/01/2025 00:41, Keith Thompson via Python-list wrote: > Alan Gauld writes: >> On 11/01/2025 14:28, Chris Green via Python-list wrote: >>> I'm looking for Python packages that can help with text mode input, >> >> The standard package for this is curses which comes as part >> of the standard li