Starting a new thread as the other email will likely get buried...

I had a lengthy conversation with Anthony today about the layout and we
made a bunch of updates to the wiki doc.

Everyone should take a look and provide feedback:
https://github.com/pyjs/pyjs/wiki/The-Grand-Schism

I will try to explain some of the decisions:

1. In an effort to keep a flatter namespace for users we decided that all
of the user modules should be at the root of pyjs. So that it is possible
to do things like:

from pyjs.dom import Div,Table, Tr, Td
from pyjs.ajax import AjaxComms
from pyjs.storage import LocalStorage

The above is similar to how Django has flattened their namespace.

2. Initially we had the runtimes and translator at the root as well but we
felt that since it's never meant to be imported by users it shouldn't
pollute the namespace. We moved it into core and then to really make the
point made it a private module with an underscore (this means that "from
pyjs import *" will not import _core).

3. The names of the two modules in _core are named to match up with
eventual pyjs sub commands.

pyjs run app.MyApp
pyjs translate app.MyApp


Finally, one thing that came up that I don't think has been discussed
before is what version of Python is stdlib supposed to target?

Another thing I would like to discuss is using the built-in python ast
library and eliminating the parsing code that's currently in pyjs. Less
code == less bugs. This would also make the translator code much simpler to
read and work on.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyjs-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to