[Pyrex] or None / not None

Samuel Thibault samuel.thibault at ens-lyon.org
Sun Feb 20 19:10:12 CET 2011


Hello,

I'm getting the following warning with 0.9.9:

brltty/Bindings/Python/brlapi.pyx:439:17: Warning: 'not None' will become the default in a future version of Pyrex. Use 'or None' to allow passing None.

Adding "or None" indeed makes it disappear, but it's refused by older
versions.  How can I change my source to something that works both with
older and newer versions of pyrexc?

Samuel



More information about the Pyrex mailing list