<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Prabhu,<br>
<br>
Prabhu Ramachandran wrote:<br>
<blockquote type="cite"
 cite="mid16137.50964.550088.466596@monster.linux.in">
  <pre wrap="">Hi,

Here is a simple test case for some code that gives me strange
behavior under (gcc version 2.95.4 20011002 (Debian prerelease)).
Atleast the behavior is not what I expected.
&lt;snip classes&gt;
What surprises me is the following:

 1. d is not an instance of test.Pure but if I did everything
    (i.e. defined all the classes) in pure Python thats the way it
    would be!

 2. test.func should work with anything that is derived from test.Pure
    but neither did 'd' nor did 'a' work but 'b' did work!

So what is going on here and what must I do to see the behaviour that
one would expect?  My apologies in advance if this is a silly mistake
that I've made but I can't see why the above does not work.  Perhaps
Pyste is doing something incorrectly but I cant see whats wrong there
either.

  </pre>
</blockquote>
<br>
<tt>Yeah, it is a Pyste bug. ;)<br>
The problem is related to AllFromHeader, if you explicitly export each
class the problem goes away. The inheritance tests didn't catch this
because they don't use AllFromHeader.<br>
It is fixed in CVS now, thanks for the report!<br>
<br>
Regards,<br>
Nicodemus.<br>
</tt>
</body>
</html>