Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-07 Thread Georg Brandl
On 06/07/11 05:20, brett.cannon wrote: http://hg.python.org/cpython/rev/fc282e375703 changeset: 70695:fc282e375703 user:Brett Cannon br...@python.org date:Mon Jun 06 20:20:36 2011 -0700 summary: Remove some extraneous parentheses and swap the comparison order to prevent

Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-07 Thread Antoine Pitrou
On Tue, 07 Jun 2011 08:57:10 +0200 Georg Brandl g.bra...@gmx.net wrote: On 06/07/11 05:20, brett.cannon wrote: http://hg.python.org/cpython/rev/fc282e375703 changeset: 70695:fc282e375703 user:Brett Cannon br...@python.org date:Mon Jun 06 20:20:36 2011 -0700 summary:

Re: [Python-Dev] The socket HOWTO

2011-06-07 Thread Łukasz Langa
Wiadomość napisana przez C McL w dniu 2011-06-07, o godz. 00:15: I cannot even remember ever visiting the wiki. FWIW neither can I. The Wiki link on the front page is below Jobs and Merchandise so it's easy to miss it altogether ;-) -- Best regards, Łukasz Langa Senior Systems Architecture

Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-07 Thread M.-A. Lemburg
Georg Brandl wrote: On 06/07/11 05:20, brett.cannon wrote: http://hg.python.org/cpython/rev/fc282e375703 changeset: 70695:fc282e375703 user:Brett Cannon br...@python.org date:Mon Jun 06 20:20:36 2011 -0700 summary: Remove some extraneous parentheses and swap the

Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-07 Thread Eli Bendersky
Swapping the comparison order here seems a bit inconsistent to me. There are lots of others around (e.g. len == 0 in the patch context below). Why is this one so special? I think that another developer even got told off once for these kinds of comparisons. I hope the Clang warning is only

Re: [Python-Dev] [Python-checkins] cpython: Issue #12040: Expose a new attribute `sentinel` on instances of

2011-06-07 Thread Nick Coghlan
On Tue, Jun 7, 2011 at 6:22 PM, Antoine Pitrou solip...@pitrou.net wrote: On Tue, 7 Jun 2011 12:47:37 +1000 Nick Coghlan ncogh...@gmail.com wrote: We should probably follow this model for threading.Thread.ident as well (i.e. throwing an exception rather than returning None if the thread

Re: [Python-Dev] The socket HOWTO

2011-06-07 Thread Glyph Lefkowitz
On Jun 5, 2011, at 3:35 PM, Martin v. Löwis wrote: And that's all fine. I still claim that you have to *understand* sockets in order to use it properly. By this, I mean stuff like what is a TCP connection? how is it established?, how is UDP different from TCP?, when data arrives, what layers

Re: [Python-Dev] The socket HOWTO

2011-06-07 Thread Eli Bendersky
snip Yes, these are all excellent concepts to be familiar with.  But the word socket (and the socket HOWTO) refers to a specific way to interface with those concepts, the Berkeley socket API: http://en.wikipedia.org/wiki/Berkeley_sockets.  Which you don't have to know anything about if you're

Re: [Python-Dev] AIX 5.3 - Build of Python 2.7.1

2011-06-07 Thread Amaury Forgeot d'Arc
Hi, 2011/6/6 Anurag Chourasia anurag.choura...@gmail.com: ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 559) in object Parser/grammar1.o: A quick Google search reveals a probable issue with gcc on recent AIX systems. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46072 A lot of users report

Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-07 Thread Guido van Rossum
On Tue, Jun 7, 2011 at 2:47 AM, Eli Bendersky eli...@gmail.com wrote: Swapping the comparison order here seems a bit inconsistent to me. There are lots of others around (e.g. len == 0 in the patch context below). Why is this one so special? I think that another developer even got told off

Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-07 Thread Alexander Belopolsky
.. I agree with Georg: if ('u' == typecode) is not well readable, since you usually put the variable part on the left and the constant part on the right of an equal comparison. I appear to be in the minority here, but this particular example does not strike me as egregiously unreadable. To

[Python-Dev] Byte filenames in the posix module on Windows

2011-06-07 Thread Victor Stinner
Hi, Last november, we decided (right?) to deprecate bytes filenames in the posix module on Windows in Python 3.2 and drop the support in 3.3: see Removal of Win32 ANSI API thread on python-dev. Python 3.2 has been released, so we should shift the versions numbers. I would like to take care

Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-07 Thread David Malcolm
On Tue, 2011-06-07 at 11:03 +0200, M.-A. Lemburg wrote: Georg Brandl wrote: On 06/07/11 05:20, brett.cannon wrote: http://hg.python.org/cpython/rev/fc282e375703 changeset: 70695:fc282e375703 user:Brett Cannon br...@python.org date:Mon Jun 06 20:20:36 2011 -0700

Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-07 Thread R. David Murray
On Tue, 07 Jun 2011 17:42:17 -0400, Alexander Belopolsky alexander.belopol...@gmail.com wrote: .. I agree with Georg: if ('u' == typecode) is not well readable, since you usually put the variable part on the left and the constant part on the right of an equal comparison. I appear to be

Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-07 Thread Terry Reedy
On 6/7/2011 5:35 PM, David Malcolm wrote: I know that this style is unpopular, but if it helps, try mentally pronouncing == in C as is the value of. In this example, when I read that line, my mind is thinking: if 'u' is the value of typecode After ~12 years of doing this, it comes

Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-07 Thread Brett Cannon
On Mon, Jun 6, 2011 at 23:57, Georg Brandl g.bra...@gmx.net wrote: On 06/07/11 05:20, brett.cannon wrote: http://hg.python.org/cpython/rev/fc282e375703 changeset: 70695:fc282e375703 user:Brett Cannon br...@python.org date:Mon Jun 06 20:20:36 2011 -0700 summary: