>
> I’ve found it odd that there doesn’t even seem to be acknowledgment among
> longtime python users that the current hodgepodge is pretty dysfunctional
> for new users.
>
I find this odd too. There have been a few comments along the lines of this
being a problem for newbies or for *some* people
On Sun, Mar 18, 2018 at 4:16 PM, George Fischhof wrote:
> Hi Jason,
>
> the status of os and shutil became this because of C functions in
> implementation (I got something similar answer before)
> ...
>
> What do you think, what would be a good way to solve this
> - add stuff from os to shutil
>
>
> Surely shutil is a *high* level modules.
> os is a low level module that shutil builds on.
> Adding the missing pieces to shutil would make it the place to go to do
> file operations.
> Pity its not called filelib.
>
Gotcha, thank you! shutil being a high level library complicates things...
So
Maybe this is obvious or I am missing something crucial, but I'm surprised
that this hasn't been discussed yet:
>From a user perspective, imo the problem is that users currently need three
modules (pathlib, os, and shutil) to have a nice interface for working
with, copying, and removing files. In
>
> Assertions should not be used as shorthands for "if cond: raise Exc"
> in the general case.
>
I'm just a lurker and usually I agree with why the suggested features
shouldn't be implemented, but I actually might chime in to pitch this one a
bit more -- and I think it can be done nicely without
First, I apologize for the poor post. Your corrections were exactly
correct: This is only relevant in the context of properties/descriptors,
and the property swallows the error message and it isn't printed to
screen. I should not be typing without testing.
> So... what precisely should be passed
Hi everyone,
A while back I had a conversation with some folks over on python-list. I
was having issues implementing error handling of `AttributeError`s using
`__getattr__`.
My problem is that it is currently impossible for a `__getattr__` in Python
to know which method raised the `AttributeError