[pypy-dev] make _ssl module compile

Lawrence Oluyede l.oluyede at gmail.com
Sat Jul 29 15:58:45 CEST 2006


I'm trying to feed the _ssl module (feature complete) to the ext.
compiler but I get a strange error I've never had before:

[translation:ERROR] Error:
[translation:ERROR]  AttributeError: 'CallEntry' object has no
attribute 'get_repr'
[translation] start debugger...
> /Users/rhymes/scc/pypy/pypy/rpython/rexternalobj.py(20)rtyper_makerepr()
-> return entry.get_repr(rtyper, self)
(Pdb) self
SomeCTypesObject(knowntype=CFunctionType, ownsmemory=False)
(Pdb) entry
<pypy.rpython.rctypes.afunc.CallEntry object at 0x202fd10>
(Pdb) locals()
{'entry': <pypy.rpython.rctypes.afunc.CallEntry object at 0x202fd10>,
'rtyper': <pypy.rpython.rtyper.RPythonTyper object at 0x172ef50>,
'self': SomeCTypesObject(knowntype=CFunctionType, ownsmemory=False)}
(Pdb) dir(entry)
['__class__', '__delattr__', '__dict__', '__doc__', '__eq__',
'__getattribute__', '__hash__', '__init__', '__metaclass__',
'__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',
'__repr__', '__setattr__', '__str__', '__weakref__',
'compute_annotation', 'compute_result_annotation', 'instance',
'specialize_call', 'type']

I took a look into rctypes.afunc and in fact there's no get_repr
(because there's no rfunc.py). What problem is that?

-- 
Lawrence
http://www.oluyede.org/blog



More information about the Pypy-dev mailing list