[Lxml-checkins] r50504 - in lxml/trunk: . src/lxml
scoder at codespeak.net
scoder at codespeak.net
Fri Jan 11 09:50:51 CET 2008
Author: scoder
Date: Fri Jan 11 09:50:50 2008
New Revision: 50504
Modified:
lxml/trunk/ (props changed)
lxml/trunk/src/lxml/etree_defs.h
lxml/trunk/src/lxml/lxml.pyclasslookup.pyx
lxml/trunk/src/lxml/python.pxd
Log:
r3220 at delle: sbehnel | 2008-01-10 00:00:38 +0100
removed unused stuff
Modified: lxml/trunk/src/lxml/etree_defs.h
==============================================================================
--- lxml/trunk/src/lxml/etree_defs.h (original)
+++ lxml/trunk/src/lxml/etree_defs.h Fri Jan 11 09:50:50 2008
@@ -94,14 +94,7 @@
#endif
/* Redefinition of some Python builtins as C functions */
-#define isinstance(o,c) PyObject_IsInstance(o,c)
-#define issubclass(c,csuper) PyObject_IsSubclass(c,csuper)
-#define hasattr(o,a) PyObject_HasAttr(o,a)
-#define getattr(o,a) PyObject_GetAttr(o,a)
#define callable(o) PyCallable_Check(o)
-#define str(o) PyObject_Str(o)
-#define repr(o) PyObject_Repr(o)
-#define iter(o) PyObject_GetIter(o)
#define _cstr(s) PyString_AS_STRING(s)
#define _fqtypename(o) (((PyTypeObject*)o)->ob_type->tp_name)
Modified: lxml/trunk/src/lxml/lxml.pyclasslookup.pyx
==============================================================================
--- lxml/trunk/src/lxml/lxml.pyclasslookup.pyx (original)
+++ lxml/trunk/src/lxml/lxml.pyclasslookup.pyx Fri Jan 11 09:50:50 2008
@@ -1,7 +1,6 @@
from etreepublic cimport _Document, _Element, ElementBase
from etreepublic cimport ElementClassLookup, FallbackElementClassLookup
from etreepublic cimport elementFactory, import_lxml__etree
-from python cimport str, repr, isinstance, issubclass, iter
from python cimport _cstr
cimport etreepublic as cetree
cimport python
Modified: lxml/trunk/src/lxml/python.pxd
==============================================================================
--- lxml/trunk/src/lxml/python.pxd (original)
+++ lxml/trunk/src/lxml/python.pxd Fri Jan 11 09:50:50 2008
@@ -116,14 +116,7 @@
cdef extern from "etree_defs.h": # redefines some functions as macros
cdef int _isString(object obj)
- cdef int isinstance(object instance, object classes)
- cdef int issubclass(object derived, object superclasses)
cdef char* _fqtypename(object t)
- cdef int hasattr(object obj, object attr)
- cdef object getattr(object obj, object attr)
cdef int callable(object obj)
- cdef object str(object obj)
- cdef object repr(object obj)
- cdef object iter(object obj)
cdef char* _cstr(object s)
cdef object PY_NEW(object t)
More information about the lxml-checkins
mailing list