Re: How to enter escape character in a positional string argument from the command line?

2022-12-20 Thread Chris Angelico
On Wed, 21 Dec 2022 at 15:28, Jach Feng wrote: > That's what I am taking this path under Windows now, the ultimate solution > before Windows has shell similar to bash:-) Technically, Windows DOES have a shell similar to bash. It's called bash. :) The trouble is, most people use cmd.exe instead.

Re: How to enter escape character in a positional string argument from the command line?

2022-12-20 Thread Jach Feng
ery...@gmail.com 在 2022年12月20日 星期二中午12:35:52 [UTC+8] 的信中寫道: > On 12/19/22, Jach Feng wrote: > > > > That's really good for Linux user! How about Windows? > In CMD, typing the "^" escape character at the end of a line ignores > the newline and prompts for "more" input. If you press enter again,

Re: How to enter escape character in a positional string argument from the command line?

2022-12-20 Thread Jach Feng
Thomas Passin 在 2022年12月20日 星期二上午11:36:41 [UTC+8] 的信中寫道: > On 12/19/2022 9:24 PM, Jach Feng wrote: > > Mark Bourne 在 2022年12月20日 星期二凌晨4:49:13 [UTC+8] 的信中寫道: > >> Jach Feng wrote: > >>> I have a script using the argparse module. I want to enter the string > >>> "step\x0A" as one of its

Friendly Reminder

2022-12-20 Thread Ethan Furman
Greetings, all! I know our stress levels can be higher than normal around the holidays, but let's please be patient with each other. Both conversations and debates will be smoother if we assume other posters are asking/debating in good faith (at least, until proven otherwise). Happy

ContextVars in async context

2022-12-20 Thread Marce Coll
Hi python people, hope this is the correct place to ask this! For a transactional async decorator I'm building I am using contextvars in order to know when a transaction is open in my current context. My understanding is that if given the following call stack A |- B | |- C |- D |- E If

[Python-announce] Wing Python IDE version 9.0.2

2022-12-20 Thread Wingware
Wing Python IDE version 9.0.2 has been released with more debugger optimizations and fixes for issues with match/case, 'python -m', and a few other usability and stability problems: Details: https://wingware.com/news/2022-12-20 Downloads: https://wingware.com/downloads == About Wing == Wing

Re: Fwd: Installation hell

2022-12-20 Thread Edmondo Giovannozzi
Personally I use winpython: https://winpython.github.io/ That have all the scientific packages already available. It can run without being installed and uses spyder as an IDE (for small projects it's ok). And, I can import pygame (even though I have not tested if everything works) in python

Re: Fwd: Installation hell

2022-12-20 Thread Thomas Passin
On 12/20/2022 8:11 AM, Eryk Sun wrote: [snipped] I know we're not here to bash Windows, but... drive letters really need to just die already. I don't foresee drive-letter names getting phased out of Windows. And Windows itself is unlikely to get phased out as long as Microsoft continues to

Re: Fwd: Installation hell

2022-12-20 Thread Eryk Sun
On 12/19/22, Chris Angelico wrote: > On Tue, 20 Dec 2022 at 09:12, Thomas Passin wrote: > >> @echo off >> setlocal >> : Find effective drive for this file. >> set ed=%~d0 >> path %ed%\python37\Scripts;%ed%\python37;%PATH% For reference, in case not everyone on the list knows what "%~d0" means,