This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Rotkraut
Recipients Rotkraut, demian.brecht, harobed, martin.panter, orsenthil, petri.lehtinen, piotr.dobrogost, pitrou, whitemice
Date 2015-02-15.13:10:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424005820.11.0.824852415466.issue12319@psf.upfronthosting.co.za>
In-reply-to
Content
The design goal for my implementation was compatibility.  My version can be used as a drop in replacement for the existing urllib's HTTPHandler.  The only thing that need to be changed in the calling code is that it must call build_opener() to select the chunked handler in the place of the default HTTPHandler.  After this, the calling code can use the returned opener in the very same way as usual.

I guess, switching to a push interface would require major changes in the calling code.  

In principle, you could certainly support both schemes at the same time: you could change the internal design to a push interface and than wrap this by a pull interface for the compatibility with existing code.  But I'm not sure whether this would be worth the effort.  If, as Piotr suggests, the current urllib is going to be replaced by urllib3, then I guess, its questionable if it makes sense to add  major design changes that are incompatible with existing code to the current standard lib.
History
Date User Action Args
2015-02-15 13:10:20Rotkrautsetrecipients: + Rotkraut, orsenthil, pitrou, harobed, petri.lehtinen, martin.panter, piotr.dobrogost, demian.brecht, whitemice
2015-02-15 13:10:20Rotkrautsetmessageid: <1424005820.11.0.824852415466.issue12319@psf.upfronthosting.co.za>
2015-02-15 13:10:20Rotkrautlinkissue12319 messages
2015-02-15 13:10:19Rotkrautcreate