[C++-sig] Pyste 1.31.0 and exceptions

Dan Halbert halbert at bbn.com
Mon Mar 8 21:01:58 CET 2004


  >From: "Niall Douglas" <s_sourceforge at nedprod.com>
  >On 8 Mar 2004 at 12:12, Dan Halbert wrote:
  >
  >> foo = AllFromHeader("foo.h")
  >
  >Last time I heard AllFromHeader() was still not working.

Actually, it seems to work pretty well for me, though I promise to be
careful. But even if I change my example to what is below, and don't
use AllFromHeader(), I get the same error as I listed previously. --Dan

==============================================
foo.pyste:

##foo = AllFromHeader("foo.h")
Function("g", "foo.h")
Class("C", "foo.h")
==============================================
foo.h:

void g() throw (int);                       // line #1
class C { public: void f() throw (int); };  // line #2
==============================================

  ...
  File "/d4m/tools/i686ling/Python-2.3.3/lib/python2.3/site-packages/Pyste/declarations.py", line 226, in Exceptions
    return " throw(%s)" % ', '.join (self.throws)
TypeError: sequence item 0: expected string, FundamentalType found





More information about the Cplusplus-sig mailing list