summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests ↵Tal Einat2018-08-057-144/+416
| | | | | | | | (GH-7683) * make CallTip and ToolTip sub-classes of a common abstract base class * remove ListboxToolTip (unused and ugly) * greatly increase test coverage * tested on Windows, Linux and macOS
* Fix reST markup in unittest documentation (GH-8665)Berker Peksag2018-08-031-1/+1
|
* bpo-34170: Fix pymain_run_file() (GH-8660)Victor Stinner2018-08-031-6/+6
| | | | | bpo-34170, bpo-34326: Fix pymain_run_file(): use PyRun_AnyFileExFlags(closeit=1) instead of calling fclose(fp) explicitly to close the input file before running the code.
* bpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655)Stefan Otte2018-08-032-3/+9
|
* bpo-34170: _PyCoreConfig_Read() don't replace coerce_c_locale (GH-8658)Victor Stinner2018-08-033-17/+19
| | | | If coerce_c_locale is already set (>= 0), use its value: don't override it.
* bpo-34325: Skip zipfile test for large timestamps when filesystem don't ↵Marcel Plch2018-08-031-1/+5
| | | | | | support them. (GH-8656) When the filesystem doesn't support files with large timestamps, skip testing that such files can be zipped.
* bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592)Victor Stinner2018-08-0322-93/+107
| | | | sys_setcheckinterval() now uses a local variable to parse arguments, before writing into interp->check_interval.
* Fix docstring of Profiler class (GH-8651)INADA Naoki2018-08-032-4/+4
|
* Improve the grammar in `range` documentation. (GH-8628)Andrés Delfino2018-08-031-1/+1
| | | Remove unnecessary "that" in the sentence.
* bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)Terry Jan Reedy2018-08-032-0/+3
| | | | | | Some MacOS-tk combinations need .update_idletasks(). The call is both unneeded and innocuous on Linux and Windows. Patch by Kevin Waltzer.
* Update list.remove(x) documentation (GH-8636)Lysandros Nikolaou2018-08-031-2/+2
| | | Rephrase it to "It raises a `ValueError`"
* bpo-34317: Fix a dead url to Windows documentation (GH-8622)HiyashiChuka2018-08-031-1/+1
|
* bpo-30317: Fix multiprocessing test_timeout() (GH-8621)Victor Stinner2018-08-031-3/+4
| | | | | Multiprocessing test_timeout() now accepts a delta of 100 ms instead of just 50 ms, since the test failed with 135.8 ms instead of the expected 200 ms.
* bpo-34170: Cleanup pymain_run_filename() (GH-8631)Victor Stinner2018-08-021-85/+71
| | | | | | | * Inline pymain_run_file() and pymain_open_filename() into pymain_run_filename() * Created pymain_run_stdin() which is pymain_run_filename() with filename=NULL * Rename pymain_run_filename() to pymain_run_file()
* bpo-27910: Update documentation of traceback module (GH-6116)torsava2018-08-022-30/+35
| | | | | | | | | | In the documentation for the traceback module, the definitions of functions extract_tb(), format_list() and classmethod StackSummary.from_list() mention the old style 4-tuples that these functions used to return or accept. Since Python 3.5, however, they return or accept a FrameSummary object instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples. Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
* bpo-34097: Add support for zipping files older than 1980-01-01 (GH-8270)Marcel Plch2018-08-024-5/+48
| | | | | ZipFile can zip files older than 1980-01-01 and newer than 2107-12-31 using a new strict_timestamps parameter at the cost of setting the timestamp to the limit.
* bpo-34287: Do not use second argument of METH_NOARGS functions (GH-8582)jdemeyer2018-08-021-21/+21
|
* bpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)Tal Einat2018-08-021-2/+4
|
* bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)Tal Einat2018-08-026-0/+10
| | | | Added missing .grab_release() calls to all places where we call .grab_set().
* bpo-31650: Remove _Py_CheckHashBasedPycsMode global config var (GH-8608)Victor Stinner2018-08-016-24/+7
| | | | | | | | bpo-31650, bpo-34170: Replace _Py_CheckHashBasedPycsMode with _PyCoreConfig._check_hash_pycs_mode. Modify PyInit__imp() and zipimport to get the parameter from the current interpreter core configuration. Remove Include/internal/import.h file.
* bpo-34170: Add Python/coreconfig.c for _PyCoreConfig (GH-8607)Victor Stinner2018-08-0114-1288/+1314
| | | | | | | * Add Include/coreconfig.h * Move config_*() and _PyCoreConfig_*() functions from Modules/main.c to a new Python/coreconfig.c file. * Inline _Py_ReadHashSeed() into config_init_hash_seed() * Move global configuration variables to coreconfig.c
* Define _Py_NO_RETURN for Microsoft C compiler (GH-8606)Victor Stinner2018-08-013-6/+8
|
* bpo-33499: Fix pymain_init_pycache_prefix() (GH-8596)Victor Stinner2018-08-011-10/+10
| | | | Fix a memory leak in pymain_init_pycache_prefix() when PYTHONPYCACHEPREFIX and -X pycache_prefix are used.
* bpo-34170: _PyCoreConfig_Read() defaults to argc=0 (GH-8595)Victor Stinner2018-08-013-1/+16
| | | Add unit tests for argc and argv of _PyCoreConfig.
* bpo-34170: Rename _PyCoreConfig.unbuffered_stdip (GH-8594)Victor Stinner2018-08-014-28/+33
| | | | * Rename _PyCoreConfig.unbuffered_stdio to buffered_stdio * Rename _PyCoreConfig.debug to parser_debug
* bpo-34170: Py_Main() updates config when setting Py_InspectFlag (GH-8593)Victor Stinner2018-08-011-0/+3
|
* bpo-34170: Add _PyCoreConfig._frozen parameter (GH-8591)Victor Stinner2018-08-017-8/+37
| | | Modify frozenmain.c to use _Py_InitializeFromConfig().
* bpo-34113: Fix a crash when using LLTRACE is on (GH-8517)costypetrisor2018-07-313-17/+60
| | | Fix a crash on negative STACKADJ() when Low-Level trace (LLTRACE) is enabled.
* bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532)MartinAltmayer2018-07-313-5/+6
|
* bpo-33089: Add math.dist() for computing the Euclidean distance between two ↵Raymond Hettinger2018-07-315-1/+236
| | | | points (GH-8561)
* bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931)Serhiy Storchaka2018-07-315-32/+114
| | | | | | | | | | | | * Fix integer overflow in os.readv(), os.writev(), os.preadv() and os.pwritev() and in os.sendfile() with headers or trailers arguments (on BSD-based OSes and MacOS). * Fix sending the part of the file in os.sendfile() on MacOS. Using the trailers argument could cause sending more bytes from the input file than was specified. Thanks Ned Deily for testing on 32-bit MacOS.
* bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346)Serhiy Storchaka2018-07-3112-232/+214
| | | | | | | | | | | | | | | | | | | | | | | | * help(hashlib) didn't work because of incorrect module name in blake2b and blake2s classes. * Constructors blake2*(), sha3_*(), shake_*() and keccak_*() incorrectly accepted keyword argument "string" for binary data, but documented as accepting the "data" keyword argument. Now this parameter is positional-only. * Keyword-only parameters in blake2b() and blake2s() were not documented as keyword-only. * Default value for some parameters of blake2b() and blake2s() was None, which is not acceptable value. * The length argument for shake_*.digest() was wrapped out to 32 bits. * The argument for shake_128.digest() and shake_128.hexdigest() was not positional-only as intended. * TypeError messages for incorrect arguments in all constructors sha3_*(), shake_*() and keccak_*() incorrectly referred to sha3_224. Also made the following enhancements: * More accurately specified input and result types for strings, bytes and bytes-like objects. * Unified positional parameter names for update() and constructors. * Improved formatting.
* Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a ↵Serhiy Storchaka2018-07-317-36/+12
| | | | | | | | generator expression (GH-3771)" (#8241) This reverts commit af810b35b494ef1d255d4bf340b92a9dad446995. This is not valid syntax (see bpo-32012).
* bpo-1617161: Make the hash and equality of methods not depending on the ↵Serhiy Storchaka2018-07-316-73/+112
| | | | | | | | | | | value of self. (GH-7848) * The hash of BuiltinMethodType instances no longer depends on the hash of __self__. It depends now on the hash of id(__self__). * The hash and equality of ModuleType and MethodWrapperType instances no longer depend on the hash and equality of __self__. They depend now on the hash and equality of id(__self__). * MethodWrapperType instances no longer support ordering.
* bpo-27671: Update FAQ about why len is function (GH-8432)INADA Naoki2018-07-311-18/+19
|
* Remove creation of a list for row_cast_map in pysqlite_cursor_init() (GH-8494)Sergey Fedoseev2018-07-301-5/+2
| | | | | This list is never used: if detect_types is on, this list will be replaced with another one before row_cast_map is used, if detect_types is off, row_cast_map is not used at all.
* bpo-33833: Fix ProactorSocketTransport AssertionError (#7893)twisteroid ambassador2018-07-303-0/+19
|
* Use 'for example' instead of 'in other words' in compound statement doc ↵Andrés Delfino2018-07-301-1/+1
| | | | (GH-8401)
* Fix typos & formatting in Using Python on Windows doc (GH-8559)Segev Finer2018-07-301-4/+4
|
* Add docstrings to public methods from context.c (GH-8531)Peter Lamut2018-07-303-17/+80
|
* bpo-34075: Deprecate non-ThreadPoolExecutor in loop.set_default_executor() ↵Elvis Pranskevichus2018-07-305-2/+35
| | | | | | | (GH-8533) Various asyncio internals expect that the default executor is a `ThreadPoolExecutor`, so deprecate passing anything else to `loop.set_default_executor()`.
* bpo-34182: Fix test_pydoc running as a script. (GH-8389)Bo Bayles2018-07-291-1/+2
|
* bpo-34035: Fix several AttributeError in zipfile seek() methods. (GH-8527)Mickaël Schoentgen2018-07-294-4/+9
|
* bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544)Franz Wöllert2018-07-293-22/+26
|
* bpo-34231: PYTHONBREAKPOINT is not documented on python --help (GH-8475)Stéphane Wirtel2018-07-292-0/+5
|
* Updated MSI README to mention dependency on .NET 3.5. (GH-8375)Vinay Sajip2018-07-291-0/+8
|
* bpo-8145: Improve isolation_level documentation (GH-8499)Berker Peksag2018-07-291-14/+22
| | | Initial patch by R. David Murray.
* bpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510)Berker Peksag2018-07-282-0/+4
|
* bpo-42349: Switch to test.support.unlink per review by Serhiy Storchaka ↵Tim Golden2018-07-281-4/+1
| | | | | (GH-8529) Serhiy Storchaka pointed out that using test.support.unlink was preferable
* bpo-33089: Multidimensional math.hypot() (GH-8474)Raymond Hettinger2018-07-285-81/+143
|