python-dev Summary for 2002-12-16 through 2002-12-31 
Author Message
 python-dev Summary for 2002-12-16 through 2002-12-31

+++++++++++++++++++++++++++++++++++++++++++++++++++++
python-dev Summary for 2002-12-15 through 2002-12-31
+++++++++++++++++++++++++++++++++++++++++++++++++++++

This is a summary of traffic on the `python-dev mailing list`_ between
December 16, 2002 and December 31, 2002 (inclusive).  It is intended
to inform the wider python community of on-going developments on the
list that might interest the wider Python community.  To comment on

comp.lang.python in the usual way; give your posting a meaningful
subject line, and if it's about a PEP, include the PEP number (e.g.
Subject: PEP 201 - Lockstep iteration). 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!

This is the eighth summary written by Brett Cannon (last one covering
2002!).

All summaries are archived at http://www.*-*-*.com/

Please note that this summary is written using reStructuredText_ which
can be found at http://www.*-*-*.com/ ;Any unfamiliar
punctuation is probably markup for reST_; you can safely ignore it
(although I suggest learning reST; its simple and is accepted for PEP
markup).  Also, because of the wonders of programs that like to
reformat text, I cannot guarantee you will be able to run the text
version of this summary through Docutils_ as-is unless it is from the
original itself.

.. _python-dev mailing list:
http://www.*-*-*.com/
.. _Docutils: http://www.*-*-*.com/
.. _reST:
.. _reStructuredText: http://www.*-*-*.com/

.. contents::

======================
Summary Announcements
======================

`Python 2.3a1`_ has been released!  Please download it and try it out.
 The testing of the code helps python-dev a lot.  So at the very least
download it and run the test suite to see if any errors or failures
come up.

I did skip a thread on some proposed changes to ``ConfigParser``.  If
you care about that module you can read the thread at
http://www.*-*-*.com/
.

This summary is a bit on the thin side.  I decided to enjoy my winter
holiday and so this summary was pushed off to the last minute (and
beyond; that is why this is late).  Shouldn't happen again for a
while.  =)

Those of you viewing this on the web or by running it through Docutils
will have noticed the table of contents preceding this section.  I am
giving this a try to see if I like it.  If you have an opinion, let me
know.

Go to PyCon_ (and yes, I am going to say this every summary until
PyCon is upon us)!

.. _Python 2.3a1: http://www.*-*-*.com/
.. _PyCon: http://www.*-*-*.com/

======================================================
`Adding decimal (aka FixedPoint) numbers to Python`__
======================================================
__ http://www.*-*-*.com/

Michael McLay brought to the attention of the list `patch #653938I`_
which not only adds the FixedPoint_ module (originally by Tim Peters)
to the library but the ``d`` suffix for numeric constants to be used
for numbers to be of the FixedPoint type.

For those of you unfamiliar with fixed-point math, it is basically
decimal math where the issue of rounding and representation are
eliminated except for division.  It  would allow 0.3 + 0.3 to actually
equal 0.6 and not 0.59999999999, which is what you get now with binary
floating-point math.

Consensus was quickly reached that Michael should first work on
getting the module accepted into the language.  This is done so that
python-dev can gauge the usefulness of the module to the rest of the
world and thus see if integrating it into the language is called for.
It was also said that a PEP should be written (which Michael's first
email practically is).  Oren Tirosh, though, stated that programs that
require fixed-point math don't encode the numbers as literals in their
code anyway, and thus adding a prefix would be uncalled for.

There was a discussion of what a constructor method should be named
that finally came down to Guido saying fixedpoint, fixed, or fixpoint
all are acceptable.

If you want to get into the nitty-gritty of this discussion read
Michael's and Tim's emails from the threads.  You can also look at
http://www.*-*-*.com/
fixed-point; Aahz has been working on an implementation since the dawn
of man but he has been busy with other things and thus has yet to
finish it.

.. _patch #653938I: http://www.*-*-*.com/
.. _FixedPoint: http://www.*-*-*.com/

=========================================
`New Import Hooks PEP, a first draft`__
=========================================
__ http://www.*-*-*.com/

Related threads:

        - `Zip Import and sys.path manipulation
< http://www.*-*-*.com/ ;`__
        - `Zipping Zope3 < http://www.*-*-*.com/ ;`__
        - `Write All New Import Hooks (PEP 302) in Python, Not C
< http://www.*-*-*.com/ ;`__
        - `Packages and __path__
< http://www.*-*-*.com/ ;`__
        - `PEP 203 and __path__
< http://www.*-*-*.com/ ;`__

So the thread that I am supposedly summarizing here is not the first
thread in terms of chronology, but it has the best title, so I am
using that as the thread to be summarized.

