Re: [Python-Dev] [Python-ideas] Proposed addtion to url lib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Bill Janssen
Antoine Pitrou wrote: > Bill Janssen parc.com> writes: > > > > ``The content type "application/x-www-form-urlencoded" is inefficient > > for sending large quantities of binary data or text containing non-ASCII > > characters. > > The fact that it's "inefficient" (i.e. takes more bytes than an

Re: [Python-Dev] [Python-ideas] Proposed addtion to urllib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Steven D'Aprano
On Mon, 20 Apr 2009 05:26:59 am Bill Janssen wrote: > Mart Sõmermaa wrote: > > On Sun, Apr 19, 2009 at 2:06 AM, Nick Coghlan 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 s

Re: [Python-Dev] [Python-ideas] Proposed addtion to url lib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Antoine Pitrou
Bill Janssen parc.com> writes: > > ``The content type "application/x-www-form-urlencoded" is inefficient > for sending large quantities of binary data or text containing non-ASCII > characters. The fact that it's "inefficient" (i.e. takes more bytes than an optimal encoding scheme would) doesn't

Re: [Python-Dev] [Python-ideas] Proposed addtion to url lib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Bill Janssen
Antoine Pitrou wrote: > Bill Janssen parc.com> writes: > > > > This whole discussion seems a bit "rare and obscure" to me. I've built > > URLs for years without this method, and never felt the lack. What bugs me > > is the lack of a way to build multipart-formdata payloads, the only standard

Re: [Python-Dev] [Python-ideas] Proposed addtion to url lib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Antoine Pitrou
Bill Janssen parc.com> writes: > > This whole discussion seems a bit "rare and obscure" to me. I've built > URLs for years without this method, and never felt the lack. What bugs me > is the lack of a way to build multipart-formdata payloads, the only standard > way to send non-Latin1 strings a

Re: [Python-Dev] [Python-ideas] Proposed addtion to url lib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Bill Janssen
Antoine Pitrou wrote: > Bill Janssen parc.com> writes: > > > > Or even better, stop trying to use a mapping, and just make the "params" > > value a list of (name, value) pairs. > > You can even accept both a list of (name, value) pairs /and/ some **kwargs, > like > the dict constructor does.

Re: [Python-Dev] [Python-ideas] Proposed addtion to url lib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Antoine Pitrou
Bill Janssen parc.com> writes: > > Or even better, stop trying to use a mapping, and just make the "params" > value a list of (name, value) pairs. You can even accept both a list of (name, value) pairs /and/ some **kwargs, like the dict constructor does. It would be a pity to drop the user-frien

Re: [Python-Dev] [Python-ideas] Proposed addtion to urllib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Michael Foord
Bill Janssen wrote: Mart Sõmermaa wrote: On Sun, Apr 19, 2009 at 2:06 AM, Nick Coghlan 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 si

Re: [Python-Dev] [Python-ideas] Proposed addtion to urllib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Bill Janssen
Mart Sõmermaa wrote: > On Sun, Apr 19, 2009 at 2:06 AM, Nick Coghlan 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 signatu

Re: [Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-19 Thread Martin v. Löwis
> The installer still leaves PATH alone by default, doesn't it? Correct. However, people frequently set the path "by hand", so they would probably appreciate a python3 binary (and pythonw3? python3w?). Of course, those people could also manually copy/rename the executable. > Although I guess cho

Re: [Python-Dev] [Python-ideas] Proposed addtion to urllib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Steven Bethard
On Sun, Apr 19, 2009 at 1:38 AM, Mart Sõmermaa wrote: > On Sun, Apr 19, 2009 at 2:06 AM, Nick Coghlan 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. Th

Re: [Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-19 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benjamin Peterson wrote: > 2009/4/18 Nick Coghlan : >> Benjamin Peterson wrote: >>> 2009/4/18 Mitchell L Model : Some library files, such as pdb.py, begin with #!/usr/bin/env python In various discussions regarding some issues I s

Re: [Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-19 Thread Nick Coghlan
Martin v. Löwis wrote: >> I think that it's probably best to leave "python", "python2", and >> "python3" for the use of downstream distributors. ISTR that was what >> Guido concluded, in the discuss that led to Python 3 defaulting to >> altinstall---it wasn't just convenient because Python 3 is a

Re: [Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-19 Thread Paul Moore
2009/4/19 Steven Bethard : > On Sat, Apr 18, 2009 at 8:14 PM, Benjamin Peterson > wrote: >> 2009/4/18 Nick Coghlan : >>> I see a few options: >>> 1. Abandon the "python" name for the 3.x series and commit to calling it >>> "python3" now and forever (i.e. actually make the decision that Mitchell >

Re: [Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-19 Thread Martin v. Löwis
> I think that it's probably best to leave "python", "python2", and > "python3" for the use of downstream distributors. ISTR that was what > Guido concluded, in the discuss that led to Python 3 defaulting to > altinstall---it wasn't just convenient because Python 3 is a major > change, but that ex

Re: [Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-19 Thread Stephen J. Turnbull
Nick Coghlan writes: > 3. Change the shebang lines in Python standard library scripts to be > version specific and update release.py to fix them all when bumping the > version number in the source tree. +1 I think that it's probably best to leave "python", "python2", and "python3" for the use

Re: [Python-Dev] [Python-ideas] Proposed addtion to urllib.parse in 3.1 (and urlparse in 2.7)

2009-04-19 Thread Mart Sõmermaa
On Sun, Apr 19, 2009 at 2:06 AM, Nick Coghlan 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 quite straightforwa

Re: [Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-19 Thread Ned Deily
In article <49eab0c2.8040...@gmail.com>, Nick Coghlan wrote: > Steven Bethard wrote: > > On Sat, Apr 18, 2009 at 9:37 PM, Nick Coghlan wrote: > >> Note that such an approach would then require an altaltinstall command > >> in order to be able to install a specific version of python 3.x without >