Re: [Python-3000] PEP 3102

2008-02-19 Thread Nick Coghlan
Adam Olsen wrote: > Whereas keyword-only arguments force explicitness (at the cost of > brevity), positional-only arguments do the opposite. The default > already allows us to choose brevity when appropriate, and the only > reason I see to force it is when there's a conflict with **kwargs. Which

Re: [Python-3000] detect file encoding or always use the default, UTF-8?

2008-02-19 Thread Guido van Rossum
Well, we're basically hoping that the folks who actually uses Python to read and write text files containing non-ASCII characters on OSX tell us what they want. At least that's where I am. Since I personally still live in a nearly-ASCII world (and probably always will), my own experience just doesn

Re: [Python-3000] PEP 3102

2008-02-19 Thread Arnaud Delobelle
On 19 Feb 2008, at 10:49, Nick Coghlan wrote: [...] >> Such obscure features warrant an obscure yet well-named decorator, >> not >> an obscure syntax that's difficult to get help on. > > It's difficult to handle this in a decorator, as the problem that > occurs is the underlying function repor

Re: [Python-3000] detect file encoding or always use the default, UTF-8?

2008-02-19 Thread Kumar McMillan
Hi. I was mainly confused about the auto-detection of the encoding. I thought I read something earlier that Python 3 will not try to guess encodings and that opening files will always use the sys encoding (defaulting to UTF-8) instead of guessing. Can't find where I read that so I might have made

[Python-3000] Library Change Request: change functools.partial.keywords to kwargs

2008-02-19 Thread hashcollision
I have a library change request: currently partial Objects created by functools.partial has the "keywords" attribute. However, the standard name for something like it is kwargs. I request that it be renamed to "kwargs". http://docs.python.org/lib/partial-objects.html __

Re: [Python-3000] Library Change Request: change functools.partial.keywords to kwargs

2008-02-19 Thread Brett Cannon
On Feb 19, 2008 11:54 AM, hashcollision <[EMAIL PROTECTED]> wrote: > I have a library change request: currently partial Objects created by > functools.partial has the "keywords" attribute. However, the standard > name for something like it is kwargs. I request that it be renamed to > "kwargs". -1

Re: [Python-3000] Library Change Request: change functools.partial.keywords to kwargs

2008-02-19 Thread Collin Winter
On Feb 19, 2008 11:54 AM, hashcollision <[EMAIL PROTECTED]> wrote: > I have a library change request: currently partial Objects created by > functools.partial has the "keywords" attribute. However, the standard > name for something like it is kwargs. I request that it be renamed to > "kwargs". Is

Re: [Python-3000] Library Change Request: change functools.partial.keywords to kwargs

2008-02-19 Thread Nick Coghlan
Brett Cannon wrote: > On Feb 19, 2008 11:54 AM, hashcollision <[EMAIL PROTECTED]> wrote: >> I have a library change request: currently partial Objects created by >> functools.partial has the "keywords" attribute. However, the standard >> name for something like it is kwargs. I request that it be re

Re: [Python-3000] PEP 3102

2008-02-19 Thread Jim Jewett
On 2/18/08, Adam Olsen <[EMAIL PROTECTED]> wrote: > On Feb 18, 2008 1:17 PM, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > > A typical use of positional-only arguments is with a function > > def f(x, y=1, **kwargs): > > ... > > > > where keyword arguments are potentially anything at all, i