[C++-sig] export class constant

2009-12-10 Thread Gennadiy Rozental
Hi, Let's say I have string literal as static C++ class member: string Foo::abc = "ABC"; I'm exporting the class Foo. I'd like to export Foo::abc as well and be able to access it on Python side using similar interface: Foo.abc. Can I do this using Boost.Python? Gennadiy __

Re: [C++-sig] export class constant

2009-12-10 Thread troy d. straszheim
Gennadiy Rozental wrote: Hi, Let's say I have string literal as static C++ class member: string Foo::abc = "ABC"; I'm exporting the class Foo. I'd like to export Foo::abc as well and be able to access it on Python side using similar interface: Foo.abc. Can I do this using Boost.Python? Sur

Re: [C++-sig] extracting a numpy.int32 type

2009-12-10 Thread Nathan Huesken
Hi, Thanks for the reply. But still something, I would like to understand: If I want to convert numpy.float64 -> double, it works without problems. If I want to convert numpy.int32 -> int, I seem to need to register a new converte ... Why is this? Thanks! Nathan On Wed, Dec 09, 2009 at 04:29:

Re: [C++-sig] errors with multiple loading cryptopp as shared lib on Linux

2009-12-10 Thread Zooko O'Whielacronx
[cross-posted to the Crypto++ users mailing list and the Python C++-sig.] David wrote on the Crypto++ users mailing list: > We experience errors when trying to use cryptopp as shared lib from more than > one other shared libs. I struggled with this for a long time for the pycryptopp project and

Re: [C++-sig] extracting a numpy.int32 type

2009-12-10 Thread Ger van Diepen
We noticed things went fine as long as the sizes of the types at the Python and C++ side matched. On a 32bit system the behaviour differs from a 64bit machine. Because it fails for you, I guess you are working on a 64bit machine. It will be fine on a 32bit system. You'll also notice it always fa