[Python-Dev] Rework nntlib? (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Tue Sep 14 12:58:23 CEST 2010


On Tue, Sep 14, 2010 at 8:40 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:

The current module is broken in py3k. I suppose it is still usable for things like fetching group descriptions, but you can't e.g. read articles: http://bugs.python.org/issue7644

Also, http://bugs.python.org/issue9360 mentions that API changes were discussed by Brett and the OP at EuroPython (I wasn't there): “Change API methods to return strings instead of bytes. This breaks API compatibility, but given that the parameters need to be passed as strings and many of the returned values would need to be passed to other API methods, I consider the current API to be broken. I've discussed this with Brett at the EuroPython sprint, and he agrees.” My changes build on the patch proposed on this issue and add further enhancements.

Given the additional explanation, tidying up the API sounds like a reasonable way forward to me. Some notes either in the docs or on the wiki regarding how to port from the 2.x API to the 3.x API will be useful though.

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-Dev mailing list