New submission from Patrick Westerhoff <patrickwesterh...@gmail.com>:

Hey,

I would like to request the support of other HTTP methods (other than GET and 
POST) in urllib.request. While it’s actually simple enough to override the 
Request class to add such a possibility, I think it is far too simple to leave 
it out of the standard library.

I’ve attached a patch that adds the functionality with a simple `method` 
property. The `get_method` function then simply looks if a custom method was 
entered, and otherwise falls back to the default behaviour.

Thanks a lot!

Patrick Westerhoff

Btw. Being a Git user, I hope the patch is actually useful ;)

----------
components: Library (Lib)
files: urllib.patch
keywords: patch
messages: 145283
nosy: poke
priority: normal
severity: normal
status: open
title: Add support for other HTTP methods in urllib.request
type: feature request
versions: Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file23362/urllib.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13142>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to