hashing strings to integers

Terry Reedy tjreedy at udel.edu
Fri May 23 15:10:04 EDT 2014


On 5/23/2014 6:27 AM, Adam Funk wrote:

> that.  The only thing that really bugs me in Python 3 is that execfile
> has been removed (I find it useful for testing things interactively).

The spelling has been changed to exec(open(...).read(), ... . It you use 
it a lot, add a customized def execfile(filename, ... to your site 
module or local utils module.

Execfile was a separate statement *only) because exec was a statememt. 
Once exec was was changed to a function taking arguments, that 
justification disappeared.

Terry Jan Reedy




More information about the Python-list mailing list