Re: or None / not None

Stefan Behnel <[email protected]> Sun, 20 Feb 2011 22:14:57 +0100
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
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 N=
one.
>
> 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 al=
l.

Stefan