File: roadmap.rst

package info (click to toggle)
python-future 0.18.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,264 kB
  • sloc: python: 43,246; makefile: 136; sh: 29
file content (46 lines) | stat: -rw-r--r-- 1,429 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Development roadmap
===================

futurize script
---------------

1. "Safe" mode -- from Py2 to modern Py2 or Py3 to more-compatible Py3

   - Split the fixers into two categories: safe and bold
   - Safe is highly unlikely to break existing Py2 or Py3 support. The
     output of this still requires :mod:`future` imports. Examples:

      - Compatible metaclass syntax on Py3
      - Explicit inheritance from object on Py3

   - Bold might make assumptions about which strings on Py2 should be
     unicode strings and which should be bytestrings.

     - We should also build up a database of which standard library
       interfaces on Py2 and Py3 accept unicode strings versus
       byte-strings, which have changed, and which haven't.

2. Windows support

future package
--------------

- [Done] Add more tests for bytes ... preferably all from test_bytes.py in Py3.3.
- [Done] Add remove_hooks() and install_hooks() as functions in the
  :mod:`future.standard_library` module. (See the uprefix module for how
  to do this.)

Experimental:
- Add::

    from future import bytes_literals
    from future import new_metaclass_syntax
    from future import new_style_classes

- [Done] Maybe::

    from future.builtins import str

  should import a custom str is a Py3 str-like object which inherits from unicode and
  removes the decode() method and has any other Py3-like behaviours
  (possibly stricter casting?)