Once again, the new import hooks mechanism was a big topic of
discussion.  For the latter half of this month most of the discussions
were around `PEP 302`_ and its rough draft.  It was accepted and was
merged into the CVS tree in time for `Python 2.3a1`_.  Since the
implementation has already been accepted I will not summarize it here
nor its objections since the PEP does an admirable job of covering all
the bases.

The other big discussion that was brought up was whether ``__path__``
should be removed or at least discourage the modification of it.  Just
van Rossum pushed for the removal since it would simplify the import
hooks and he didn't see the use.  But Guido said  that Zope used it
and that it can be useful, so it is staying.  This discussion is what
caused the creation of the pkgutil_ module.

.. _PEP 302: http://www.*-*-*.com/
.. _pkgutil: http://www.*-*-*.com/

========================================
`known obvious thing or bug (rexec)?`__
========================================
__ http://www.*-*-*.com/

A question about something in ``rexec_`` ended up leading to a
discussion over the value of rexec since it is not close to being
truly secure.  The module is still in the library but I would not
expect it to be in there forever; Py3k will most likely be its undoing
unless someone gets the jump now and rewrites the module to actually
make it do its job well.

.. _rexec: http://www.*-*-*.com/

=====================
`deprecating APIs`__
=====================
__ http://www.*-*-*.com/

Neal Norwitz came up with a way to deprecate APIs by having them emit
warnings during compile-time (at least for gcc).  It can be found in
`pyport.h`_ and the macro is called ``Py_DEPRECATED()``.

.. _pyport.h: http://www.*-*-*.com/

===============================
`Mersenne Twister copyright`__
===============================
__ http://www.*-*-*.com/

Splinter Threads:
        - `Mesenne Twister copyright notice
< http://www.*-*-*.com/ ;`__
        - `Third-Party Licenses
< http://www.*-*-*.com/ ;`__

Raymond Hettinger asked how he should handle the copyright requirement
for the Mersenne Twister (now a part of the random_ module) that the
authors be given credit  in the documentation.  Various ideas were
thrown around from adding a ``__copyright__`` value to any module
requiring it and having that contain the required notice to having a
text file for  each file that needed it.  The last thing on this
thread was Raymond suggesting a license directory that contained the
required notices (this has not been done yet, though).

.. _random: http://www.*-*-*.com/

==============================================
`Extension modules, Threading, and the GIL`__
==============================================
__ http://www.*-*-*.com/

David Abrahams brought up a question about extension modules calling a
Python interpreter but not knowing it is Python and thus not knowing
about the GIL  (the "summary" David gives to explain what he is asking
about is four paragraphs, so if this sounds interesting to you then
read the original email).  This whole thread has still yet to be
worked out, but if threading in extension modules interests you, have
a read (time restraints prevent me from doing a thorough summary of
this thread since it is so complicated).

================
`GC at exit?`__
================
__ http://www.*-*-*.com/

Aahz pointed out that a cycle of objects will not have their
respective ``__del__()`` methods called unless you break the cycle or
call ``gc.collect()``.  But as Martin v. L?wis said, "If you need to
guarantee that __del__ is called at the end for all objects, you have
probably much bigger problems".  So just watch out for those cycles.

===================================================
`PEP 303: Extend divmod() for Multiple Divisors`__
===================================================
__ http://www.*-*-*.com/

`PEP 303`_ by Thomas Bellman proposes changing ``divmod()`` so as to
allow it to take an arbitrary number of arguments to chain together a
bunch of ``divmod()`` calls.  Guido has says that he does not like the
change because it causes the function to act in a way that is not
necessary and since it is a built-in that goes against keeping the the
language simple.

This thread has started a big discussion on what built-ins are needed,
but that started after January 1 and thus will be covered in the next
summary.

.. _PEP 303: http://www.*-*-*.com/



Thu, 23 Jun 2005 07:37:21 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. python-dev Summary for 2002-12-16 through 2002-12-31

2. python-dev Summary for 2003-05-16 through 2003-05-31

3. python-dev Summary for 2003-05-01 through 2003-05-15

4. python-dev Summary for 2003-04-01 through 2003-04-15 *and* 2003-04-16 through 2003-04-30

5. python-dev Summary for 2003-03-16 through 2003-03-31

6. python-dev Summary for 2003-03-01 through 2003-03-15

7. python-dev Summary for 2003-02-01 through 2003-02-15

8. python-dev Summary for 2003-01-16 through 2003-01-31

9. python-dev Summary for 2002-12-01 through 2002-12-15

10. python-dev Summary for 2002-11-16 through 2002-11-30

11. python-dev Summary, 2002-11-01 through 2002-11-15

12. Python-dev Summary for 2002-10-01 through 2002-10-13

 

 
Powered by phpBB® Forum Software