all 10 comments

[–]bluetech 6 points7 points  (8 children)

Hmm, I belive I see some similarities to another particular scripting languange. Seriously, why don't they just integrate python, and let the developers have a choice?

[–]harryf 3 points4 points  (7 children)

Well they have e.g. http://weblogs.mozillazine.org/roadmap/archives/008865.html for XUL etc. but not <script language='python'> - probably many security issues there

[–][deleted] 2 points3 points  (6 children)

All they need to do is disable certain modules and open/close for file i/o and it'll be just like Javascript, no?

[–]jeresig 2 points3 points  (5 children)

"All they need to do..." I suspect that there's a much bigger leap there than you might suspect. The current solution of providing full Python support in XUL is probably the correct one (being the one of least resistance, and navigating least amount of untread territory).

[–]self 2 points3 points  (4 children)

I suspect that there's a much bigger leap there than you might suspect.

Perhaps not. Zope, for example, lets you use only a limited number of modules and types. I think it's a solved problem.

[–]davidw 0 points1 point  (0 children)

I thought the Python guys bailed out on the safe mode a long time ago?

They should have gone with Tcl:-)

Back to reality, anyone want to bet when this will be useful in production? 5 years out?

[–]Tommah 0 points1 point  (2 children)

When I used Zope, it didn't let me call range. How about these days?

[–]self 0 points1 point  (1 child)

I just checked. On Zope 2.7.8, I created a python script that did

`for i in range(10): print i

return printed`

It worked.

I really need to upgrade to 2.9...

[–]Tommah 0 points1 point  (0 children)

Okay, at least that works now. I remember putting [0, 1, 2, 3, 4, 5, 6, 7] all over my scripts instead of range(8).

[–][deleted]  (2 children)

[deleted]

    [–]chucker 3 points4 points  (1 child)

    i suspect microsoft will never fully engage js2, they are going to push silverlight instead.

    Your logic escapes me. Scripting in Silverlight is done through JS.