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

2011-06-06 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 > date:Mon Jun 06 20:20:36 2011 -0700 > summary: > Remove some extraneous parentheses and swap the comparison order to > prevent accidental

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

2011-06-06 Thread Nick Coghlan
On Tue, Jun 7, 2011 at 3:36 AM, antoine.pitrou wrote: > +    @property > +    def sentinel(self): > +        ''' > +        Return a file descriptor (Unix) or handle (Windows) suitable for > +        waiting for process termination. > +        ''' > +        try: > +            return self._sentin

Re: [Python-Dev] Help requested for Python ISO Standard

2011-06-06 Thread Nick Coghlan
On Tue, Jun 7, 2011 at 8:14 AM, kevin coyne wrote: > Skip: > Thanks, appreciate the link  I've checked them all out and some may be > useful to my task. Another two scans to try would be to look for "cpython" in the test suite and "impl-detail" in the documentation. Cheers, Nick. -- Nick Coghl

Re: [Python-Dev] Help requested for Python ISO Standard

2011-06-06 Thread kevin coyne
Skip: Thanks, appreciate the link I've checked them all out and some may be useful to my task. Regards, Kevin Coyne Cell: 703.901.6774 > Date: Mon, 6 Jun 2011 15:36:11 -0500 > To: kevinjco...@hotmail.com > CC: python-dev@python.org; l.wag...@radium.ncsc.mil; gu...@python.org > Subject: Re:

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread C McL
> Date: Mon, 6 Jun 2011 22:59:04 +0900 > From: step...@xemacs.org > To: solip...@pitrou.net > CC: python-dev@python.org > Subject: Re: [Python-Dev] The socket HOWTO > > I know that is your opinion, because I've read your posts. I > disagree. The document is imperfect, but for me it served a ce

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

2011-06-06 Thread Anurag Chourasia
Hi All, Python2.7.1 build on AIX 5.3 ML 12 is failing at the make step with the error indicated below de -I./Include -I /opt/freeware/include -I /opt/freeware/include/readline -I /opt/freeware/include/ncurses -DPy_BUILD_CORE -o Parser/tokenizer_pgen.o Parser/tokenizer_pgen.c gcc -pthread

Re: [Python-Dev] Help requested for Python ISO Standard

2011-06-06 Thread skip
kevin> I am working on an ISO Annex of Vulnerabilities for the Python kevin> language and am asking for help getting a list of language kevin> features that exhibit: kevin> unspecified behavior, undefined behavior, or implementation kevin> defined behavior. I am also searchin

Re: [Python-Dev] FWD: gpg keys have problems

2011-06-06 Thread Barry Warsaw
On Jun 05, 2011, at 08:20 AM, Aahz wrote: >> >From your python download page you need to update the public keys to not >> use the faulty MD5 digest algorithm. (see the link listed below) >> >> $ gpg --import pubkeys.txt >> gpg: key 6A45C816: public key "Anthony Baxter " >> imported >> gpg: WARN

Re: [Python-Dev] Buildbots and regrtest timeout

