[Python-checkins] r79820 - python/trunk/Modules/_sre.c

Eric Smith eric at trueblade.com
Tue Apr 6 11:39:32 CEST 2010


Is there some way to test this?

benjamin.peterson wrote:
> Author: benjamin.peterson
> Date: Tue Apr  6 05:34:09 2010
> New Revision: 79820
> 
> Log:
> ready _sre types
> 
> Modified:
>    python/trunk/Modules/_sre.c
> 
> Modified: python/trunk/Modules/_sre.c
> ==============================================================================
> --- python/trunk/Modules/_sre.c	(original)
> +++ python/trunk/Modules/_sre.c	Tue Apr  6 05:34:09 2010
> @@ -3876,8 +3876,9 @@
>      PyObject* x;
>  
>      /* Patch object types */
> -    Pattern_Type.ob_type = Match_Type.ob_type =
> -        Scanner_Type.ob_type = &PyType_Type;
> +    if (PyType_Ready(&Pattern_Type) || PyType_Ready(&Match_Type) ||
> +        PyType_Ready(&Scanner_Type))
> +        return;
>  
>      m = Py_InitModule("_" SRE_MODULE, _functions);
>      if (m == NULL)
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
> 



More information about the Python-checkins mailing list