What is the --include-builtins for?

3 views
Skip to first unread message

Samuel Ytterbrink

unread,
Mar 17, 2011, 6:53:35 AM3/17/11
to py...@googlegroups.com
A the topic says. What is it for and why is it there. as i understand it should be --exclude-builtins.
I can't find usage more then for debugging.

--
//Samuel Ytterbrink

Ondrej Certik

unread,
Mar 17, 2011, 4:25:01 PM3/17/11
to py...@googlegroups.com, Samuel Ytterbrink
On Thu, Mar 17, 2011 at 3:53 AM, Samuel Ytterbrink <nep...@gmail.com> wrote:
> A the topic says. What is it for and why is it there. as i understand it
> should be --exclude-builtins.
> I can't find usage more then for debugging.

The idea is that you can generate just JS code with py2js, and include
py-builtins yourself in your project (once), or you can bundle it with
the generated code. The "--include-builtins" allows you to switch
between these two modes. "--exclude-builtins" would work too.

Ondrej

Reply all
Reply to author
Forward
0 new messages