[Python-Dev] 2.5 branch unfrozen

2007-04-21 Thread Anthony Baxter
Ok, things seem to be OK. So the release25-maint branch is unfrozen. 
Go crazy. Well, a little bit crazy. 

Anthony
-- 
Anthony Baxter <[EMAIL PROTECTED]>
It's never too late to have a happy childhood.
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] static analysis of python source

2007-04-21 Thread Georg Brandl
Kristján Valur Jónsson schrieb:
> I just ran some static analysis of the python core 2.5 with Visual 
> Studio team system.
> 
> There was the stray error discovered.  I will update the most obvious ones.
> 
>  
> 
> Some questions, though:
> 
>  
> 
> This code in binascii.c, line 1168 (and again 1238) is wrong:
> while (in < datalen) {
> 
> if ((data[in] > 126) ||
> 
> (data[in] == '=') ||
> 
> (header && data[in] == '_') ||
> 
> ((data[in] == '.') && (linelen == 1)) ||
> 
> (!istext && ((data[in] == '\r') || (data[in] == '\n'))) ||
> 
> ((data[in] == '\t' || data[in] == ' ') && (in + 1 == 
> datalen)) ||
> 
> ((data[in] < 33) &&
> 
>  (data[in] != '\r') && (data[in] != '\n') &&
> 
>  (quotetabs && ((data[in] != '\t') || (data[in] != ' ')
> 
>   The final ((data[in] != '\t') || (data[in] != ' ')) is always 
> true.  What is the right form? ((data[in] == '\t') || (data[in] == ' '))  ?

FYI, this has already been fixed in the heads.

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] static analysis of python source

2007-04-21 Thread Kristján Valur Jónsson
I see.  There appear to be two fixes, one for the dots, and another for the 
quotetabs.
Shouldn't this be backported?

Kristján

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Georg Brandl
Sent: Saturday, April 21, 2007 07:08
To: [email protected]
Subject: Re: [Python-Dev] static analysis of python source
>   The final ((data[in] != '\t') || (data[in] != ' ')) is always
> true.  What is the right form? ((data[in] == '\t') || (data[in] == ' '))  ?

FYI, this has already been fixed in the heads.

___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] 2.5 branch unfrozen

2007-04-21 Thread Lars Gustäbel
On Sat, Apr 21, 2007 at 04:45:37PM +1000, Anthony Baxter wrote:
> Ok, things seem to be OK. So the release25-maint branch is unfrozen. 
> Go crazy. Well, a little bit crazy. 

I'm afraid that I went crazy a little too early. Sorry for that.
Won't happen again.

-- 
Lars Gustäbel
[EMAIL PROTECTED]

The truth is rarely pure and never simple.
(Oscar Wilde)
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] static analysis of python source

2007-04-21 Thread Georg Brandl
Kristján Valur Jónsson schrieb:
> I see.  There appear to be two fixes, one for the dots, and another for the 
> quotetabs.
> Shouldn't this be backported?

Apparently I wasn't sure at the time.

You now checked in one half of the fix, and put an exclamation mark at the
wrong point (I assume that's why the 2.5 quopri tests are failing).
I think that the fix should applied completely or not at all.

Do you intend to apply the other fixes to the HEAD also?

Georg



-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Summary of Tracker Issues

2007-04-21 Thread Tracker

ACTIVITY SUMMARY (04/15/07 - 04/22/07)
Tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue 
number.  Do NOT respond to this message.


 1649 open ( +0) /  8584 closed ( +0) / 10233 total ( +0)

Average duration of open issues: 771 days.
Median duration of open issues: 722 days.

Open Issues Breakdown
   open  1649 ( +0)
pending 0 ( +0)

Issues Now Closed (1)
_

Buy Tramadol online   21 days
   http://bugs.python.org/issue1023tjreedy   



___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] static analysis of python source

2007-04-21 Thread Kristján Valur Jónsson
Hello Georg.
I must have messed up because I'm purdy sure I ran the test suite.
Anyway, I'll do your fix tomorrow early, I promise.
K

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Georg Brandl
Sent: Saturday, April 21, 2007 15:26
To: [email protected]
Subject: Re: [Python-Dev] static analysis of python source

Kristján Valur Jónsson schrieb:
> I see.  There appear to be two fixes, one for the dots, and another for the 
> quotetabs.
> Shouldn't this be backported?

Apparently I wasn't sure at the time.

You now checked in one half of the fix, and put an exclamation mark at the
wrong point (I assume that's why the 2.5 quopri tests are failing).
I think that the fix should applied completely or not at all.

Do you intend to apply the other fixes to the HEAD also?

Georg



--
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/kristjan%40ccpgames.com
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Python-Dev Summary Draft (April 1-15, 2007)

2007-04-21 Thread Calvin Spealman
There were a good number of skipped threads, but I've been out of the
loop with a lot of busy things keeping me away from such things. Now
that I'm getting back into it, I'll keep up with things again. So, let
me know if any of the skipped threads should be brought in.
Corrections and comments welcome as always.

=
Announcements
=

=
Summaries
=

---
About SSL tests
---

An open bug about missing SSL tests (#451607) was brought up to close or keep
open. Jean-Paul Calderone mentioned an improved testing method by spawning a
'openssl s_server' for testing purposes. This sparked some talk about the
terminating of subprocesses in a cross-platform manner (See `Cross-Platform
Subprocess Termination`).

Contributing thread:

- `About SSL tests
`__

-
Cross-Platform Subprocess Termination
-

Because os.kill only works on *nix and OS X platforms, leaving Windows
platforms uncovered. Although subprocess.TerminateProcess exists for Windows
platforms, it requires the use of handles and additional overhead for use.
Support was overall given for adding a UNIX-only signal() method and a cross-
platform terminate() method to Popen instances. Nothing was said of actually
incorporating these changes into the subprocess module, although code was
given.

Contributing thread:

- (This was mixed in with the `About SSL tests` thread.)


Extended buffer protocol


Updates to the buffer protocol are discussed, along with the proposal pre-PEP
documenting the updates for Python 3000, but brought to Python-Dev, due so the
plans of backporting to 2.6 afterwards.

(Note: I couldn't summarize this well enough to cover much of it do any real
degree, but it is currently a Py3k issue, so maybe that is OK. If no one wants
to add to the summary, it will stay short.)

Contributing threads:

- `Extended buffer PEP
`__
- `PEP 3118: Extended buffer protocol (new version)
`__
- `Extended Buffer Protocol - simple use examples
`__

-
function for counting items in a sequence
-

A patch was submitted by Steven Bethard (http://bugs.python.org/1696199),
implemented a discussed collections.counts() function to provide a mapping
between items in an iterable and the number of times they appear. There were
suggested names, but none overthrew the original 'counts()' and a question of
items not appearing being counted as 0 or raising a KeyError, with 0 winning
due to a just-makes-sense factor.

Contributing thread:

- `function for counting items in a sequence
`__


context manager - generator interaction?


A problem was brought up with iterator context managers and iteration inside
the with-block raising its StopIteration, but being caught by the context
manager mechanics. It was also responded that the problem would not exist
without the use of overly broad try blocks, and this lead to the addition of
a formal note in PEP 8 about keeping narrow try blocks.

Contributing thread:

- `context manager - generator interaction?
`__

-
proposed which.py replacement
-

Suggestion of replacing the which.py script in the Tools directory migrated to
its proposal for inclusion into the standard library. A patch and tests have
yet to be provided.

Contributing thread:

- `proposed which.py replacement
`_

---
minidom and DOM level 2
---

What is missing for DOM Level 2 support in minidom was highlighted and
some work jumpstarted.

Contributing thread:

- `minidom and DOM level 2
`__

--
test_pty.py hangs in verbose mode on Mac OS X?
--

Differing buffering behavior was causing test_pty to block only in verbose
mode. Solutions may include reading to clear the buffer of child processes
before a waitpid() call.

Contributing thread:

- `test_pty.py hangs in verbose mode on Mac OS X?
`__




Deferred Threads


==
Previous Summaries
==

===
Skipped Threads
===

- `Che