[issue45442] Update `Virtual Environment` tutorial

2021-10-12 Thread Shivnaren Srinivasan

New submission from Shivnaren Srinivasan :

Priority: Low

The Virtual Environment tutorial page 
(https://docs.python.org/3/tutorial/venv.html) doesn't specify how we can 
revert, or deactivate the `venv`.

This is quite a popular question on SO:
https://stackoverflow.com/questions/990754/how-to-leave-exit-deactivate-a-python-virtualenv

``deactivate`` worked for me—this could be added to the docs?

Happy to submit a PR.

--
assignee: docs@python
components: Documentation
messages: 403722
nosy: docs@python, shivnaren
priority: normal
severity: normal
status: open
title: Update `Virtual Environment` tutorial
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 
<https://bugs.python.org/issue45442>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45442] Update `Virtual Environment` tutorial

2021-10-12 Thread Shivnaren Srinivasan


Shivnaren Srinivasan  added the comment:

In the same vein, the specified script for windows is the old .bat file, though 
PowerShell is now the preferred shell (and for which a .ps1 script is generated 
in the venv directory).

We could make the .ps1 the default, and specify the .bat as an alternative?

--
type: enhancement -> 

___
Python tracker 
<https://bugs.python.org/issue45442>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45442] Update `Virtual Environment` tutorial

2021-10-15 Thread Shivnaren Srinivasan


Change by Shivnaren Srinivasan :


--
pull_requests: +27268
pull_request: https://github.com/python/cpython/pull/28981

___
Python tracker 
<https://bugs.python.org/issue45442>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45442] Update `Virtual Environment` tutorial

2021-10-16 Thread Shivnaren Srinivasan


Change by Shivnaren Srinivasan :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45442>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45497] Argparse: Refactor '%' interpolation to f-strings

2021-10-16 Thread Shivnaren Srinivasan

New submission from Shivnaren Srinivasan :

I use `argparse` a lot, and I think it's great—going through the source code, I 
see all string interpolation is with the old printf `%` formatting.

AFAIK, f-strings are now the suggested method for interpolation (*after they 
were introduced, that is*).

Do we want to refactor the '%' instances to f-strings? Happy to submit a PR if 
so.

--
components: Library (Lib)
messages: 404108
nosy: rhettinger, shivnaren
priority: normal
severity: normal
status: open
title: Argparse: Refactor '%' interpolation to f-strings
type: enhancement
versions: Python 3.10, Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45497>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45497] Argparse: Refactor '%' interpolation to f-strings

2021-10-16 Thread Shivnaren Srinivasan


Shivnaren Srinivasan  added the comment:

Understood--thank you for the responses.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45497>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com