You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: