[Python-ideas] Re: Allow os.getenv to optionally convert result to boolean

2022-04-06 Thread Jeff Edwards
Agreed! On Wed, Apr 6, 2022 at 7:31 AM Eric V. Smith wrote: > On 4/6/2022 2:23 PM, Jeff Edwards wrote: > > I will say I think that last comment misses the point. It’s true that > environment variable boolean configuration is definitely common enough I > wouldn’t balk at some nor

[Python-ideas] Re: Allow os.getenv to optionally convert result to boolean

2022-04-06 Thread Jeff Edwards
I will say I think that last comment misses the point. It’s true that environment variable boolean configuration is definitely common enough I wouldn’t balk at some normalized methods for handling it. But, I think the point has been well made it’s an opinionated choice that Python can’t force on

[Python-ideas] Re: Allow os.getenv to optionally convert result to boolean

2022-03-30 Thread Jeff Edwards
There are many times where the variable ultimately isn’t defined by your software but by someone else’s, in which case something like an empty string maybe considered true or false (depending of if existence/emptiness is used for indicating the boolean value). So I think it’s important that it

[Python-ideas] Re: Syntax proposal of for..in..if in regular for loops

2022-03-30 Thread Jeff Edwards
As someone who has read the entirety of those thread and is not a core-dev but having some experience with breaking and non-breaking changes at scale, from my perspective: 1. This is a common syntax for an existing idea that is intuitive given other existing syntax (comprehensions) 2. This would

[Python-ideas] Re: Add an export keyword to better manage __all__

2021-04-13 Thread Jeff Edwards
So I think there are multiple behaviors that are being described here and I think there is validity in being able to potentially patch/modify definitions when absolutely necessary, but I wonder if there's room here for something in-between (also, I find the 'import export' or 'export import'

[Python-ideas] Re: Proposed class for collections: dynamicdict

2020-04-17 Thread Jeff Edwards
) return value ``` But I actually have used this quite a bit without significant issues and don't fully understand the layout issue described. It seems to work with dict equality as well, but I'm also super new to this list so maybe I'm just naive and don't understand the nuance. Cheers, -Jeff Edwards

[Python-ideas] Relative path for pyvenv.cfg:home

2020-01-27 Thread Jeff Edwards
Hi all! This is my first time proposing or submitting an idea, so I apologize if I've gone about all of this the wrong way. I've been using venv for lots of development but came upon a use-case where I wanted to extend the capabilities of it to support a home directory relative to the pyvenv.cfg