Closed GoogleCodeExporter closed 9 years ago
Hi Peter,
This too is the intended behavior of JES and therefore not a bug. Redefinition
of
existing identifiers is perfectly legal in Python (you can do this in the
interaction
pane too). When the program is loaded it is interpreted sequentially, just as
if it
were entered manually in the interaction pane. Thus, the final definition of
the
function is the one that is executed when called in the interaction pane. This
behavior is the same as other educational IDEs (e.g., IDLE and DrScheme).
Ultimately this is a difference between the dynamic type system and interpreted
nature of Python and a statically typed, compiled language like Java. Student
errors
like this come with the territory.
Cheers,
Brian
Original comment by bjdorn@gmail.com
on 14 Apr 2010 at 7:18
Original issue reported on code.google.com by
peter.de...@gmail.com
on 14 Apr 2010 at 6:39