@@ -271,8 +271,6 @@ typecast_init(PyObject *module)
271271 /* insert the cast types into the 'types' dictionary and register them in
272272 the module dictionary */
273273 for (i = 0 ; typecast_builtins [i ].name != NULL ; i ++ ) {
274- Dprintf ("typecast_init: initializing %s" , typecast_builtins [i ].name );
275-
276274 t = (typecastObject * )typecast_from_c (& (typecast_builtins [i ]), dict );
277275 if (t == NULL ) { goto exit ; }
278276 if (typecast_add ((PyObject * )t , NULL , 0 ) < 0 ) { goto exit ; }
@@ -295,7 +293,6 @@ typecast_init(PyObject *module)
295293#ifdef HAVE_MXDATETIME
296294 if (0 == psyco_typecast_mxdatetime_init ()) {
297295 for (i = 0 ; typecast_mxdatetime [i ].name != NULL ; i ++ ) {
298- Dprintf ("typecast_init: initializing %s" , typecast_mxdatetime [i ].name );
299296 t = (typecastObject * )typecast_from_c (& (typecast_mxdatetime [i ]), dict );
300297 if (t == NULL ) { goto exit ; }
301298 PyDict_SetItem (dict , t -> name , (PyObject * )t );
@@ -307,7 +304,6 @@ typecast_init(PyObject *module)
307304
308305 if (0 > psyco_typecast_datetime_init ()) { goto exit ; }
309306 for (i = 0 ; typecast_pydatetime [i ].name != NULL ; i ++ ) {
310- Dprintf ("typecast_init: initializing %s" , typecast_pydatetime [i ].name );
311307 t = (typecastObject * )typecast_from_c (& (typecast_pydatetime [i ]), dict );
312308 if (t == NULL ) { goto exit ; }
313309 PyDict_SetItem (dict , t -> name , (PyObject * )t );
@@ -331,23 +327,15 @@ typecast_add(PyObject *obj, PyObject *dict, int binary)
331327
332328 typecastObject * type = (typecastObject * )obj ;
333329
334- Dprintf ("typecast_add: object at %p, values refcnt = "
335- FORMAT_CODE_PY_SSIZE_T ,
336- obj , Py_REFCNT (type -> values )
337- );
338-
339330 if (dict == NULL )
340331 dict = (binary ? psyco_binary_types : psyco_types );
341332
342333 len = PyTuple_Size (type -> values );
343334 for (i = 0 ; i < len ; i ++ ) {
344335 val = PyTuple_GetItem (type -> values , i );
345- Dprintf ("typecast_add: adding val: %ld" , PyInt_AsLong (val ));
346336 PyDict_SetItem (dict , val , obj );
347337 }
348338
349- Dprintf ("typecast_add: base caster: %p" , type -> bcast );
350-
351339 return 0 ;
352340}
353341
@@ -531,9 +519,6 @@ typecast_new(PyObject *name, PyObject *values, PyObject *cast, PyObject *base)
531519 obj = PyObject_GC_New (typecastObject , & typecastType );
532520 if (obj == NULL ) return NULL ;
533521
534- Dprintf ("typecast_new: new type at = %p, refcnt = " FORMAT_CODE_PY_SSIZE_T ,
535- obj , Py_REFCNT (obj ));
536-
537522 Py_INCREF (values );
538523 obj -> values = values ;
539524
@@ -560,8 +545,6 @@ typecast_new(PyObject *name, PyObject *values, PyObject *cast, PyObject *base)
560545
561546 PyObject_GC_Track (obj );
562547
563- Dprintf ("typecast_new: typecast object created at %p" , obj );
564-
565548 return (PyObject * )obj ;
566549}
567550
0 commit comments