Patches for pyste
I have a patch that makes a couple of small changes to pyste. 1. Fix bug (??) where using pyste with gcc 4.0 and gccxml throws an exception for trying to convert NoneType to string in declarations.py. It looks like there are some cases where self.name can be none and in these cases the code fails. I modified the code to explicitly call str(self.name) when the name string is needed. It works fine for me. 2. Added feature of declaring an entire class final. I found myself often wanting to eliminate all polymorphic behavior for a class and the only way that is currently supported is to explicitly call final() on all virtual methods. This change allows you to call final() on a class as a whole. -Allen
Hi Allen. Allen Bierbaum wrote:
I have a patch that makes a couple of small changes to pyste.
1. Fix bug (??) where using pyste with gcc 4.0 and gccxml throws an exception for trying to convert NoneType to string in declarations.py. It looks like there are some cases where self.name can be none and in these cases the code fails. I modified the code to explicitly call str(self.name) when the name string is needed. It works fine for me.
2. Added feature of declaring an entire class final.
Patch applied. Thanks Allen! Regards, Bruno.
Nicodemus wrote:
Hi Allen.
Allen Bierbaum wrote:
I have a patch that makes a couple of small changes to pyste.
[snip]
Patch applied. Thanks Allen!
Regards, Bruno.
I am wondering about the future of pyste. Pyste uses gccxml and the last version of that I have been able to find is for gcc 3.x but gcc is now up to 4.0.2. Will pyste still be usable as gcc advances to new versions without corresponding updates to gccxml? Thanks Dave Riedel
gccxml compiles fine for gcc 4.0.2. Use the CVS version of gccxml "David P. Riedel" <driedel@printingforsystems.com> wrote: Nicodemus wrote:
Hi Allen.
Allen Bierbaum wrote:
I have a patch that makes a couple of small changes to pyste.
[snip]
Patch applied. Thanks Allen!
Regards, Bruno.
I am wondering about the future of pyste. Pyste uses gccxml and the last version of that I have been able to find is for gcc 3.x but gcc is now up to 4.0.2. Will pyste still be usable as gcc advances to new versions without corresponding updates to gccxml? Thanks Dave Riedel _______________________________________________ C++-sig mailing list C++-sig@python.org http://mail.python.org/mailman/listinfo/c++-sig
participants (4)
-
Allen Bierbaum -
David P. Riedel -
Nicodemus -
Tony Kirke