[Python-ideas] Re: python -m quality of life improvements

2020-01-10 Thread Andrew Barnert via Python-ideas
On Jan 10, 2020, at 20:40, Steven D'Aprano wrote: > > On Fri, Jan 10, 2020 at 11:53:10PM -0300, Soni L. wrote: >> currently python -m requires you to cwd to the desired package root. I'd >> like to suggest the ability to python -m >> relative/path/to/package/root/module.submodule and python

[Python-ideas] Re: python -m anomaly Was: quality of life improvements

2020-01-10 Thread Steve Barnes
-Original Message- From: Steven D'Aprano Sent: 11 January 2020 04:39 To: python-ideas@python.org Subject: [Python-ideas] Re: python -m quality of life improvements On Fri, Jan 10, 2020 at 11:53:10PM -0300, Soni L. wrote: > currently python -m requires you to cwd to the desired

[Python-ideas] Re: python -m quality of life improvements

2020-01-10 Thread Steven D'Aprano
On Fri, Jan 10, 2020 at 11:53:10PM -0300, Soni L. wrote: > currently python -m requires you to cwd to the desired package root. I'd > like to suggest the ability to python -m > relative/path/to/package/root/module.submodule and python -m > /absolute/path/to/package/root/module.submodule What

[Python-ideas] Re: python -m quality of life improvements

2020-01-10 Thread Steven D'Aprano
On Fri, Jan 10, 2020 at 11:53:10PM -0300, Soni L. wrote: > currently python -m requires you to cwd to the desired package root. I'd > like to suggest the ability to python -m > relative/path/to/package/root/module.submodule and python -m > /absolute/path/to/package/root/module.submodule Oh, a

[Python-ideas] python -m quality of life improvements

2020-01-10 Thread Soni L.
currently python -m requires you to cwd to the desired package root. I'd like to suggest the ability to python -m relative/path/to/package/root/module.submodule and python -m /absolute/path/to/package/root/module.submodule thoughts? ___ Python-ideas

[Python-ideas] Re: Recommend UTF-8 mode on Windows

2020-01-10 Thread Kyle Stanley
> 1. Recommend it in the official document "Using Python on Windows" [2]. > 2. Show the UTF-8 mode status in the command line mode header [3] on Windows. > 3. Show the link to the UTF-8 mode document in the command line mode header too. > 4. Add checkbox to set "PYTHONUTF8=1" environment variable

[Python-ideas] Re: .zfill() to add trailing zeros if parameter is negative

2020-01-10 Thread MRAB
On 2020-01-10 17:06, Antonio Carlos Jorge Patricio wrote: H e l l o t o e v e r y o n e ! I d l i k e t o s u g g e s t . z f i l l ( ) t o h a v e a n o p t i o n a l p a r a m e t e r ( t h a t d e f a u l t s t o 0 ) s o t h e f i l l i n g c h a

[Python-ideas] .zfill() to add trailing zeros if parameter is negative

2020-01-10 Thread Antonio Carlos Jorge Patricio
H e l l o t o e v e r y o n e ! I d l i k e t o s u g g e s t . z f i l l ( ) t o h a v e a n o p t i o n a l p a r a m e t e r ( t h a t d e f a u l t s t o 0 ) s o t h e f i l l i n g c h a r a c t e r c o u l d b e c u s t o m i z e d . A n

[Python-ideas] Re: Recommend UTF-8 mode on Windows

2020-01-10 Thread Andrew Barnert via Python-ideas
On Jan 10, 2020, at 03:45, Inada Naoki wrote: > > Hi, all. > > I believe UTF-8 should be chosen by default for text encoding. Correct me if I’m wrong, but I think in Python 3.7 on Windows 10, the filesystem encoding is already UTF-8, and the stdio console files are UTF-8 (but under the

[Python-ideas] Recommend UTF-8 mode on Windows

2020-01-10 Thread Inada Naoki
Hi, all. I believe UTF-8 should be chosen by default for text encoding. * The default encoding for Python source file is UTF-8. * VS Code and even notepad uses UTF-8 by default. * Text files downloaded from the Internet is probably UTF-8. * UTF-8 is used when you use WSL regardless your system