mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Backport of several functions from Python 3.0 to 2.6 including PyUnicode_FromString, PyUnicode_Format and PyLong_From/AsSsize_t. The functions are partly required for the backport of the bytearray type and _fileio module. They should also make it easier to port C to 3.0.
First chapter of the Python 3.0 io framework back port: _fileio The next step depends on a working bytearray type which itself depends on a backport of the nwe buffer API.
This commit is contained in:
parent
5f95a79b2b
commit
7f39c9fcbb
8 changed files with 1599 additions and 173 deletions
2
setup.py
2
setup.py
|
@ -420,6 +420,8 @@ class PyBuildExt(build_ext):
|
|||
exts.append( Extension("_heapq", ["_heapqmodule.c"]) )
|
||||
# operator.add() and similar goodies
|
||||
exts.append( Extension('operator', ['operator.c']) )
|
||||
# Python 3.0 _fileio module
|
||||
exts.append( Extension("_fileio", ["_fileio.c"]) )
|
||||
# _functools
|
||||
exts.append( Extension("_functools", ["_functoolsmodule.c"]) )
|
||||
# Python C API test module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue