python-dev Summary for 2007-04-01 through 2007-04-15
- Summaries
- About SSL tests
- Cross-Platform Subprocess Termination
- Extended buffer protocol
- function for counting items in a sequence
- context manager - generator interaction?
- proposed which.py replacement
- minidom and DOM level 2
- test_pty.py hangs in verbose mode on Mac OS X?
- HTTP Responses and Errors
- Build Problem on Windows
- BaseException Pickle Issue
- Deprecating BaseException.message
- Changes to decimal.py
- Pydoc Rewrite Discussion at doc-sig list
- Making builtins more efficient
- Skipped Threads
- Epilogue
[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:
Skipped Threads
- Checking PEP autobuild results
- Python 2.5.1c1 pickle problem
- Summary of Tracker Issues
- possible urllib bug on Windows XP
- Py2.5.1 release candidate
- Some new additions to functools
- Python+XUL
- Distutils and -framework on MacOSX
- [Python-checkins] svn dead?
- Just saying hello
- ok to just checkin minor obvious fixes?
- __lltrace__
- new subscriber looking for grunt work
- functools additions
- Python Documentation Problem Example
- Get 2.5 changes in now, branch will be frozen soon
- Quoting netiquette reminder [Re: proposed which.py replacement]
- branch is frozen for release of 2.5.1c1 (and 2.5.1)
- More exposure for PEP8 (was: context manager - generator interaction?)
- [Python-checkins] Python Regression Test Failures opt (1)
- Weekly Python Patch/Bug Summary
- USE_FAST code in stringobject.c
- Fwd: Re: Py2.5.1 release candidate
- svn.python.org
- [PATCH] pep 0324 URL update
- my 2.5 checkins
- fdopen mode needs sanitizing
- Py3: function signatures, type checking, and related crap
- concerns regarding callable() method
- A Survey on Defect Management Practices in Free/Open Source Software
- RELEASED Python 2.5.1, release candidate 1
- Python 3000 PEP: Postfix type declarations
- test_socketserver flakey?
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.
