On Fri., 13 Sep. 2019, 7:21 am Steven D'Aprano, wrote:
> On Wed, Sep 11, 2019 at 09:34:07AM -0400, Daniel Holth wrote:
>
> > I didn't realize you could override __builtins__.str. That's interesting.
>
> Don't touch __builtins__ that's a CPython implementation detail. The
> public API is to ``impo
On 10Sep2019 10:42, Daniel Holth wrote:
[...]
I stopped using Python 3 after learning about str(bytes) by finding it
in
my corrupted database. [...]
Could you outline how this happened to you?
Cheers,
Cameron Simpson
___
Python-Dev mailing list --
On Wed, Sep 11, 2019 at 09:34:07AM -0400, Daniel Holth wrote:
> I didn't realize you could override __builtins__.str. That's interesting.
Don't touch __builtins__ that's a CPython implementation detail. The
public API is to ``import builtins`` and use that.
This override technique is called mon
Am 11.09.19 um 15:34 schrieb Daniel Holth:
It's different. One hint is that there's already an option to disable
the feature. The old style of error will occasionally reveal itself
with decode errors but the new style error happens silently, you
discover it somehow, then enable the -bb option