Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1012 [python] duplicate package prefix

open
nobody
python (258)
5
2011-02-19
2009-05-07
Giuseppe Attardi
No

When called with

swig -c++ -python foo.i

on the enclosed file, swig Version 1.3.35 produces code with the wrong types
Parser::Parser::Enumerator and Parser::Parser::Token:

SWIGINTERN PyObject *_wrap_Parser_pipe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Parser::Parser *arg1 = (Parser::Parser *) 0 ;
Parser::Parser::Enumerator< Parser::Parser::Token * > *arg2 = 0 ;
Parser::Enumerator< Parser::Token * > result;

Notice that the problem disappears if method pipe() were defined to return void.

Discussion

  •  
    Attachments
  • Olly Betts
    Olly Betts
    2011-02-19

    • summary: duplicate package prefix --> [python] duplicate package prefix