On Tue, Jun 2, 2015, at 13:59, BartC wrote: > On 02/06/2015 18:00, Steven D'Aprano wrote: > > Again, this is not relevant. Javascript is dynamically typed, but some > > values are machine primitives and other values are objects. The interpreter > > keeps track of this at runtime. > > Javascript primitives include Number and String. > > What does Python allow to be done with its Number (int, etc) and String > types that can't be done with their Javascript counterparts, that makes > /them/ objects?
That's not really a fair question, because the Javascript object model is so different from the Python one. The point is that they are handled _the same_ as all other objects, not that they have some specific capability. -- https://mail.python.org/mailman/listinfo/python-list