Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement structure similar to glosario-r for define() #6

Open
ian-flores opened this issue Sep 9, 2020 · 1 comment
Open

Implement structure similar to glosario-r for define() #6

ian-flores opened this issue Sep 9, 2020 · 1 comment

Comments

@ian-flores
Copy link
Member

In glosario-r we do:

library(glosario)
define("data frame", lang = 'en')

But right now in glosario-py we do:

>>> from glosario import glosario
>>> glosario.set_language('en')
>>> glosario.define('data frame')

My proposal is for glosario-py to move to a structure similar to:

import glosario
glosario.define('data frame')

taking into consideration the class initialization that needs to happen if using the default glossary file.

@ian-flores
Copy link
Member Author

Following up on what I wrote above:

In R we have it structured such that the define function first checks if it has been passed a glosario object, if not then instantiates it's own (using the default) and then uses the define method that comes with this class. This is what we need to move on here in Python as it makes for a more seamless experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant