2006-04-04 07:59:11 -04:00
|
|
|
PEP: 3099
|
|
|
|
Title: Things that will Not Change in Python 3000
|
|
|
|
Version: $Revision$
|
|
|
|
Last-Modified: $Date$
|
|
|
|
Author: Georg Brandl <g.brandl@gmx.net>
|
|
|
|
Status: Draft
|
|
|
|
Type: Informational
|
|
|
|
Content-Type: text/x-rst
|
|
|
|
Created: 04-Apr-2006
|
|
|
|
|
|
|
|
|
|
|
|
Abstract
|
|
|
|
========
|
|
|
|
|
|
|
|
This PEP tries to list all BDFL pronouncements on Python 3000 that
|
|
|
|
refer to changes that will not happen and new features that will not
|
|
|
|
be introduced, sorted by topics, along with a short explanation or a
|
|
|
|
reference to the relevant thread on the python-3000 mailing list.
|
|
|
|
|
|
|
|
|
|
|
|
Core language
|
|
|
|
=============
|
|
|
|
|
2006-04-27 06:51:34 -04:00
|
|
|
* ``lambda`` will not be renamed.
|
|
|
|
|
|
|
|
Thread: "genexp syntax / lambda",
|
|
|
|
http://mail.python.org/pipermail/python-3000/2006-April/001042.html
|
|
|
|
|
2006-04-04 07:59:11 -04:00
|
|
|
* Python will not have programmable syntax.
|
|
|
|
|
2006-04-05 03:17:23 -04:00
|
|
|
Thread: "It's a statement! It's a function! It's BOTH!",
|
2006-04-04 07:59:11 -04:00
|
|
|
http://mail.python.org/pipermail/python-3000/2006-April/000286.html
|
|
|
|
|
|
|
|
* There won't be a syntax for ``zip()``-style parallel iteration.
|
|
|
|
|
|
|
|
Thread: "Parallel iteration syntax",
|
|
|
|
http://mail.python.org/pipermail/python-3000/2006-March/000210.html
|
|
|
|
|
2006-04-27 05:47:03 -04:00
|
|
|
* Strings will stay iterable.
|
|
|
|
|
|
|
|
Thread: "Making strings non-iterable",
|
|
|
|
http://mail.python.org/pipermail/python-3000/2006-April/000759.html
|
|
|
|
|
2006-04-27 06:13:55 -04:00
|
|
|
* There will be no syntax to sort the result of a generator expression
|
|
|
|
or list comprehension. ``sorted()`` covers all use cases.
|
|
|
|
|
|
|
|
Thread: "Adding sorting to generator comprehension",
|
|
|
|
http://mail.python.org/pipermail/python-3000/2006-April/001295.html
|
|
|
|
|
2006-05-01 13:26:22 -04:00
|
|
|
* Python 3000 source code won't use non-ASCII Unicode characters for
|
|
|
|
anything except string literals or comments.
|
2006-04-28 16:05:59 -04:00
|
|
|
|
|
|
|
Thread: sets in P3K?
|
|
|
|
http://mail.python.org/pipermail/python-3000/2006-April/01474.html
|
|
|
|
|
2006-05-01 16:04:27 -04:00
|
|
|
* Slices and extended slices won't go away (even if the __getslice__
|
|
|
|
and __setslice__ APIs may be replaced) nor will they return views
|
|
|
|
for the standard object types.
|
|
|
|
|
|
|
|
Thread: Future of slices
|
|
|
|
http://mail.python.org/pipermail/python-3000/2006-May/001563.html
|
|
|
|
|
2006-05-03 00:58:59 -04:00
|
|
|
* It will not be forbidden to reuse a loop variable inside the loop's
|
|
|
|
suite.
|
|
|
|
|
|
|
|
Thread: elimination of scope bleeding of iteration variables
|
|
|
|
http://mail.python.org/pipermail/python-dev/2006-May/064761.html
|
|
|
|
|
2006-04-04 07:59:11 -04:00
|
|
|
|
2006-04-04 13:50:24 -04:00
|
|
|
Builtins
|
|
|
|
========
|
|
|
|
|
2006-04-05 03:17:23 -04:00
|
|
|
* ``hash()`` won't become an attribute since attributes should be cheap
|
|
|
|
to compute, which isn't necessarily the case for a hash.
|
2006-04-04 13:50:24 -04:00
|
|
|
|
|
|
|
Thread: "hash as attribute/property",
|
|
|
|
http://mail.python.org/pipermail/python-3000/2006-April/000362.html
|
|
|
|
|
|
|
|
|
2006-04-04 07:59:11 -04:00
|
|
|
Standard types
|
|
|
|
==============
|
|
|
|
|
2006-04-16 18:09:59 -04:00
|
|
|
* Iterating over a dictionary will continue to yield the keys.
|
2006-04-04 07:59:11 -04:00
|
|
|
|
|
|
|
Thread: "Iterating over a dict",
|
|
|
|
http://mail.python.org/pipermail/python-3000/2006-April/000283.html
|
|
|
|
|
2006-05-22 13:06:18 -04:00
|
|
|
* There will be no ``frozenlist`` type.
|
|
|
|
|
|
|
|
Thread: "Immutable lists",
|
|
|
|
http://mail.python.org/pipermail/python-3000/2006-May/002219.html
|
|
|
|
|
2006-04-04 07:59:11 -04:00
|
|
|
|
|
|
|
Coding style
|
|
|
|
============
|
|
|
|
|
2006-04-05 17:21:57 -04:00
|
|
|
* The (recommended) maximum line width will remain 80 characters,
|
|
|
|
for both C and Python code.
|
2006-04-04 07:59:11 -04:00
|
|
|
|
|
|
|
Thread: "C style guide",
|
|
|
|
http://mail.python.org/pipermail/python-3000/2006-March/000131.html
|
|
|
|
|
|
|
|
|
|
|
|
Copyright
|
|
|
|
=========
|
|
|
|
|
|
|
|
This document has been placed in the public domain.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
..
|
|
|
|
Local Variables:
|
|
|
|
mode: indented-text
|
|
|
|
indent-tabs-mode: nil
|
|
|
|
sentence-end-double-space: t
|
|
|
|
fill-column: 70
|
|
|
|
coding: utf-8
|
|
|
|
End:
|