[issue1673007] urllib2 requests history + HEAD support

2011-10-18 Thread Éric Araujo
Éric Araujo added the comment: Doc patch to fix a reST error and tweak a few things. -- Added file: http://bugs.python.org/file23448/urllib.request-doc.diff ___ Python tracker ___

[issue1673007] urllib2 requests history + HEAD support

2011-10-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Eric, The changes suggested in the patch are good for readability, I shall include them all. Thanks! -- ___ Python tracker ___

[issue1673007] urllib2 requests history + HEAD support

2011-10-17 Thread Éric Araujo
Éric Araujo added the comment: Attached patch changes one occurrence of ugly whitespace, changes “not x == y” to “x != y” and “not x in y” to “x not in y”. Senthil, feel free to apply none, some or all of these minor cleanups. -- Added file: http://bugs.python.org/file23424/urllib.re

[issue1673007] urllib2 requests history + HEAD support

2011-10-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: I have committed the patch accomodating the doc review comments which Ezio had mentioned. At the moment, the current way seems to be most backwards compatible one and did not want to delay it. Let's hope we get some feedback on this method arg. Thanks!

[issue1673007] urllib2 requests history + HEAD support

2011-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a0aafaa9bf5 by Senthil Kumaran in branch 'default': Fix closes issue 1673007 urllib.request to support HEAD requests with a new method arg. http://hg.python.org/cpython/rev/0a0aafaa9bf5 -- nosy: +python-dev resolution: -> fixed stage: co

[issue1673007] urllib2 requests history + HEAD support

2011-10-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Patrick, Lots of valid points. I had not looked at the RFC spec when I mentioned about data over request (GET) method, but was trying to derive the current functionality of module (so that users can have a seamless experience) with additional method="GET"

[issue1673007] urllib2 requests history + HEAD support

2011-10-11 Thread Patrick Westerhoff
Patrick Westerhoff added the comment: Senthil, I highly disagree with what you said: > The next problem comes when a user has specified both data and method="GET". > This becomes an invalid scenario, but a decision has been to taken as what > should be given preference? That is incorrect, RFC26

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Our discussion stemmed from this point. If you look at the change proposed, Request class is taking a new parameter by name 'method' and it is initialized to None: class Request: def __init__(self, url, data=None, headers={}, - origin_

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Ezio Melotti
Ezio Melotti added the comment: We have discussed the API a bit on IRC and these are the outcomes: 1) should method always have priority or should 'POST' always be used whenever data is passed? 2) if the method is e.g. 'GET' and data is passed, should an error be raised? 3) should Request.meth

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: ezio.melotti -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Éric Araujo
Éric Araujo added the comment: I made some more comments. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Ezio, I had probably overlooked this one. But It's a very interesting one for me. Do you mind if I commit it ? On Oct 10, 2011 7:20 PM, "Ezio Melotti" wrote: > > Ezio Melotti added the comment: > > Attached an updated patch that addresses the comments of

[issue1673007] urllib2 requests history + HEAD support

2011-10-10 Thread Ezio Melotti
Ezio Melotti added the comment: Attached an updated patch that addresses the comments of Éric in the review and adds an entry to the whatsnew. -- assignee: orsenthil -> ezio.melotti keywords: +needs review nosy: -BreamoreBoy stage: patch review -> commit review Added file: http://bugs

[issue1673007] urllib2 requests history + HEAD support

2011-10-09 Thread Patrick Westerhoff
Changes by Patrick Westerhoff : -- nosy: +poke ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1673007] urllib2 requests history + HEAD support

2011-03-28 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1673007] urllib2 requests history + HEAD support

2011-03-27 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1673007] urllib2 requests history + HEAD support

2011-03-27 Thread Denver Coneybeare
Denver Coneybeare added the comment: I decided to take a look at this old, forgotten issue and propose an updated patch. I like the submitter's idea that urllib.Request.__init__() should take a "method" parameter to override the return value of get_method(). I've created and attached a patc

[issue1673007] urllib2 requests history + HEAD support

2010-09-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: New features can only go in 3.2. From a quick look, the patch looks ok. -- nosy: +pitrou versions: -Python 2.7, Python 3.1 ___ Python tracker __

[issue1673007] urllib2 requests history + HEAD support

2010-09-02 Thread Éric Araujo
Éric Araujo added the comment: Only stable (2.7 and 3.1) and development versions (3.2) get bug fixes. -- ___ Python tracker ___ __

[issue1673007] urllib2 requests history + HEAD support

2010-09-02 Thread ipatrol
ipatrol added the comment: Can this be somehow implemented as a bugfix patch as well on other versions? -- nosy: +ipatrol versions: +Python 2.7, Python 3.1 ___ Python tracker

[issue1673007] urllib2 requests history + HEAD support

2010-08-09 Thread Jack Diederich
Changes by Jack Diederich : -- nosy: +jackdied ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1673007] urllib2 requests history + HEAD support

2010-08-03 Thread David Stanek
David Stanek added the comment: I have attached a patch to add support for HEAD, PUT and DELETE methods. The code review is available here: http://codereview.appspot.com/1696061. I have started working on another patch that validates that the method is properly set. For instance, it doesn't m

[issue1673007] urllib2 requests history + HEAD support

2010-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: Seems to be +1 for HEAD, -1 for history, keyword says easy so should be feasable for 3.2. :) -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker

[issue1673007] urllib2 requests history + HEAD support

2009-12-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is a discussion and explanation from the submitter on what is meant by history of requests. http://mail.python.org/pipermail/python-dev/2007-March/072069.html -- ___ Python tracker

[issue1673007] urllib2 requests history + HEAD support

2009-12-20 Thread Éric Araujo
Éric Araujo added the comment: If you know you want an HEAD request, it means you already know it will be an HTTP request, so why not directly use httplib or httplib2 instead of urllib? Aside: s/sended/sent/ Cheers -- nosy: +Merwok ___ Python track

[issue1673007] urllib2 requests history + HEAD support

2009-12-20 Thread Ezio Melotti
Ezio Melotti added the comment: +1 for HEAD -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue1673007] urllib2 requests history + HEAD support

2009-12-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Having a HEAD request for urllib2 might be a good idea. I shall use this patch to add the functionality. But, having a history support in the urllib2 module is not a good idea IMO. It is best left to the clients which might use urllib2. -- __

[issue1673007] urllib2 requests history + HEAD support

2009-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1673007] urllib2 requests history + HEAD support

2009-10-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1673007] urllib2 requests history + HEAD support

2009-04-22 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1673007] urllib2 requests history + HEAD support

2009-02-12 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +jjlee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1673007] urllib2 requests history + HEAD support

2009-02-12 Thread Daniel Diniz
Daniel Diniz added the comment: Patch has tests too, might need updating. :) -- nosy: +ajaksu2, orsenthil stage: -> patch review type: -> feature request versions: +Python 2.7 -Python 2.6 ___ Python tracker _