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

small note on examples syntax #99

Open
xkunglu opened this issue Jun 16, 2018 · 2 comments
Open

small note on examples syntax #99

xkunglu opened this issue Jun 16, 2018 · 2 comments

Comments

@xkunglu
Copy link

xkunglu commented Jun 16, 2018

thanks for this; its great
One note, in your examples you do >>> from dominate.tags import *

but your tag names ( and I understand you got them from html ) are so short and generic that they will almost invariably collide with temporary names - e.g. img, I use everywhere in local contexts.
I would suggest that you follow the example of numpy or matplotlib that in their documents define a customary shorthand for its library that generally does not collide with anything else (np, plt).
Its no big deal other than I doubt anyone not using your code exclusively will not find its own shorthand; and you could probably want to own it. For your stuff I'm using dt.

@hbgodseeker
Copy link

I totally agree

@dekoza
Copy link

dekoza commented Oct 1, 2022

import dominate.tags as dom 😉

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

3 participants