1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-future
7 SDESC[py37]= Compatibility layer for python 2 apps (PY37)
8 SDESC[py38]= Compatibility layer for python 2 apps (PY38)
9 HOMEPAGE= https://python-future.org
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPI/f/future
14 DISTFILE[1]= future-0.18.2.tar.gz:main
19 OPTIONS_AVAILABLE= PY38 PY37
20 OPTIONS_STANDARD= none
21 VOPTS[py37]= PY38=OFF PY37=ON
22 VOPTS[py38]= PY38=ON PY37=OFF
24 DISTNAME= future-0.18.2
28 [PY37].USES_ON= python:py37
30 [PY38].USES_ON= python:py38
32 [FILE:2591:descriptions/desc.single]
33 future: Easy, safe support for Python 2/3 compatibility
34 =======================================================
36 future is the missing compatibility layer between Python 2 and Python
37 3. It allows you to use a single, clean Python 3.x-compatible codebase to
38 support both Python 2 and Python 3 with minimal overhead.
40 It is designed to be used as follows::
42 from __future__ import (absolute_import, division,
43 print_function, unicode_literals)
44 from builtins import (
45 bytes, dict, int, list, object, range, str,
46 ascii, chr, hex, input, next, oct, open,
50 followed by predominantly standard, idiomatic Python 3 code that then runs
51 similarly on Python 2.6/2.7 and Python 3.3+.
53 The imports have no effect on Python 3. On Python 2, they shadow the
54 corresponding builtins, which normally have different semantics on Python 3
55 versus 2, to provide their Python 3 semantics.
57 Standard library reorganization
58 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60 future supports the standard library reorganization (PEP 3108) through the
61 following Py3 interfaces:
63 >>> # Top-level packages with Py3 names provided on Py2:
64 >>> import html.parser
66 >>> import tkinter.dialog
67 >>> import xmlrpc.client
70 >>> # Aliases provided for extensions to existing Py2 module names:
71 >>> from future.standard_library import install_aliases
74 >>> from collections import Counter, OrderedDict # backported to
76 >>> from collections import UserDict, UserList, UserString
77 >>> import urllib.request
78 >>> from itertools import filterfalse, zip_longest
79 >>> from subprocess import getoutput, getstatusoutput
84 An included script called [futurize
86 code (from either Python 2 or Python 3) to code compatible with both
87 platforms. It is similar to ``python-modernize but goes further in
88 providing Python 3 compatibility through the use of the backported types
89 and builtin functions in future``.
94 See: http://python-future.org
99 :Author: Ed Schofield, Jordan M. Adler, et al
100 :Sponsor: Python Charmers Pty Ltd, Australia, and Python Charmers Pte
101 Ltd, Singapore. http://pythoncharmers.com
102 :Others: See docs/credits.rst or http://python-future.org/credits.html
106 Copyright 2013-2019 Python Charmers Pty Ltd, Australia.
107 The software is distributed under an MIT licence. See LICENSE.txt.
111 b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d 829220 future-0.18.2.tar.gz