can't you just do the import in the except block?


On Mon, Apr 14, 2014 at 9:46 AM, Yoshiki Vázquez Baeza <
notifications@github.com> wrote:

> In skbio/maths/subsample.py:
>
> > @@ -126,3 +126,8 @@ def subsample(counts, n, replace=False):
> >                  result[p] += 1
> >
> >      return result
> > +
> > +try:
> > +    from _subsample import *
>
> I think somebody brought this up before, but is there a way to import the
> pure python if the cython implementation is available?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/biocore/scikit-bio/pull/262/files#r11590913>
> .
>