Re: [Tutor] dict['_find']

2011-02-20 Thread Max Niederhofer
Steven, Alan, Knacktus, thanks for your help. I was indeed very confused because I thought '_find' was calling something special instead of just being added to the dictionary (the confusion stemming from http://www.python.org/dev/peps/pep-0004/ where find module is obsolete). When I ran the code,

Re: [Tutor] dict['_find']

2011-02-20 Thread Knacktus
Am 20.02.2011 05:14, schrieb Max Niederhofer: Hello all, Hello Max, first post, please be gentle. I'm having serious trouble finding an alternative for the deprecated find module for dictionaries. The code (from Zed Shaw's Hard Way, exercise 40) goes something like this. Hope indentation sur

Re: [Tutor] dict['_find']

2011-02-20 Thread Alan Gauld
"Max Niederhofer" wrote first post, please be gentle. I'm having serious trouble finding an alternative for the deprecated find module for dictionaries. I think you are misunderstanding some of the terminology. There is no deprecated find module. You are not using any modules in your code. An

Re: [Tutor] dict['_find']

2011-02-19 Thread Steven D'Aprano
Max Niederhofer wrote: Hello all, first post, please be gentle. I'm having serious trouble finding an alternative for the deprecated find module for dictionaries. What find module for dictionaries? The code (from Zed Shaw's Hard Way, exercise 40) goes something like this. Hope indentation

[Tutor] dict['_find']

2011-02-19 Thread Max Niederhofer
Hello all, first post, please be gentle. I'm having serious trouble finding an alternative for the deprecated find module for dictionaries. The code (from Zed Shaw's Hard Way, exercise 40) goes something like this. Hope indentation survives. cities = {'CA': 'San Francisco', 'MI': 'Detroit', 'FL'