Re: Suggested python feature: allowing except in context maneger

2024-06-17 Thread j via Python-list


On 2024-06-13 23:49, Cameron Simpson via Python-list wrote:
On 13Jun2024 19:44, dieter.mau...@online.de  
wrote:

Why not use:
```
try:
 with open()...
   ...
except FileNotFoundError:
 ...
```


This is exactly what the OP was expressing dissatisfaction with.

I'm -1 on the idea myself - not every combination of things needs 
additional syntactic support, and doing stuff like merging an `except` 
with a `wtih` is bound to introduce some weird corner case, 
complicating its semantics.


I agree. If python allowed statement lambdas you could write what you 
want above within the language (albeit a bit clumsily). It's very handy.


jan



Cheers,
Cameron Simpson 

--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Installation hell

2022-12-19 Thread j via Python-list
I was unclear. I use the full path to the folder with the unzipped 
python-embedded. I shouldn't have said 'set'.


I have complained on here before about broken installs but got 
indifference. An installer should install stuff correctly (leaving a 
working environment). If it won't then give clear instructions on how to 
install manually then let us do it. A broken installer is like a road 
that just runs out.


Dismissals about 'lazy people' (for example) aren't helpful if you are 
trying to get some actual work done.


jan


On 19/12/2022 17:55, Thomas Passin wrote:

On 12/19/2022 12:28 PM, j via Python-list wrote:

I agree. Wasted too much time on last few installs.

It got to the point I downloaded python-embedded, unzipped it and set 
the path manually for my work (needed it as part of a compiler).


I don't set those paths.  If you have several different versions 
installed, who knows which one the path will find first?  Probably not 
the one you want.  Without paths to the script files, I need to set 
them temporarily, navigate to to the right directory first, or create 
a dedicated batch file, but at least I get the right ones that way.


I don't find it to be a problem.


It ain't good enough. And I like python.

jan

On 18/12/2022 11:50, Jim Lewis wrote:

I'm an occasional user of Python and have a degree in computer science.
Almost every freaking time I use Python, I go through PSH (Python Setup
Hell). Sometimes a wrong version is installed. Sometimes it's a path 
issue.

Or exe naming confusion: python, python3, phthon311, etc. Or library
compatibility issues - took an hour to find out that pygame does not 
work
with the current version of python. Then the kludgy PIP app and 
using a DOS
box under Windows with command prompts which is ridiculous. God only 
knows

how many novice users of the language (or even intermediate users) were
lost in the setup process. Why not clean the infrastructure up and 
make a
modern environment or IDE or something better than it is now. Or at 
least

good error messages that explain exactly what to do. Even getting this
email to the list took numerous steps.

-- A frustrated user



--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Installation hell

2022-12-19 Thread j via Python-list

I agree. Wasted too much time on last few installs.

It got to the point I downloaded python-embedded, unzipped it and set 
the path manually for my work (needed it as part of a compiler).


It ain't good enough. And I like python.

jan

On 18/12/2022 11:50, Jim Lewis wrote:

I'm an occasional user of Python and have a degree in computer science.
Almost every freaking time I use Python, I go through PSH (Python Setup
Hell). Sometimes a wrong version is installed. Sometimes it's a path issue.
Or exe naming confusion: python, python3, phthon311, etc. Or library
compatibility issues - took an hour to find out that pygame does not work
with the current version of python. Then the kludgy PIP app and using a DOS
box under Windows with command prompts which is ridiculous. God only knows
how many novice users of the language (or even intermediate users) were
lost in the setup process. Why not clean the infrastructure up and make a
modern environment or IDE or something better than it is now. Or at least
good error messages that explain exactly what to do. Even getting this
email to the list took numerous steps.

-- A frustrated user

--
https://mail.python.org/mailman/listinfo/python-list