https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
cd29fe7 Update 2018-11-10-09-10-54.bpo-35202.TeJJrt.rst 10 November 2018, 06:25:24 UTC
c71ca22 Remove unused imports 10 November 2018, 04:18:43 UTC
fa0789f Add News.d blurb 10 November 2018, 03:58:16 UTC
db46773 Remove unused imports in idlelib package 09 November 2018, 19:02:12 UTC
d17a693 bpo-35199: Add an internal _PyTuple_ITEMS() macro (GH-10434) * _PyTuple_ITEMS() gives access to the tuple->ob_item field and cast the first argument to PyTupleObject*. This internal macro is only usable if Py_BUILD_CORE is defined. * Replace &PyTuple_GET_ITEM(ob, 0) with _PyTuple_ITEMS(ob). * Replace PyTuple_GET_ITEM(op, 1) with &_PyTuple_ITEMS(ob)[1]. 09 November 2018, 15:56:48 UTC
130893d bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) * All internal header files now require Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN to be defined. * _json.c is now compiled with Py_BUILD_CORE_BUILTIN to access pycore_accu.h header. * Add an example to Modules/Setup to show how to build _json as a built-in module; it requires non trivial compiler options. 09 November 2018, 12:03:37 UTC
0a18e05 Hoist the float conversion out of the inner loop. (GH-10430) Currently, the *n* and *total* variables get converted to floats each time they are multiplied by random(). This minor tweak does the conversion just once and gets a small speedup (approx 3%). 09 November 2018, 10:39:50 UTC
cf5863f Optimize set.pop() to advance a pointer instead of indexing. (GH-10429) Gives approx 20% speed-up using clang depending on the number of elements in the set (the less dense the set, the more the speed-up). Uses the same entry++ logic used elsewhere in the setobject.c code. 09 November 2018, 10:31:56 UTC
b83942c Cleanup and improve the regex tokenizer example. (GH-10426) 1) Convert weird field name "typ" to the more standard "type". 2) For the NUMBER type, convert the value to an int() or float(). 3) Simplify ``group(kind)`` to the shorter and faster ``group()`` call. 4) Simplify logic go a single if-elif chain to make this easier to extend. 5) Reorder the tests to match the order the tokens are specified. This isn't necessary for correctness but does make the example easier to follow. 6) Move the "column" calculation before the if-elif chain so that users have the option of using this value in error messages. 09 November 2018, 09:19:33 UTC
216aaaa Fixing wording in comment. (GH-10425) Since the n==1 case just returns *max*, it cannot be larger than the magnitude of the vector entry. 09 November 2018, 09:06:02 UTC
7a69cf4 bpo-35194: Fix a wrong constant in cp932 codec (GH-10420) This typo doesn't affect the result because wrong bits are discarded on implicit conversion to unsigned char, but it trips UBSan with -fsanitize=implicit-integer-truncation. https://bugs.python.org/issue35194 09 November 2018, 07:12:06 UTC
0f221d0 bpo-24412: Adds cleanUps for setUpClass and setUpModule. (GH-9190) 09 November 2018, 02:34:33 UTC
49fa4a9 bpo-35193: Fix an off by one error in the RETURN_VALUE case. (GH-10418) Fix an off by one error in the peephole optimizer when checking for unreachable code beyond a return. Do a bounds check within find_op so it can return before going past the end as a safety measure. https://github.com/python/cpython/commit/7db3c488335168993689ddae5914a28e16188447#diff-a33329ae6ae0bb295d742f0caf93c137 introduced this off by one error while fixing another one nearby. This bug was shipped in all Python 3.6 and 3.7 releases. The included unittest won't fail unless you do a clang msan build. 09 November 2018, 01:55:07 UTC
fd512d7 bpo-35065: Remove `StreamReaderProtocol._untrack_reader` (#10212) The call to `_untrack_reader` is performed too soon, causing the protocol to forget about the reader before `connection_lost` can run and feed the EOF to the reader. See bpo-35065. 08 November 2018, 12:21:47 UTC
5d95312 Replace dead code with an assertion in winreg.c. (GH-10028) 08 November 2018, 09:45:00 UTC
a44d34e bpo-34966: Improve support of method aliases in pydoc. (GH-9823) Pydoc now does not duplicate docstrings for aliases of inherited methods. 08 November 2018, 06:48:11 UTC
6843ffe Revert "bpo-32409: Fix regression in activate.bat on international Windows (GH-10295)" (GH-10403) This reverts commit c64583b6d3e8516a8cd2b5f84fc1e300bfac2206 due to multiple buildbot failures when building it. 07 November 2018, 23:55:40 UTC
556d50d Doc: Make all versions sidebars the same for consistency. (GH-10288) 07 November 2018, 23:11:49 UTC
b939250 Fix the construction of subprocess.CalledProcessError in test_venv (GH-10400) The constructor of subprocess.CalledProcessError in the check_output function had an extra None in it. 07 November 2018, 22:21:17 UTC
beed84c bpo-35015: Doc: Fix internationalisation of the availability directive. (GH-10360) 07 November 2018, 21:42:40 UTC
a6e956b bpo-34726: Fix handling of hash-based pycs in zipimport. (GH-10327) Current support for hash-based bytecode files in `zipimport` is rather sparse, which leads to test failures when the test suite is ran with the ``SOURCE_DATE_EPOCH`` environment variable set. This teaches zipimport to handle hash-based pycs properly. 07 November 2018, 18:34:59 UTC
bfe1839 Add link to PEP 525 in Expressions. (GH-10333) 07 November 2018, 18:12:12 UTC
ae31e3f glob uses fnmatch.filter instead of fnmatch since 2001. (GH-10102) 07 November 2018, 18:09:11 UTC
c5eec44 Add a reference to the name mangling description in the tutorial to the index. (GH-10138) 07 November 2018, 17:59:45 UTC
cdb96f4 Add future_stmt to simple_stmt production list. (GH-8239) 07 November 2018, 17:32:18 UTC
ca68261 Fix markup for xml.sax in 3.8 notes. (GH-9603) 07 November 2018, 17:29:14 UTC
d649910 Correct grammar mistakes in string.rst. (GH-9752) 07 November 2018, 17:24:56 UTC
ca03f3b Mark len call as a code snippet in stdtypes.rst. (GH-9804) 07 November 2018, 17:22:47 UTC
ea6a28c Mark -c and -O as command line options in reStructuredText. (GH-10103) 07 November 2018, 17:06:45 UTC
c64583b bpo-32409: Fix regression in activate.bat on international Windows (GH-10295) Handle Unicode contents on localised Windows systems when activating a venv. activate.bat currently breaks on German Windows systems, as chcp.com does not return a plain number as on English systems, but (arbitrarily) appends a dot at the end (for example "Aktive Codepage: 850." instead of "Active Codepage: 850"). The dependency to chcp.com is removed and ctypes is used to get, set and restore the console output code page. The code page for console input is not changed. We can't use __VENV_PYTHON__ to find python.exe, since it's UTF-8. cmd.exe decodes the script using the console output code page. 07 November 2018, 16:49:14 UTC
637a33b bpo-2504: Add pgettext() and variants to gettext. (GH-7253) 07 November 2018, 14:12:20 UTC
5598cc9 bpo-34160: Preserve order of attributes in minidom. (GH-10219) 07 November 2018, 14:09:04 UTC
f194479 bpo-31553: add --json-lines option to json.tool (#10051) * add jsonlines option to json.tool * code review * fix:avoid read infile after it close * improve doc in whatsnew 3.8 07 November 2018, 10:09:32 UTC
0e7497c bpo-34898: Add mtime parameter to gzip.compress(). (GH-9704) Without setting mtime, time.time() will be used as the timestamp which will end up in the compressed data and each invocation of the compress() function will vary over time. 07 November 2018, 09:50:23 UTC
d2b11af Remove duplicate "Reference Guide" in optparse.rst. (GH-10372) 07 November 2018, 05:47:11 UTC
76cd0c3 bpo-33000: Document that IDLE's shell has no line limit. (#10373) A program that runs indefinitely can overfill memory. 07 November 2018, 04:55:06 UTC
9fc57a3 bpo-35081: Add pycore_fileutils.h (GH-10371) Move Py_BUILD_CORE code from Include/fileutils.h to a new Include/internal/pycore_fileutils.h file. 06 November 2018, 23:44:03 UTC
bccacd1 bpo-17560: Too small type for struct.pack/unpack in mutliprocessing.Connection (GH-10305) Allow sending more than 2 GB at once on a multiprocessing connection on non-Windows systems. 06 November 2018, 19:38:34 UTC
75d9d59 bpo-23220: Explain how IDLE's Shell displays output (GH-10356) Add a new subsection to the doc. 06 November 2018, 17:37:36 UTC
5ed6995 bpo-35081: Add _PyCoreConfig_AsDict() (GH-10362) _testcapimodule.c must not include pycore_pathconfig.h, since it's an internal header files. Changes: * Add _PyCoreConfig_AsDict() function to coreconfig.c. * Remove pycore_pathconfig.h include from _testcapimodule.h. * pycore_pathconfig.h now requires Py_BUILD_CORE to be defined. * _testcapimodule.c compilation now fails if it's built with Py_BUILD_CORE defined. 06 November 2018, 14:59:52 UTC
f1b9ad3 closes bpo-35171: Fix test_TimeRE_recreation_timezone failure on some systems. (GH-10347) The test depended on '/usr/share/zoneinfo/posixrules' or equivalent because it set TZ without explicit DST transition rules. At least on OpenSUSE Tumbleweed that file is linked to '/etc/localtime', making the test fail with certain local timezones, such as 'Europe/Moscow' which doesn't have DST transitions since 2011. 06 November 2018, 04:29:07 UTC
f1d3efc bpo-35099: Update idlelib/help.html (#10353) (This should have been done with the first PR for this issue.) 06 November 2018, 03:17:57 UTC
5e79090 bpo-35099: Improve the doc about IDLE running user code. (#10350) The section is renamed from "IDLE -- console differences". It mostly covers the implications of using custom sys.stdxxx objects. 06 November 2018, 02:30:32 UTC
0bee3c3 bpo-35119: Fix RecursionError in example of customizing module attribute access. (GH-10323) https://bugs.python.org/issue35119 06 November 2018, 01:53:21 UTC
6531bf6 bpo-33462: Add __reversed__ to dict and dict views (GH-6827) 06 November 2018, 00:38:54 UTC
16c8a53 [Docs] Fix required version of an example of importlib (GH-10118) §31.5.6.3. Importing a source file directly: `module_from_spec` is new in Python 3.5. 05 November 2018, 22:41:17 UTC
570e371 Fix possible crashes in pwdmodule.c. (GH-10331) "p" was not initialized if the first PyMem_RawRealloc() call failed. 05 November 2018, 19:26:40 UTC
083a7a1 bpo-35167: Specify program for gzip and json.tool command line options. (GH-10332) 05 November 2018, 15:47:27 UTC
34fd4c2 bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284) Two kind of mistakes: 1. Missed space. After concatenating there is no space between words. 2. Missed comma. Causes unintentional concatenating in a list of strings. 05 November 2018, 14:20:25 UTC
ad1a25f bpo-32512: Add -m option to profile for profiling modules (#5132) The new option in the CLI of the profile module allow to profile executable modules. This change follows the same implementation as the one already present in `cProfile`. As the argument is now present on both modules, move the tests to the common test case to be run with profile as well. 05 November 2018, 12:03:46 UTC
2810dd7 closes bpo-32285: Add unicodedata.is_normalized. (GH-4806) 04 November 2018, 23:58:24 UTC
5d236ca bpo-19675: Terminate processes if construction of a pool is failing. (GH-5614) 04 November 2018, 22:40:32 UTC
b4db249 bpo-9842: Add cross-reference to the ellipsis object (GH-4063) This PR adds a cross-reference to the ellipsis object and the representation of recursive item in containers as indicated in [issue 9842](https://bugs.python.org/issue9842) by @bitdancer. https://bugs.python.org/issue9842 04 November 2018, 22:36:25 UTC
98b8535 bpo-35118: Improve docs regarding indexing (GH-10265) 04 November 2018, 22:34:22 UTC
55f3317 bpo-10536: Enhancements to gettext docs (GH-10324) 04 November 2018, 22:24:41 UTC
622935d bpo-31887: Adds documentations for special multipart/signed handling (GH-4268) This pull request adds some information about the special multipart/signed handling to clear about disabling header folding. https://bugs.python.org/issue31887 04 November 2018, 22:12:34 UTC
59668aa bpo-21263: Skip test_gdb when python has been compiled with LLVM clang (GH-10318) 04 November 2018, 21:21:28 UTC
c03bf0a Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423) 04 November 2018, 21:04:51 UTC
0edc7b1 bpo-35159: Add a link to the devguide in the sidebar of the index (Doc/) (GH-10316) 04 November 2018, 20:41:34 UTC
e359bc2 bpo-35161: Fix stack-use-after-scope in grp.getgr{nam,gid} and pwd.getpw{nam,uid}. (GH-10319) Reported by ASAN. 04 November 2018, 15:44:16 UTC
52465e1 Explain that the orderness of the result of glob is system-dependant (GH-6587) Thanks! 04 November 2018, 14:50:55 UTC
f98c162 Doc: -W flag for sphinx-build can be disabled (GH-10303) 03 November 2018, 18:06:33 UTC
3e28eed bpo-34969: Add --fast, --best on the gzip CLI (GH-9833) 03 November 2018, 15:24:23 UTC
fe62d87 Fix a typo about a comma. (GH-10306) 03 November 2018, 15:05:59 UTC
e2ed5ad bpo-35147: Fix _Py_NO_RETURN for GCC (GH-10300) Use `__GNUC__` instead of non-existing `__GNUC_MAJOR__`. https://bugs.python.org/issue35147 02 November 2018, 16:32:26 UTC
b942707 bpo-29341: Clarify that path-like objects are accepted in some os methods (GH-10101) Some methods in the os module can accept path-like objects. This is documented in the general documentation but not in the function docstrings. To keep both in sync, the docstrings need to be updated to reflect that path-like objects are also accepted. 02 November 2018, 15:20:19 UTC
488c0a6 bpo-33578: Fix getstate/setstate for CJK decoder (GH-10290) Previous version was casting to Py_ssize_t incorrectly and exhibited unexpected behavior on big-endian systems. 02 November 2018, 03:29:40 UTC
318ab63 closes bpo-35139: The `pyexpat` module's macros in `Modules/Setup` now match `setup.py` (GH-10289) This could cause compile errors on macOS or other platforms. 02 November 2018, 02:49:46 UTC
dce345c Simplify sys.breakpointhook implementation (#9519) 01 November 2018, 17:25:05 UTC
bf46a09 bpo-35075: Fix broken url in the pprint documentation (GH-10201) https://bugs.python.org/issue35075 01 November 2018, 12:29:38 UTC
ac22f6a bpo-33578: Add getstate/setstate for CJK codec (GH-6984) This implements getstate and setstate for the cjkcodecs multibyte incremental encoders/decoders, primarily to fix issues with seek/tell. The encoder getstate/setstate is slightly tricky as the "state" is pending bytes + MultibyteCodec_State but only an integer can be returned. The approach I've taken is to encode this data into a long, similar to how .tell() encodes a "cookie_type" as a long. https://bugs.python.org/issue33578 01 November 2018, 10:48:49 UTC
4b5e62d bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268) 01 November 2018, 10:33:35 UTC
a1c249c bpo-35081: And pycore_lifecycle.h and pycore_pathconfig.h (GH-10273) * And pycore_lifecycle.h and pycore_pathconfig.h headers to Include/internal/ * Move Py_BUILD_CORE specific code from coreconfig.h and pylifecycle.h to pycore_pathconfig.h and pycore_lifecycle.h * Move _Py_wstrlist_XXX() definitions and _PyPathConfig code from pycore_state.h to pycore_pathconfig.h * Move "Init" and "Fini" function definitions from pylifecycle.c to pycore_lifecycle.h. 01 November 2018, 02:15:58 UTC
e281f7d bpo-35081: Move accu.h to Include/internal/pycore_accu.h (GH-10271) The accu.h header is no longer part of the Python C API: it has been moved to the "internal" headers which are restricted to Python itself. Replace #include "accu.h" with #include "pycore_accu.h". 01 November 2018, 01:30:36 UTC
50b4857 bpo-35081: Add _PyThreadState_GET() internal macro (GH-10266) If Py_BUILD_CORE is defined, the PyThreadState_GET() macro access _PyRuntime which comes from the internal pycore_state.h header. Public headers must not require internal headers. Move PyThreadState_GET() and _PyInterpreterState_GET_UNSAFE() from Include/pystate.h to Include/internal/pycore_state.h, and rename PyThreadState_GET() to _PyThreadState_GET() there. The PyThreadState_GET() macro of pystate.h is now redefined when pycore_state.h is included, to use the fast _PyThreadState_GET(). Changes: * Add _PyThreadState_GET() macro * Replace "PyThreadState_GET()->interp" with _PyInterpreterState_GET_UNSAFE() * Replace PyThreadState_GET() with _PyThreadState_GET() in internal C files (compiled with Py_BUILD_CORE defined), but keep PyThreadState_GET() in the public header files. * _testcapimodule.c: replace PyThreadState_GET() with PyThreadState_Get(); the module is not compiled with Py_BUILD_CORE defined. * pycore_state.h now requires Py_BUILD_CORE to be defined. 01 November 2018, 00:51:40 UTC
27e2d1f bpo-35081: Add pycore_ prefix to internal header files (GH-10263) * Rename Include/internal/ header files: * pyatomic.h -> pycore_atomic.h * ceval.h -> pycore_ceval.h * condvar.h -> pycore_condvar.h * context.h -> pycore_context.h * pygetopt.h -> pycore_getopt.h * gil.h -> pycore_gil.h * hamt.h -> pycore_hamt.h * hash.h -> pycore_hash.h * mem.h -> pycore_mem.h * pystate.h -> pycore_state.h * warnings.h -> pycore_warnings.h * PCbuild project, Makefile.pre.in, Modules/Setup: add the Include/internal/ directory to the search paths of header files. * Update includes. For example, replace #include "internal/mem.h" with #include "pycore_mem.h". 31 October 2018, 23:52:28 UTC
3a228ab bpo-26558: Fix Py_FatalError() with GIL released (GH-10267) Don't call _Py_FatalError_PrintExc() nor flush_std_files() if the current thread doesn't hold the GIL, or if the current thread has no Python state thread. 31 October 2018, 23:26:41 UTC
2be00d9 bpo-35081: Move Py_BUILD_CORE code to internal/mem.h (GH-10249) * Add #include "internal/mem.h" to C files using _PyMem_SetDefaultAllocator(). * Include/internal/mem.h now requires Py_BUILD_CORE to be defined. 31 October 2018, 19:19:24 UTC
b08746b bpo-35062: Fix parsing _io.IncrementalNewlineDecoder's *translate* argument. (GH-10217) _io.IncrementalNewlineDecoder's initializer possibly assigns out-of-range value to the bitwise struct field. 31 October 2018, 11:49:16 UTC
511747b bpo-35110: Fix yet few spaces before dashes. (GH-10255) 31 October 2018, 09:14:38 UTC
c9a6168 Fix a possible crash in range.__reversed__(). (GH-10252) 31 October 2018, 09:13:16 UTC
0353b4e bpo-33138: Change standard error message for non-pickleable and non-copyable types. (GH-6239) 31 October 2018, 00:28:07 UTC
3f819ca bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231) 31 October 2018, 00:26:06 UTC
68f3237 bpo-35116, urllib.parse: Document the new max_num_fields parameter (GH-10247) 30 October 2018, 20:30:19 UTC
a80af77 bpo-35086: Fix tkinter example "A Simple Hello World Program". (GH-10160) The root widget was accessed as a global variable in the Application's method. 30 October 2018, 14:56:07 UTC
31368a4 bpo-35081: Move Include/pyatomic.c to Include/internal/ (GH-10239) Add pyatomic.h to the VS project (it wasn't referenced). 30 October 2018, 14:14:25 UTC
9204fb8 bpo-35081: Cleanup pystate.c and pystate.h (GH-10240) * Remove _PyThreadState_Current * Replace GET_TSTATE() with PyThreadState_GET() * Replace GET_INTERP_STATE() with _PyInterpreterState_GET_UNSAFE() * Replace direct access to _PyThreadState_Current with PyThreadState_GET() * Replace _PyThreadState_Current with _PyRuntime.gilstate.tstate_current * Rename SET_TSTATE() to _PyThreadState_SET(), name more consistent with _PyThreadState_GET() * Update outdated comments 30 October 2018, 14:13:17 UTC
3c09dca bpo-35059: Convert _Py_Dealloc() to static inline function (GH-10223) Convert _Py_Dealloc() macro into a static inline function. Moreover, it is now also defined as a static inline function if Py_TRACE_REFS is defined. 30 October 2018, 13:48:26 UTC
e1b2995 bpo-32030: Make _PySys_AddXOptionWithError() private (GH-10236) Make _PySys_AddXOptionWithError() and _PySys_AddWarnOptionWithError() functions private again. They are no longer needed to initialize Python: _PySys_EndInit() is now responsible to add these options instead. Moreover, PySys_AddWarnOptionUnicode() now clears the exception on failure if possible. 30 October 2018, 13:31:42 UTC
905f1ac bpo-34523: Fix config_init_fs_encoding() for ASCII (GH-10232) * bpo-34523, bpo-34403: Fix config_init_fs_encoding(): it now uses ASCII if _Py_GetForceASCII() is true. * Fix a regression of commit b2457efc78b74a1d6d1b77d11a939e886b8a4e2c. * Fix also a memory leak: get_locale_encoding() already allocates memory, no need to duplicate the string. 30 October 2018, 11:58:10 UTC
b232df9 bpo-31680: Add curses.ncurses_version. (GH-4217) Use curses.ncurses_version for conditionally skipping a test. 30 October 2018, 11:22:42 UTC
3e429dc bpo-33237: Improve AttributeError message for partially initialized module. (GH-6398) 30 October 2018, 11:19:51 UTC
95b6acf bpo-34876: Change the lineno of the AST for decorated function and class. (GH-9731) It was overridden by the lineno of the first decorator. Now it is the lineno of 'def' or 'class'. 30 October 2018, 11:16:02 UTC
b83d917 Doc: fix asyncio loop.close() description (GH-10229) Needs backport to 3.7. In 3.6 the description is correct. 29 October 2018, 21:39:21 UTC
f6a47f3 bpo-35031: Fix test_start_tls_server_1 on FreeBSD buildbots (GH-10011) Some FreeBSD buildbots fail to run this test as the eof was not being received by the server if the size is not big enough. This behaviour only appears if the client is using TLS1.3. 29 October 2018, 20:47:44 UTC
ed271b2 bpo-34765: install-sh is executable (GH-10225) Fix 'install-sh' file permission: add execution bit ("chmod +x"), "-rw-rw-r--." becomes "-rwxrwxr-x.". 29 October 2018, 20:43:02 UTC
0227748 bpo-34945: Buffer output in test suite only when creating junit file (GH-10204) After commit d0f49d2f5085ca68e3dc8725f1fb1c9674bfb5ed, the output of the test suite is always buffered as the test output needs to be included in the JUnit file in same cases (as when a test fails). This has the consequence that printing or using debuggers (like pdb) in the test suite does not result in a good user experience anymore. This commit modifies the test suite runner so it only captures the test output when the JUnit file is requested to fix the regression so prints and debuggers are usable again. 29 October 2018, 20:09:41 UTC
541497e bpo-35059: Convert Py_XINCREF() to static inline function (GH-10224) Convert Py_XINCREF() and Py_XDECREF() macros into static inline functions. 29 October 2018, 19:52:41 UTC
0200928 Include memo in the documented signature of copy.deepcopy() * Include memo in the documented signature of copy.deepcopy() The memo argument is mentioned lower on the doc page under writing a `__deepcopy__` method, but is not included in the documented function signature. This makes it easy to miss, and can lead to incorrect/buggy implementations of `__deepcopy__` -- which is exatly what just happpend to me! 29 October 2018, 18:30:12 UTC
3b05ad7 bpo-34160: Preserve user specified order of Element attributes in html. (GH-10190) 29 October 2018, 17:31:04 UTC
back to top