[Pyrex] or None / not None
Stefan Behnel
stefan_ml at behnel.de
Sun Feb 20 22:14:57 CET 2011
Samuel Thibault, 20.02.2011 19:10:
> 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?
Any reason you can't just require the latest Pyrex? It's common to ship the
generated .c files in releases, so that normal users don't need Pyrex at all.
Stefan
More information about the Pyrex
mailing list