[Tutor] More or less final Chutes & Ladders

spir denis.spir at gmail.com
Sat Jan 4 14:13:13 CET 2014


On 01/04/2014 02:03 PM, Steven D'Aprano wrote:
>> >I understand that Python doesn't have composite objects, but neither does
>> >it dislallow my list of lists of ints and lists... which is, I imagine,
>> >very space efficient.
> I'm afraid I have no idea what you mean by Python not having "composite
> objects". What's a composite object?

It was "individual" composite objects: Python requires writing a custom type 
(class), as if there were tons of them.

Eg in Keith Winston's project he would have to define a class for the game tupe 
(ChutesAndLadder) even is there were only one of them (there are many because he 
collects stats, and the game is not really played, his app is more like 
instrumenting a game engine for automagic statistics collection; in a common 
case, there would be only one 'game' object).

Denis


More information about the Tutor mailing list