]> granicus.if.org Git - python/commit
Safety measures now that str and tuple are subclassable:
authorGuido van Rossum <guido@python.org>
Thu, 30 Aug 2001 04:43:35 +0000 (04:43 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 30 Aug 2001 04:43:35 +0000 (04:43 +0000)
commitc41418751fcef0a42f336ba91871827b45d558a7
treee046712a00e38e94b2a60f5f1a6298ac5eebd460
parent31bcff8815f263ab25ac9458f7b45975d8ebecbc
Safety measures now that str and tuple are subclassable:

If tp_itemsize of the basetype is nonzero, only allow empty __slots__
(declaring that no __dict__ should be added), and don't add a weakref
offset.
Objects/typeobject.c