[Tutor] Storing dictionary value, indexed by key, into a variable

Alan Gauld alan.gauld at btinternet.com
Fri Apr 4 01:36:53 CEST 2014


On 04/04/14 00:09, Alex Kleider wrote:
> On 2014-04-03 13:52, Danny Yoo wrote:
>
>> You'll also hear the term "Data Driven Programming" or "Table Driven
>> Programming" to refer to this idea.  For example:
>>
>>     http://blogs.msdn.com/b/ericlippert/archive/2004/02/24/79292.aspx
>>
>
> Does anyone know of a similar blog or tutorial (regarding Data Driven
> Programming) that uses Python for it's example(s)?  From what I've read
> so far, 'data driven' is a concept quite independent of 'object oriented'.

I don't know of a Python tutorial.
Yes, data driven is completely different to OO.

It is complementary in that you can data drive OO programs too.
And to some extent Python is an example of a data driven
design since function (and method) calls are associated with
dictionaries (ie Python namespaces).

hth
-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list