skip to navigation
skip to content

Help Fund Python

python-dev Summary for 2007-04-01 through 2007-04-15

[The HTML version of this Summary is available at http://www.python.org/dev/summary/2007-04-01_2007-04-15]

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:

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.

This was mixed in with the above 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:

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:

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:

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:

minidom and DOM level 2

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

Contributing thread:

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:

HTTP Responses and Errors

In 2xx HTTP responses mean that the request was handled OK. The existing library was special-casing the most common responses and treating others as errors. After verifying that there wasn't a good reason for the old behavior, Facundo Batista fixed it.

Contributing thread:

Build Problem on Windows

It is a generated file; the actual problem is in make_buildinfo

Contributing thread:

BaseException Pickle Issue

Exceptions are now new-style classes; this caused some obscure problems with picking and unpickling.

http://www.python.org/sf/1498571

and later

http://www.python.org/sf/1692335

should resolve the issue.

Contributing thread:

Deprecating BaseException.message

Plans changed; BaseException will still accept an args tuple, so don't bother with the .message attribute. Probably the shortest leaved Python feature ever. See PEP 352.

Contributing thread:

Changes to decimal.py

The external standard has been updated; python's implementation will be updated to match.

Contributing threads:

Pydoc Rewrite Discussion at doc-sig list

An announcement that the (normally quiet) doc-sig mailing list would be discussing a rewrite of pydoc. http://mail.python.org/pipermail/doc-sig/

Contributing thread:

Making builtins more efficient

Andrea Griffini posted a patch at sourceforge that makes builtin lookups almost as fast as locals.

https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1616125&group_id=5470

Contributing thread:

Epilogue

This is a summary of traffic on the python-dev mailing list from April 01, 2007 through April 15, 2007. It is intended to inform the wider Python community of on-going developments on the list on a semi-monthly basis. An archive of previous summaries is available online.

An RSS feed of the titles of the summaries is available. You can also watch comp.lang.python or comp.lang.python.announce for new summaries (or through their email gateways of python-list or python-announce, respectively, as found at http://mail.python.org).

This python-dev summary is written by Steven Bethard.

To contact me, please send email:

  • Steven Bethard (steven dot bethard at gmail dot com)

Do not post to comp.lang.python if you wish to reach me.

The Python Software Foundation is the non-profit organization that holds the intellectual property for Python. It also tries to advance the development and use of Python. If you find the python-dev Summary helpful please consider making a donation. You can make a donation at http://python.org/psf/donations.html . Every cent counts so even a small donation with a credit card, check, or by PayPal helps.

Commenting on Topics

To comment on anything mentioned here, just post to comp.lang.python (or email python-list@python.org which is a gateway to the newsgroup) with a subject line mentioning what you are discussing. All python-dev members are interested in seeing ideas discussed by the community, so don't hesitate to take a stance on something. And if all of this really interests you then get involved and join python-dev!

How to Read the Summaries

This summary is written using reStructuredText. Any unfamiliar punctuation is probably markup for reST (otherwise it is probably regular expression syntax or a typo :); you can safely ignore it. We do suggest learning reST, though; it's simple and is accepted for PEP markup and can be turned into many different formats like HTML and LaTeX.