[Python-checkins] r71722 - in python/trunk: Lib/test/test_descr.py Misc/NEWS Objects/frameobject.c Objects/object.c

Nick Coghlan ncoghlan at gmail.com
Sun Apr 19 01:26:24 CEST 2009


benjamin.peterson wrote:
> Author: benjamin.peterson
> Date: Sat Apr 18 22:12:47 2009
> New Revision: 71722
> 
> Log:
> try to initalize all builtin types with PyType_Ready to avoid problems like #5787

Ah, we almost did this when the __hash__ updates were giving us grief -
good to see that particularly game of whack-a-mole dealt with once and
for all.

>  	if (PyType_Ready(&PyByteArray_Type) < 0)
> -		Py_FatalError("Can't initialize 'bytes'");
> +		Py_FatalError("Can't initialize bytearray");
>  
>  	if (PyType_Ready(&PyList_Type) < 0)
> -		Py_FatalError("Can't initialize 'list'");
> +		Py_FatalError("Can't initialize list");

Very minor nit - the trailing " type" is missing from these two error
messages.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------


More information about the Python-checkins mailing list