Branch: refs/heads/ppython Home: https://github.com/python/cpython Commit: 59e4cec38404ed1893c7b7468f42eac8c0d2e502 https://github.com/python/cpython/commit/59e4cec38404ed1893c7b7468f42eac8c0d2e502 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Include/bytesobject.h M Include/unicodeobject.h M Objects/bytesobject.c M Objects/unicodeobject.c Log Message: ----------- Add PyBytes_AsStringWarn() and PyUnicode_AsBytesWarn(). Commit: 092e0c86923f7253455c58bb76030af7f72eb6ba https://github.com/python/cpython/commit/092e0c86923f7253455c58bb76030af7f72eb6ba Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/bytesobject.c Log Message: ----------- Allow 'bytes' to be compared with 'str' objects. Commit: 0f5481b1a0580501719b60dcedcc5a356233d27d https://github.com/python/cpython/commit/0f5481b1a0580501719b60dcedcc5a356233d27d Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Modules/_io/bytesio.c M Modules/_io/clinic/textio.c.h M Modules/_io/stringio.c M Modules/_io/textio.c Log Message: ----------- Accept bytes/str objects passed to io.*.write. Commit: c1712d629d0a9a17dc81255419c119399ab41216 https://github.com/python/cpython/commit/c1712d629d0a9a17dc81255419c119399ab41216 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/bytesobject.c Log Message: ----------- Change behavior of str(bytesobj) to be more Python 2 friendly. Commit: 0d18307fb27ad638d23a813db883435e87eab793 https://github.com/python/cpython/commit/0d18307fb27ad638d23a813db883435e87eab793 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/bytesobject.c M Objects/unicodeobject.c Log Message: ----------- Allow concat between bytes and str. Commit: 340cc66c69abdd2ce0017b1ac02ea6904579c7a7 https://github.com/python/cpython/commit/340cc66c69abdd2ce0017b1ac02ea6904579c7a7 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/object.c Log Message: ----------- Implement backwards compatible compare behavior. None is less than all over types. Compare disjoin types by type names. Commit: fda9bbdd509a483e85e8547fbcd8fb38aee5c353 https://github.com/python/cpython/commit/fda9bbdd509a483e85e8547fbcd8fb38aee5c353 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/stringlib/join.h M Objects/unicodeobject.c Log Message: ----------- Allow .join() with mixed str and bytes. Commit: b855f222279d3baf81d91b71f3582bdc47cb5c9d https://github.com/python/cpython/commit/b855f222279d3baf81d91b71f3582bdc47cb5c9d Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: A README.md Log Message: ----------- Add basic README.md file. Commit: 5ad0aa3d810f144cb6eeaa73d826258b5bc81663 https://github.com/python/cpython/commit/5ad0aa3d810f144cb6eeaa73d826258b5bc81663 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M README.md Log Message: ----------- Add "Goals" to readme. Commit: 5b30a5648263ef085fe20a6a8887ecc53f3fddd2 https://github.com/python/cpython/commit/5b30a5648263ef085fe20a6a8887ecc53f3fddd2 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/unicodeobject.c M README.md Log Message: ----------- Add str.decode(). Commit: d5f695cd94298e9d61541557bebb9b00b9011d9f https://github.com/python/cpython/commit/d5f695cd94298e9d61541557bebb9b00b9011d9f Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/object.c M Python/bltinmodule.c M README.md Log Message: ----------- Support bytes for getattr(), setattr(), delattr(). Commit: 2c876ccdfd0340c4bcc54c2aee792de6934b863d https://github.com/python/cpython/commit/2c876ccdfd0340c4bcc54c2aee792de6934b863d Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/unicodeobject.c M README.md Log Message: ----------- Implement buffer interface for str. Commit: d41025a1bdc28cfb5e213f348c2cc7503d5ec03c https://github.com/python/cpython/commit/d41025a1bdc28cfb5e213f348c2cc7503d5ec03c Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/base64.py M Objects/unicodeobject.c M Python/codecs.c M README.md Log Message: ----------- .decode()/.encode() allow non-text encodings (e.g. base64). Commit: b4c153ff714a0de2f2d9bb48ea90a6e5bbc048e2 https://github.com/python/cpython/commit/b4c153ff714a0de2f2d9bb48ea90a6e5bbc048e2 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/io.py Log Message: ----------- Add io.OutputType. Commit: 2e67482dae1f826ffc800102f62e66dfca2e317a https://github.com/python/cpython/commit/2e67482dae1f826ffc800102f62e66dfca2e317a Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/dictobject.c Log Message: ----------- Add iterkeys() iteritems() itervalues() methods to dict. Commit: 94e3490830143e9bfc5e2a185b249a677d0bf0a0 https://github.com/python/cpython/commit/94e3490830143e9bfc5e2a185b249a677d0bf0a0 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/genobject.c Log Message: ----------- Add next() method to generators. Commit: 2735b95c6c048ef53dffde432788e04f701ffd39 https://github.com/python/cpython/commit/2735b95c6c048ef53dffde432788e04f701ffd39 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Python/bltinmodule.c M Python/import.c Log Message: ----------- Allow bytes 'name' to be passed to __import__. Commit: 731a772246cab62c254470f35407da8624488851 https://github.com/python/cpython/commit/731a772246cab62c254470f35407da8624488851 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M README.md Log Message: ----------- Add 'Plan' section to readme. Commit: 858392efe0dafe84978910bb822d427bd6caae51 https://github.com/python/cpython/commit/858392efe0dafe84978910bb822d427bd6caae51 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Include/pydebug.h M Include/warnings.h M Modules/main.c M Objects/bytesobject.c M Objects/object.c M Objects/unicodeobject.c M Python/_warnings.c M Python/pylifecycle.c Log Message: ----------- Add -2 flag (disable warnings). Add PyErr_WarnPy3k() and use it. Commit: e1422b705f769567606640e251f9c756b2a1adcd https://github.com/python/cpython/commit/e1422b705f769567606640e251f9c756b2a1adcd Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/ctypes/test/test_frombuffer.py M Lib/os.py M Lib/test/test_audioop.py M Lib/test/test_base64.py M Lib/test/test_binascii.py M Lib/test/test_bytes.py M Lib/test/test_codecs.py M Lib/test/test_difflib.py M Lib/test/test_fileio.py M Lib/test/test_ftplib.py M Lib/test/test_genericpath.py M Lib/test/test_getargs2.py M Lib/test/test_gzip.py M Lib/test/test_hashlib.py M Lib/test/test_hmac.py M Lib/test/test_imghdr.py M Lib/test/test_io.py M Lib/test/test_ipaddress.py M Lib/test/test_json/test_separators.py M Lib/test/test_locale.py M Lib/test/test_long.py M Lib/test/test_marshal.py M Lib/test/test_memoryio.py M Lib/test/test_memoryview.py M Lib/test/test_multibytecodec.py M Lib/test/test_ntpath.py M Lib/test/test_os.py M Lib/test/test_pathlib.py M Lib/test/test_posixpath.py M Lib/test/test_re.py M Lib/test/test_secrets.py M Lib/test/test_set.py M Lib/test/test_socket.py M Lib/test/test_ssl.py M Lib/test/test_sys.py M Lib/test/test_unicode.py M Lib/test/test_urllib.py M Lib/test/test_venv.py M Lib/test/test_zlib.py M Lib/unittest/test/test_case.py Log Message: ----------- Disable tests that break due to bytes<->str coercion. Commit: 903361d4a4c1dea6c1793a2610a2873e42a08351 https://github.com/python/cpython/commit/903361d4a4c1dea6c1793a2610a2873e42a08351 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/ctypes/test/test_frombuffer.py M Lib/test/datetimetester.py M Lib/test/test_calendar.py M Lib/test/test_collections.py M Lib/test/test_compare.py M Lib/test/test_complex.py M Lib/test/test_copy.py M Lib/test/test_enum.py M Lib/test/test_fractions.py M Lib/test/test_functools.py M Lib/test/test_ipaddress.py M Lib/test/test_numeric_tower.py M Lib/test/test_parser.py M Lib/test/test_pathlib.py M Lib/test/test_pprint.py M Lib/test/test_range.py M Lib/test/test_richcmp.py M Lib/test/test_set.py M Lib/test/test_types.py M Lib/test/test_weakref.py M Lib/unittest/test/testmock/testmagicmethods.py Log Message: ----------- Disable tests broken by Py2-like default ordering. Commit: cbdf2ac7c7266559d4940ce9248a1d8d3ab4495a https://github.com/python/cpython/commit/cbdf2ac7c7266559d4940ce9248a1d8d3ab4495a Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/complexobject.c Log Message: ----------- Explicitly reject comparision between complex instances. Commit: 978a90257ef85f03632a473360f9680d79c14625 https://github.com/python/cpython/commit/978a90257ef85f03632a473360f9680d79c14625 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/collections/__init__.py Log Message: ----------- Add 'iterkeys', 'itervalues', 'iteritems' to UserDict. Commit: d80a0a82fcf8d442421ba64bb457bcb43c58b37f https://github.com/python/cpython/commit/d80a0a82fcf8d442421ba64bb457bcb43c58b37f Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/collections/__init__.py Log Message: ----------- Add 'decode' to UserString. Commit: 2e264a22f3311a48e0b0807d1e91601347d97ef4 https://github.com/python/cpython/commit/2e264a22f3311a48e0b0807d1e91601347d97ef4 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/test/test_generators.py Log Message: ----------- Fix generator test: now have a 'next' method for compatiblity. Commit: 8221193b30d5de3e80fbd2c158255b90a650ff93 https://github.com/python/cpython/commit/8221193b30d5de3e80fbd2c158255b90a650ff93 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/genobject.c Log Message: ----------- Generate warning if next() method is used. Commit: d73e7d9eea673434857dd164a8c674b9c7b36c0c https://github.com/python/cpython/commit/d73e7d9eea673434857dd164a8c674b9c7b36c0c Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Modules/_ssl.c Log Message: ----------- Add explicit check for PyUnicode in _ssl module. Giving 'str' a buffer interface breaks the _ssl module. Previously, if the object supported the buffer API, the code assumed it was ASN.1 formatted data. This is ugly and may point to a bigger problem. It seems probable that there is other code that assumes PyObject_GetBuffer() doesn't succeed on str objects. Commit: cc5d567fe81c465479196a66405046b74e04a194 https://github.com/python/cpython/commit/cc5d567fe81c465479196a66405046b74e04a194 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/bytesobject.c Log Message: ----------- Fix PyErr_WarnPy3k() call, check for error. Commit: 3a9123ca74850d81a3a8550f4909801cd4e7adf5 https://github.com/python/cpython/commit/3a9123ca74850d81a3a8550f4909801cd4e7adf5 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Python/bltinmodule.c Log Message: ----------- Allow ord() to take an int argument. This is a dirty work-around for the fact that Python 3 bytes indexing and iteration returns ints rather than length one strings. Commit: 7188e26d1f05fdc86eb59e39579ff407f7e3fe84 https://github.com/python/cpython/commit/7188e26d1f05fdc86eb59e39579ff407f7e3fe84 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Modules/_csv.c Log Message: ----------- Change _csv module to allow bytes as line input. Commit: 1dfdca2c4c59eb1163296f366528e544df7b427e https://github.com/python/cpython/commit/1dfdca2c4c59eb1163296f366528e544df7b427e Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Modules/_sre.c Log Message: ----------- Allow regex with mixed bytes/str objects. Commit: 29f9e57ec212dfae232575b285f0a9de41990554 https://github.com/python/cpython/commit/29f9e57ec212dfae232575b285f0a9de41990554 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/string.py Log Message: ----------- Restore string functions. Perhaps 2to3 should fix these, I don't think it currently does. Commit: 7e6d733b0ad1650687acb16a4bce5491fc57b076 https://github.com/python/cpython/commit/7e6d733b0ad1650687acb16a4bce5491fc57b076 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/test/test_builtin.py Log Message: ----------- Disable test for ord() on ints (no longer raises error). Commit: 1b45804de94066d94fb91cafde9f198a1dd3fabf https://github.com/python/cpython/commit/1b45804de94066d94fb91cafde9f198a1dd3fabf Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/test/test_fnmatch.py M Lib/test/test_lzma.py Log Message: ----------- Disable tests broken by bytes/str implicit conversion. Commit: cca1d5b2e40cebeed3da48296de12503463f059c https://github.com/python/cpython/commit/cca1d5b2e40cebeed3da48296de12503463f059c Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/test/test_genericpath.py Log Message: ----------- Disable more tests that break due to bytes<->str coercion. Commit: 274da582cf5bb1b84279924fc4e5b5210b8425ac https://github.com/python/cpython/commit/274da582cf5bb1b84279924fc4e5b5210b8425ac Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/test/test_doctest.py Log Message: ----------- Adjust number of docstrings found for builtins. Commit: b3c4adf38b72a05348fa99d90c4c10cd2e33ae0b https://github.com/python/cpython/commit/b3c4adf38b72a05348fa99d90c4c10cd2e33ae0b Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/enum.py Log Message: ----------- Add explicit int type check for _high_bit(). Previous code relied on TypeError coming from mixed type comparision. Commit: a95313dfc66e592623e4a3a6138356f735bce878 https://github.com/python/cpython/commit/a95313dfc66e592623e4a3a6138356f735bce878 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Objects/bytesobject.c Log Message: ----------- Silence compiler warning for bytes_str_cmp(). Commit: 7533db47f9abb6920e56fa195d40e4002d8a7836 https://github.com/python/cpython/commit/7533db47f9abb6920e56fa195d40e4002d8a7836 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M Lib/test/test_hashlib.py M Lib/test/test_re.py M Lib/test/test_uuid.py Log Message: ----------- Remove broken comparision tests introduced since 3.6.0. Commit: 3ba4c8a669e046ff2a4529c3b59581219c5db547 https://github.com/python/cpython/commit/3ba4c8a669e046ff2a4529c3b59581219c5db547 Author: Neil Schemenauer <nas at arctrix.com> Date: 2017年04月20日 (2017年4月20日) Changed paths: M README.md Log Message: ----------- Revise readme file for Pragmatic Python fork. Compare: https://github.com/python/cpython/compare/59e4cec38404^...3ba4c8a669e0