[Python-3000-checkins] r60523 - python/branches/py3k/Doc/whatsnew/3.0.rst

georg.brandl python-3000-checkins at python.org
Sat Feb 2 11:30:19 CET 2008


Author: georg.brandl
Date: Sat Feb  2 11:30:18 2008
New Revision: 60523

Modified:
   python/branches/py3k/Doc/whatsnew/3.0.rst
Log:
Some new 3.0 whatsnew items, written for GHOP by Andreas Freund.


Modified: python/branches/py3k/Doc/whatsnew/3.0.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.0.rst	(original)
+++ python/branches/py3k/Doc/whatsnew/3.0.rst	Sat Feb  2 11:30:18 2008
@@ -182,19 +182,31 @@
 PEP 3101: A New Approach to String Formatting
 =============================================
 
-XXX
+.. XXX expand this
 
+* A new system for built-in string formatting operations replaces
+  the ``%`` string formatting operator.
 
-PEP 3106: Revamping ``.keys()``, ``.items()`` and ``.values()``
-===============================================================
 
-XXX
+PEP 3106: Revamping dict ``.keys()``, ``.items()`` and ``.values()``
+====================================================================
+
+.. XXX expand this
+
+* The ``.iterkeys()``, ``.itervalues()`` and ``.iteritems()`` methods
+  have been removed.
+
+* ``.keys()``, ``.values()`` and ``.items()`` return objects with set
+  behavior that reference the underlying dict.
 
 
 PEP 3107: Function Annotations
 ==============================
 
-XXX
+.. XXX expand this
+
+* A standardized way of annotating a function's parameters and return
+  values.
 
 
 Exception Stuff
@@ -216,6 +228,11 @@
 * PEP 3134: Exception chaining.  (The ``__context__`` feature from the
   PEP hasn't been implemented yet in 3.0a1.)
 
+* A few exception messages are improved when Windows fails to load an 
+  extension module.  For example, ``error code 193`` is now ``%1 is not
+  a valid Win32 application``.  Strings now deal with non-English
+  locales.
+
 
 New Class and Metaclass Stuff
 =============================
@@ -242,8 +259,13 @@
 
 * Removed ``<>`` (use ``!=`` instead).
 
+* ``!=`` now returns the opposite of ``==``, unless ``==`` returns
+  ``NotImplemented``.
+
 * ``as`` and ``with`` are keywords.
 
+* ``True``, ``False``, and ``None`` are keywords.
+
 * PEP 237: ``long`` renamed to ``int``.  That is, there is only one
   built-in integral type, named ``int``; but it behaves like the old
   ``long`` type, with the exception that the literal suffix ``L`` is
@@ -312,6 +334,23 @@
 
 * ``exec`` is now a function.
 
+* There is a new free format floating point representation, which is
+  based on "Floating-Point Printer Sample Code", by Robert G. Burger.
+  ``repr(11./5)`` now returns ``2.2`` instead of ``2.2000000000000002``.
+
+* The ``__oct__()`` and ``__hex__()`` special methods are removed --
+  ``oct()`` and ``hex()`` use ``__index__()`` now to convert the
+  argument to an integer.
+
+* There is now a ``bin()`` builtin function.
+
+* Support is removed for ``__members__`` and ``__methods__``.
+
+* ``nb_nonzero`` is now ``nb_bool`` and ``__nonzero__`` is now
+  ``__bool__``.
+
+* Removed ``sys.maxint``. Use ``sys.maxsize``.
+
 
 .. ======================================================================
 
@@ -341,6 +380,18 @@
 * The ``cPickle`` module is gone.  Use ``pickle`` instead.  Eventually
   we'll have a transparent accelerator module.
 
+* The ``imageop`` module is gone.
+
+* The ``audiodev``, ``Bastion``, ``bsddb185``, ``exceptions``,
+  ``linuxaudiodev``, ``md5``, ``MimeWriter``, ``mimify``, ``popen2``,
+  ``rexec``, ``sets``, ``sha``, ``stringold``, ``strop``, ``sunaudiodev``,
+  ``timing``, and  ``xmllib`` modules are gone.
+
+* The ``new`` module is gone.
+
+* The methods ``os.tmpnam()``, ``os.tempnam()`` and ``os.tmpfile()`` have
+  been removed in favor of the ``tempfile`` module.
+
 .. ======================================================================
 .. whole new modules get described in subsections here
 
@@ -358,6 +409,15 @@
 
 * PEP 3123: Making ``PyObject_HEAD`` conform to standard C.
 
+* No more C API support for restricted execution.
+
+* ``PyNumber_Coerce()``, ``PyNumber_CoerceEx()``, ``PyMember_Get``,
+  and ``PyMember_Set`` C APIs are removed.
+
+* New C API ``PyImport_ImportModuleNoBlock()``, works like
+  ``PyImport_ImportModule()`` but won't block on the import lock (returning
+  an error instead).
+
 .. ======================================================================
 
 
@@ -366,6 +426,7 @@
 
 Platform-specific changes go here.
 
+
 .. ======================================================================
 
 


More information about the Python-3000-checkins mailing list