[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Christopher Barker
> > I have currently 57 apps installed via pipx on my laptop, and the 57 > > environments take almost 1 GB already. That is a lot! But give conda a try: conda uses hard links, so no wasted space when packages are the same. I never understood the fear around version conflicts. I don’t know th

[Python-ideas] Re: Arrow functions polyfill

2021-02-24 Thread Mike Miller
On 2021-02-24 06:04, Random832 wrote: I have an objection to this: "def" is short for define, and a lambda does not produce a definition. This isn't just about saving keystrokes, and even if it were, saving only three would not be worth it for a syntax that is just as confusing as the existi

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Mike Miller
On 2021-02-24 02:52, Stéfane Fermigier wrote: > I have currently 57 apps installed via pipx on my laptop, and the 57 > environments take almost 1 GB already. I never understood the fear around version conflicts. Perhaps it has to do with the decline of sys-admin skills over the years? So, th

[Python-ideas] Re: Deprecate/change the behaviour of ~bool

2021-02-24 Thread Steven D'Aprano
On Wed, Feb 24, 2021 at 12:51:24PM -0500, Richard Damon wrote: > Of the unary, python implements them all, the possible opererators for > op a are: > > True > > False > > a > > not a Those who have read my posts over the years will realise that I enjoy being pedantic as much as the next guy

[Python-ideas] Re: Deprecate/change the behaviour of ~bool

2021-02-24 Thread Chris Angelico
On Thu, Feb 25, 2021 at 5:05 AM Richard Damon wrote: > > On 2/24/21 12:34 PM, Chris Angelico wrote: > > On Thu, Feb 25, 2021 at 4:28 AM Barry Scott wrote: > >> > >> > >> On 23 Feb 2021, at 22:10, Steven D'Aprano wrote: > >> > >> There are exactly 2**4 = 16 boolean operators of two variables. Pyt

[Python-ideas] Re: Deprecate/change the behaviour of ~bool

2021-02-24 Thread Richard Damon
On 2/24/21 12:34 PM, Chris Angelico wrote: > On Thu, Feb 25, 2021 at 4:28 AM Barry Scott wrote: >> >> >> On 23 Feb 2021, at 22:10, Steven D'Aprano wrote: >> >> There are exactly 2**4 = 16 boolean operators of two variables. Python >> only supports two: `and` and `or`. Plus a single unary operator

[Python-ideas] Re: Deprecate/change the behaviour of ~bool

2021-02-24 Thread Richard Damon
On 2/24/21 12:26 PM, Barry Scott wrote: > > >> On 23 Feb 2021, at 22:10, Steven D'Aprano > > wrote: >> >> There are exactly 2**4 = 16 boolean operators of two variables. Python  >> only supports two: `and` and `or`. Plus a single unary operator `not`  >> (out of four pos

[Python-ideas] Re: Deprecate/change the behaviour of ~bool

2021-02-24 Thread Chris Angelico
On Thu, Feb 25, 2021 at 4:28 AM Barry Scott wrote: > > > > On 23 Feb 2021, at 22:10, Steven D'Aprano wrote: > > There are exactly 2**4 = 16 boolean operators of two variables. Python > only supports two: `and` and `or`. Plus a single unary operator `not` > (out of four possible unary operators).

[Python-ideas] Re: Deprecate/change the behaviour of ~bool

2021-02-24 Thread Barry Scott
> On 23 Feb 2021, at 22:10, Steven D'Aprano wrote: > > There are exactly 2**4 = 16 boolean operators of two variables. Python > only supports two: `and` and `or`. Plus a single unary operator `not` > (out of four possible unary operators). What makes xnor so special that > you want it to be

[Python-ideas] Re: argparse: mutually inclusive arguments

2021-02-24 Thread David Mertz
On Wed, Feb 24, 2021 at 1:38 PM Paul Korir wrote: > I've been using the argparse library for a long time and one use case that > repeatedly shows us is the need to have two arguments appear together i.e > either both appear or none of them appear. I'll refer to these as *mutually > inclusive* in

[Python-ideas] Re: [Python-Dev] Re: Re: Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Random832
On Wed, Feb 24, 2021, at 09:08, Paul Moore wrote: > I don't use Linux much, and I'm definitely not familiar with Linux > distribution tools, but from what I can gather Linux distributions > have made the choices: > > 1. Write key operating system utilities in Python. > 2. Share the Python interpre

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Random832
I accidentally removed Python-Ideas from the recipient list while posting this reply. On Wed, Feb 24, 2021, at 09:16, Random832 wrote: > On Wed, Feb 24, 2021, at 06:27, Christian Heimes wrote: > > Separate directories don't prevent clashes and system breakage. But they > > provide an easy way to

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Paul Moore
On Wed, 24 Feb 2021 at 13:12, Antoine Pitrou wrote: > > On Wed, 24 Feb 2021 13:47:40 +0100 > Stéfane Fermigier wrote: > > The 3rd solution is probably the best of the 3, but the sharing mechanism > > still needs to be specified (and, if needed, implemented) properly. > > I wouldn't want to repeat

[Python-ideas] Re: Arrow functions polyfill

2021-02-24 Thread Random832
On Tue, Feb 23, 2021, at 17:01, Rob Cliffe via Python-ideas wrote: > As far as I know, there is no case of valid syntax using 'lambda' where > replacing 'lambda' by 'def' results in valid syntax. > Can anyone provide a counter-example? > If not, I would support allowing 'def' as an alternative to

[Python-ideas] Re: argparse: mutually inclusive arguments

2021-02-24 Thread Ricky Teachey
On Wed, Feb 24, 2021 at 8:39 AM Paul Korir wrote: > Hi All, > > I've been using the argparse library for a long time and one use case that > repeatedly shows us is the need to have two arguments appear together i.e > either both appear or none of them appear. I'll refer to these as *mutually > in

[Python-ideas] argparse: mutually inclusive arguments

2021-02-24 Thread Paul Korir
Hi All, I've been using the argparse library for a long time and one use case that repeatedly shows us is the need to have two arguments appear together i.e either both appear or none of them appear. I'll refer to these as *mutually inclusive* in contrast to the existing *mutual exclusive* feature

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Antoine Pitrou
On Wed, 24 Feb 2021 13:47:40 +0100 Stéfane Fermigier wrote: > On Wed, Feb 24, 2021 at 12:42 PM Paul Moore > wrote: > > > On Wed, 24 Feb 2021 at 10:55, Stéfane Fermigier > > wrote: > > > There is probably a clever way to reuse common packages (probably via > > clever symlinking) and reduce

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Stéfane Fermigier
On Wed, Feb 24, 2021 at 1:47 PM Stéfane Fermigier wrote: > > So IMHO the best way to implement solution 3 would be by using some > variant of the approach popularized by Nix (repository of immutable > packages + links to each virtualenv). > Another benefit of this kind of approach, besides spari

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Stéfane Fermigier
On Wed, Feb 24, 2021 at 12:42 PM Paul Moore wrote: > On Wed, 24 Feb 2021 at 10:55, Stéfane Fermigier wrote: > > There is probably a clever way to reuse common packages (probably via > clever symlinking) and reduce the footprint of these installations. > > Ultimately the problem is that a general

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Paul Moore
On Wed, 24 Feb 2021 at 10:55, Stéfane Fermigier wrote: > There is probably a clever way to reuse common packages (probably via clever > symlinking) and reduce the footprint of these installations. Ultimately the problem is that a general tool can't deal with conflicts (except by raising an error

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Christian Heimes
On 24/02/2021 11.52, Stéfane Fermigier wrote: > I love pipx and I'm glad it exists at this point because it make  > > The main issue is that each virtualenv takes space, lots of space. > > I have currently 57 apps installed via pipx on my laptop, and the 57 > environments take almost 1 GB already

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Stéfane Fermigier
On Wed, Feb 24, 2021 at 11:43 AM Henk-Jaap Wagenaar < wagenaarhenkj...@gmail.com> wrote: > >> > I've been using pyenv (on MacBooks to be fair, not Linux/Debian) and been > quite happy with that, and it basically does what Jonathan does manually: > clone the github repo and build python from scratc

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Stéfane Fermigier
I love pipx and I'm glad it exists at this point because it make The main issue is that each virtualenv takes space, lots of space. I have currently 57 apps installed via pipx on my laptop, and the 57 environments take almost 1 GB already. ~  cd .local/pipx/venvs/ ~/.l/p/venvs  ls abilian-to

[Python-ideas] Re: [Python-Dev] Re: Have virtual environments led to neglect of the actual environment?

2021-02-24 Thread Henk-Jaap Wagenaar
On Wed, 24 Feb 2021 at 10:18, Antoine Pitrou wrote: > On Tue, 23 Feb 2021 20:29:52 -0500 > Jonathan Goble wrote: > > > > I can't speak for distributors or maintainers [1], but I can speak for > > myself as a user. I run Debian testing (currently bullseye as that is > > preparing for release) as

[Python-ideas] Re: Deprecate/change the behaviour of ~bool

2021-02-24 Thread Steven D'Aprano
I don't think we want to add a new dunder just to make it easier for people to abuse bitwise operators instead of using the `!=` operator. -- Steve ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le