sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

BR, TABLE automatically imported. #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The magic does help getting started, though I wonder if explicit rather than 
implicit would be better here?

e.g.

from brython.web import BR, TABLE

or 

from brython.web import *  # import all HTML accessors.

Original issue reported on code.google.com by stu.a...@gmail.com on 14 Dec 2012 at 1:58

GoogleCodeExporter commented 9 years ago
I understand your point, but it's a design decision. Brython is an 
implementation adapted to web environment, so users will almost always use the 
names of HTML tags
But to avoid tricky bugs, setting a value to the names (A, BR, I etc) should 
probably be forbidden

Original comment by pierre.q...@gmail.com on 16 Dec 2012 at 9:33

GoogleCodeExporter commented 9 years ago
Latest release fordbids setting a value to tag names. I consider the issue 
closed

Original comment by pierre.q...@gmail.com on 18 Dec 2012 at 9:29