[pypy-commit] pypy default: Don't make a subclass of NotImplementedError in RPython---it was unlikely to

arigo pypy.commits at gmail.com
Sat Aug 31 10:15:58 EDT 2019


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r97349:29b473bb1c55
Date: 2019-08-31 16:15 +0200
http://bitbucket.org/pypy/pypy/changeset/29b473bb1c55/

Log:	Don't make a subclass of NotImplementedError in RPython---it was
	unlikely to work correctly and is now forbidden

diff --git a/rpython/rlib/rawstorage.py b/rpython/rlib/rawstorage.py
--- a/rpython/rlib/rawstorage.py
+++ b/rpython/rlib/rawstorage.py
@@ -55,7 +55,7 @@
     misaligned_is_fine = False
 
 
-class AlignmentError(NotImplementedError):
+class AlignmentError(Exception):
     "Means that raw_storage_{get,set}item was used on unaligned memory"
 
 # Tweak?  It seems a reasonable value for any system out there: requiring


More information about the pypy-commit mailing list