Everything is an object in python - object class and type class
random832 at fastmail.us
random832 at fastmail.us
Tue Jun 2 14:07:01 EDT 2015
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.
More information about the Python-list
mailing list