[Tutor] How to adjust a text file...

Kent Johnson kent37 at tds.net
Sat Sep 29 00:13:03 CEST 2007


GTXY20 wrote:
> Now my next challenge is to link a current table to this file and 
> replace values in the Product area based on the value - sort of like a 
> Global replace. Any hints as to where Python might have some sort of 
> lookup table functionality.

A dict is a lookup table (a hash table, specifically).
http://docs.python.org/tut/node7.html#SECTION007500000000000000000
http://docs.python.org/lib/typesmapping.html

Kent


More information about the Tutor mailing list