December 2000
Intermediate to advanced
816 pages
16h 57m
English
So far you have seen a large number of Python code samples and may have noticed a few interesting details about variables and memory management. Highlighting some of the more conspicuous ones, we have:
Variables not declared ahead of time
Variable types are not declared
No memory management on programmers' part
Variable names can be “recycled”
del statement allows for explicit “deallocation”
In most compiled languages, variables must be declared before they are used. In fact, C is even more restrictive: Variables have to be declared at the beginning of a code block and before any statements are given. Other languages, like C++ and Java, allow “on-the-fly” declarations i.e., those ...
Read now
Unlock full access