Barry Smith <[email protected]> writes:

>> On Apr 25, 2017, at 1:36 PM, Zhang, Hong <[email protected]> wrote:
>> 
>> PetscBool is indeed an int. So there is nothing wrong. PETSc does not use 
>> bool in order to support C89.
>
>   Yes, but in Python using a bool is more natural. For example in Fortran 
> PETSc uses the Fortran logical as the PetscBool

Right, there is no requirement or even convenience in the Python native
type having the same bit representation.

Attachment: signature.asc
Description: PGP signature

Reply via email to