show how to query implementation

This commit is contained in:
Nicholas Chammas 2016-11-21 11:24:42 -05:00
parent 2100fa8037
commit 264f4b7fce
1 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,14 @@ To explicitly use a specific implementation, refer to the appropriate module::
import jellyfish._jellyfish as pyjellyfish
import jellyfish.cjellyfish as cjellyfish
If you've already imported jellyfish and are not sure what implementation you
are using, you can check by querying ``jellyfish.library``::
if jellyfish.library == 'Python':
# Python implementation
elif jellyfish.library == 'C':
# C implementation
Indices and tables
==================