On Sun, Apr 19, 2009 at 2:06 AM, Nick Coghlan ncogh...@gmail.com wrote:
That said, I'm starting to wonder if an even better option may be to
just drop the kwargs support from the function and require people to
always supply a parameters dictionary. That would simplify the signature
to the
On Sun, Apr 19, 2009 at 1:38 AM, Mart Sõmermaa mrts.py...@gmail.com wrote:
On Sun, Apr 19, 2009 at 2:06 AM, Nick Coghlan ncogh...@gmail.com wrote:
That said, I'm starting to wonder if an even better option may be to
just drop the kwargs support from the function and require people to
always
Mart Sõmermaa mrts.py...@gmail.com wrote:
On Sun, Apr 19, 2009 at 2:06 AM, Nick Coghlan ncogh...@gmail.com wrote:
That said, I'm starting to wonder if an even better option may be to
just drop the kwargs support from the function and require people to
always supply a parameters dictionary.
On Mon, 20 Apr 2009 05:26:59 am Bill Janssen wrote:
Mart Sõmermaa mrts.py...@gmail.com wrote:
On Sun, Apr 19, 2009 at 2:06 AM, Nick Coghlan ncogh...@gmail.com
wrote:
That said, I'm starting to wonder if an even better option may be
to just drop the kwargs support from the function and
On Sat, Apr 18, 2009 at 3:41 PM, Nick Coghlan ncogh...@gmail.com wrote:
Yep - Guido has pointed out in a few different API design discussions
that a boolean flag that is almost always set to a literal True or False
is a good sign that there are two functions involved rather than just
one.
Mart Sõmermaa wrote:
On Sat, Apr 18, 2009 at 3:41 PM, Nick Coghlan ncogh...@gmail.com wrote:
Yep - Guido has pointed out in a few different API design discussions
that a boolean flag that is almost always set to a literal True or False
is a good sign that there are two functions involved
On Mon, Apr 13, 2009 at 12:56 AM, Antoine Pitrou solip...@pitrou.netwrote:
Mart Sõmermaa mrts.pydev at gmail.com writes:
Proposal: add add_query_params() for appending query parameters to an URL
to
urllib.parse and urlparse.
Is there anything to /remove/ a query parameter?
I'd say this
Antoine Pitrou wrote:
Mart Sõmermaa mrts.pydev at gmail.com writes:
On Mon, Apr 13, 2009 at 12:56 AM, Antoine Pitrou solipsis at pitrou.net
wrote:
Mart Sõmermaa mrts.pydev at gmail.com writes:
Proposal: add add_query_params() for appending query parameters to an URL
Michael Foord fuzzyman at voidspace.org.uk writes:
Weird or not, is there actually a *need* to remove query parameters?
Say you are filtering or sorting data based on some URL parameters. If the user
wants to remove one of those filters, you have to remove the corresponding query
parameter.
On Mon, Apr 13, 2009 at 5:31 PM, Antoine Pitrou solip...@pitrou.net wrote:
Say you are filtering or sorting data based on some URL parameters. If the
user
wants to remove one of those filters, you have to remove the corresponding
query
parameter.
This is a use-case and possibly a
Hi,
Senthil Kumaran wrote:
On Mon, Apr 13, 2009 at 5:31 PM, Antoine Pitrou solip...@pitrou.net wrote:
Say you are filtering or sorting data based on some URL parameters. If the user
wants to remove one of those filters, you have to remove the corresponding query
parameter.
This is a use-case
On Mon, Apr 13, 2009 at 2:29 AM, Mart Sõmermaa mrts.py...@gmail.com wrote:
On Mon, Apr 13, 2009 at 12:56 AM, Antoine Pitrou solip...@pitrou.net
wrote:
Mart Sõmermaa mrts.pydev at gmail.com writes:
Proposal: add add_query_params() for appending query parameters to an
URL to
On Mon, Apr 13, 2009 at 8:23 PM, Steven Bethard
steven.beth...@gmail.com wrote:
On Mon, Apr 13, 2009 at 2:29 AM, Mart Sõmermaa mrts.py...@gmail.com wrote:
On Mon, Apr 13, 2009 at 12:56 AM, Antoine Pitrou solip...@pitrou.net
wrote:
Mart Sõmermaa mrts.pydev at gmail.com writes:
Antoine Pitrou wrote:
Say you are filtering or sorting data based on some URL parameters. If the user
wants to remove one of those filters, you have to remove the corresponding query
parameter.
For an application like that, I would be keeping the
parameters as a list or some other structured
On Mon, Apr 13, 2009 at 1:14 PM, Mart Sõmermaa mrts.py...@gmail.com wrote:
On Mon, Apr 13, 2009 at 8:23 PM, Steven Bethard steven.beth...@gmail.com
wrote:
On Mon, Apr 13, 2009 at 2:29 AM, Mart Sõmermaa mrts.py...@gmail.com wrote:
As for the duplicate handling, I've implemented a threefold
The general consensus in python-ideas is that the following is needed, so I
bring it to python-dev to final discussions before I file a feature request
in bugs.python.org.
Proposal: add add_query_params() for appending query parameters to an URL to
urllib.parse and urlparse.
Implementation:
On Sun, Apr 12, 2009 at 3:23 PM, Jacob Holm j...@improva.dk wrote:
Hi Mart
add_query_params('http://example.com/a/b/c?a=b', b='d', foo='/bar')
'http://example.com/a/b/c?a=bb=dfoo=%2Fbar
http://example.com/a/b/c?a=bb=dfoo=%2Fbar'
Duplicates are discarded:
Why discard duplicates?
2009/4/12 Mart Sõmermaa mrts.py...@gmail.com:
The bad thing about reasoning about query strings is that there is no
comprehensive documentation about their meaning. Both RFC 1738 and RFC 3986
are rather vague in that matter.
FYI the HTML5 spec (http://whatwg.org/html5 ) may have a better
18 matches
Mail list logo