Re: [Python-Dev] The socket HOWTO

2011-06-04 Thread Antoine Pitrou
Hello, On Sun, 29 May 2011 17:20:29 +0200 Martin v. Löwis mar...@v.loewis.de wrote: I would like to suggest that we remove the socket HOWTO (currently at http://docs.python.org/dev/howto/sockets.html) -1. I think there should be a Python-oriented introduction to sockets. You may have

Re: [Python-Dev] The socket HOWTO

2011-06-04 Thread Neil Hodgson
Antoine Pitrou: So what you're saying is that the text is mostly useless (or at least quite dispensable), but you think it's fine that people waste their time trying to read it? I found it useful when starting to write socket code. Later on I learnt more but, as an introduction, this

[Python-Dev] keyword-only arguments and varags

2011-06-04 Thread Benjamin Peterson
Currently, def f(*, kw, **kwargs): pass is valid syntax, but def f(*args, *, kw): pass is not. I don't see any mention of it in the PEP but perhaps there is a good reason this isn't allowed. It seems to be perfectly well-defined to me. -- Regards, Benjamin