2011-06-06 Thread David Bolen
Victor Stinner writes: > But today I saw a a buildbot timeout without any traceback: a possible hang > in > test_io on "x86 FreeBSD 7.2 3.x" buildbot, "command timed out: 3900 seconds > without output". I realized that some buildbots (all buildbots?) override the > TESTOPTS variable ("make bu

[Python-Dev] Help requested for Python ISO Standard

2011-06-06 Thread kevin coyne
To whom it may concern: I am working on an ISO Annex of Vulnerabilities for the Python language and am asking for help getting a list of language features that exhibit: unspecified behavior, undefined behavior, or implementation defined behavior. I am also searching for a list of deprecated feat

Re: [Python-Dev] packaging landed in stdlib

2011-06-06 Thread Éric Araujo
Hi, My GSoC student made me realize that it could be quite difficult to work with the packaging module codebase when you’re familiar with the distutils code. I wrote a blog post about file-level changes from distutils to packaging, to help people find their way: https://wokslog.wordpress.com/2011

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Antoine Pitrou
Le lundi 06 juin 2011 à 22:59 +0900, Stephen J. Turnbull a écrit : > Antoine Pitrou writes: > > > So did you read the discussion before posting? > > Yes. It's rude to assume that those who disagree with you are > irresponsible and uninformed. Would you please stop it? > > > The sockets HOWTO

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Stephen J. Turnbull
Antoine Pitrou writes: > So did you read the discussion before posting? Yes. It's rude to assume that those who disagree with you are irresponsible and uninformed. Would you please stop it? > The sockets HOWTO *doesn't* serve both groups. > Actually, I would argue that it serves neither of

Re: [Python-Dev] Buildbots and regrtest timeout

2011-06-06 Thread Paul Moore
On 6 June 2011 11:29, Victor Stinner wrote: > Stephan Krah asked me to change how the default timeout is defined for > regrtest > (issue #12250): > > "The implicit timeout in regrtest.py makes it harder to write automated > test scripts for 3rd party modules. First, you have to remember to > set

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Steven D'Aprano
Antoine Pitrou wrote: On Mon, 06 Jun 2011 10:33:14 +0200 "Martin v. Löwis" wrote: [...] How can you make such claims when several people have indicated that the howto *actually* helped them? The point here is that the examples in that document are very poor (the only substantial example actu

[Python-Dev] Buildbots and regrtest timeout

2011-06-06 Thread Victor Stinner
Hi, Stephan Krah asked me to change how the default timeout is defined for regrtest (issue #12250): "The implicit timeout in regrtest.py makes it harder to write automated test scripts for 3rd party modules. First, you have to remember to set --timeout=0 for long running tests. Then, you have to

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Antoine Pitrou
On Mon, 06 Jun 2011 10:33:14 +0200 "Martin v. Löwis" wrote: > Am 06.06.2011 10:11, schrieb Antoine Pitrou: > > Le lundi 06 juin 2011 à 17:01 +0900, Stephen J. Turnbull a écrit : > >> You might question whether the same document should serve both the > >> "cargo cult the examples" group and the "re

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Martin v. Löwis
Am 06.06.2011 10:11, schrieb Antoine Pitrou: > Le lundi 06 juin 2011 à 17:01 +0900, Stephen J. Turnbull a écrit : >> You might question whether the same document should serve both the >> "cargo cult the examples" group and the "read the fine print" group. >> That's a valid question, but here my fee

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Martin v. Löwis
> > Did you run a user survey? > > Martin undoubtedly has a lot of experience with users, and it's quite > reasonable for him to express his opinions based on that informal > sample, yes. In particular, this is collected experience from interaction with students learning Python, or other languag

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Antoine Pitrou
Le lundi 06 juin 2011 à 17:01 +0900, Stephen J. Turnbull a écrit : > You might question whether the same document should serve both the > "cargo cult the examples" group and the "read the fine print" group. > That's a valid question, but here my feeling is that the answer is > "yes". So did you re

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Stephen J. Turnbull
Antoine Pitrou writes: > Did you run a user survey? Martin undoubtedly has a lot of experience with users, and it's quite reasonable for him to express his opinions based on that informal sample, yes. The issue here is the difference between existential and universal quantifiers. Martin's argu

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Stephen J. Turnbull
exar...@twistedmatrix.com writes: > However, does that really have anything to do with improving the socket > howto? Thank you! > The Python documentation can include a clear explanation of what > functionality the socket module provides - without forcing you to read > Stevens _or_ use T

Re: [Python-Dev] cpython: always clear parser error

2011-06-06 Thread Georg Brandl
On 06/06/11 05:13, benjamin.peterson wrote: > http://hg.python.org/cpython/rev/9faa9270457e > changeset: 70654:9faa9270457e > user:Benjamin Peterson > date:Sun Jun 05 22:14:05 2011 -0500 > summary: > always clear parser error > > files: > Modules/parsermodule.c | 2 +- > 1

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Antoine Pitrou
On Mon, 06 Jun 2011 00:22:11 +0200 "Martin v. Löwis" wrote: > >>> I'm not sure why the examples are good (for example, modern client > >>> code should probably use create_connection() with a host name, not > >>> connect()). > >> > >> I disagree. create_connection is an advanced function - you shou