How to build a vector from two floats?

Jonathan LaCour jal at faxnet.com
Thu Aug 31 10:41:01 EDT 2000


Well, the technical term for the python's dynamic typing system is "late
binding" ... so in this sense it is quite smalltalkish.  A "variable" is
essentially just a reference (read: pointer you can't touch) to any object
at all
(memory doesn't care about "type").  So, anything can be referenced by any
variable... which means that Python
does not have a static typing system.  But, at run-time, Python most
assuradly checks types, and quite carefully at that, to ensure that the
proper functions are performed for the intended action.  This is the "late
binding" thing.

Saying that Python isn't typed is like saying that Java and Python do not
have pointers.  Its simply a matter of terminology and understanding that
Java and Python are higher level languages than C and C++, which don't
abstract (hide) anything from the programmer for ease of development.

Enough on that,

Jon

In article <8oga7e$p2p$1 at netserv.univ-lille1.fr>, Calvelo Daniel
<dcalvelo at pharion.univ-lille2.fr> wrote:
> [me, rather cumbersome]
> : BTW Python isn't typed. At least not in the C++ sense.
> 
> [Erik Max Francis <max at alcyone.com>]
> : How's that?  Variables need not be declared with a type and need not
> : hold variables of the same type throughout their lifetime, but Python
> is
> : most assuredly typed, and is in fact relatively strongly typed.
> 
> Indeed. Please bear with me and stress the second sentence above. 
> 
> I wanted to write "it's typed in a Smalltalkish sense" but then thought
> it wasn't appropriate. "Dynamically typed" suits you? I know there was
> consensus around here on how to call Python's type features, but can't
> remember right now.
> 
> Anyway thanks for your reaction. My phrasing was indeed ambiguous.
> 
> DCA
> 
> -- Daniel Calvelo Aros
>      calvelo at lifl.fr




More information about the Python-list mailing list