Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee='https://github.com/ambv'closed_at=<Date2011-04-27.16:14:36.291>created_at=<Date2011-03-25.10:08:18.271>labels= ['type-bug', 'docs']
title='configparser read_file now iterates over f, docs still say it calls readline'updated_at=<Date2017-01-29.23:48:17.244>user='https://github.com/larryhastings'
The documentation for configparser.RawConfigParser.read_file() states:
"Read and parse configuration data from the file or file-like object in f (only the readline() method is used)."
This was true in Python 3.1 and before. However in 3.2 the implementation of read_file changed. It no longer calls readline(). Instead, it iterates over the file object. Whoever made this change neglected to
fix the docs, or apparently
I've got the commit bit, so I'd be happy to fix this.
I'd like to add it to the What's New In Python 3.2 as well; there's a section about configparser changes that would be perfect. Is it permissible to change the What's New document ex post facto like this? (Adding rhettinger so he can answer this.)
By the same token, readfp is now deprecate in favor of the new spelling read_file. That change *is* mentioned in configparser. If I'm touching What's New In Python 3.2, mind if I add a mention of that too?