This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients steven.daprano, thautwarm, vtheno athena
Date 2018-10-03.10:01:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20181003100127.GK21220@ando.pearwood.info>
In-reply-to <1538560145.98.0.545547206417.issue34880@psf.upfronthosting.co.za>
Content
On Wed, Oct 03, 2018 at 09:49:06AM +0000, thautwarm wrote:
> Steven, this problem is quite interesting because it just allows users 
> to cause fatal errors without any invalid operations.

How is that different from every other case of shadowing a builtin?

len = 45
print(len("hello world"))

The ability to shadow builtins is a feature, not a bug.

I have no specific objection to changing assert so that it raises the 
actual honest-to-goodness AssertionError, but that would be an 
enhancement, not a bug-fix.

(To be honest, that's what I assumed it would do, until I tried it.)
History
Date User Action Args
2018-10-03 10:01:33steven.dapranosetrecipients: + steven.daprano, thautwarm, vtheno athena
2018-10-03 10:01:33steven.dapranolinkissue34880 messages
2018-10-03 10:01:33steven.dapranocreate