summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36018: Add properties for mean and stdev (GH-12022)Raymond Hettinger2019-02-243-6/+26
| | | | | | | | | | | | Responding to suggestions on the tracker and some off-line suggestions. Davin suggested that english named accessors instead of greek letters would result in more intelligible user code. Steven suggested that the parameters still need to be *mu* and *theta* which are used elsewhere (and I noted those parameter names are used in linked-to resources). Michael suggested proving-out the API by seeing whether it generalized to *Lognormal*. I did so and found that Lognormal distribution parameters *mu* and *sigma* do not represent the mean and standard deviation of the lognormal distribution (instead, they are for the underlying regular normal distribution). Putting these ideas together, we have NormalDist parameterized by *mu* and *sigma* but offering English named properties for accessors. That gives lets us match other API that access mu and sigma, it matches the external resources on the topic, gives us clear english names in user code. The API extends nicely to LogNormal where the parameters and the summary statistic accessors are not the same. https://bugs.python.org/issue36018
* bpo-35512: Resolve string target to patch.dict decorator during function ↵Xtreak2019-02-244-2/+25
| | | | | | | | | | | | | | call GH#12000 * Resolve string target to patch.dict during function call * Add NEWS entry * Remove unneeded call * Restore original value for support.target and refactor assertions * Add extra assertion to verify unpatched dict
* bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk ↵Ned Deily2019-02-242-1/+7
| | | | (GH-12011)
* bpo-36018: Make __pos__ return a distinct instance of NormDist (GH-12009)Raymond Hettinger2019-02-242-1/+13
| | | https://bugs.python.org/issue36018
* bpo-35813: Tests and docs for shared_memory (#11816)Davin Potts2019-02-249-1022/+1504
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added tests for shared_memory submodule. * Added tests for ShareableList. * Fix bug in allocationn size during creation of empty ShareableList illuminated by existing test run on Linux. * Initial set of docs for shared_memory module. * Added docs for ShareableList, added doctree entry for shared_memory submodule, name refactoring for greater clarity. * Added examples to SharedMemoryManager docs, for ease of documentation switched away from exclusively registered functions to some explicit methods on SharedMemoryManager. * Wording tweaks to docs. * Fix test failures on Windows. * Added tests around SharedMemoryManager. * Documentation tweaks. * Fix inappropriate test on Windows. * Further documentation tweaks. * Fix bare exception. * Removed __copyright__. * Fixed typo in doc, removed comment. * Updated SharedMemoryManager preliminary tests to reflect change of not supporting all registered functions on SyncManager. * Added Sphinx doctest run controls. * CloseHandle should be in a finally block in case MapViewOfFile fails. * Missed opportunity to use with statement. * Switch to self.addCleanup to spare long try/finally blocks and save one indentation, change to use decorator to skip test instead. * Simplify the posixshmem extension module. Provide shm_open() and shm_unlink() functions. Move other functionality into the shared_memory.py module. * Added to doc around size parameter of SharedMemory. * Changed PosixSharedMemory.size to use os.fstat. * Change SharedMemory.buf to a read-only property as well as NamedSharedMemory.size. * Marked as provisional per PEP411 in docstring. * Changed SharedMemoryTracker to be private. * Removed registered Proxy Objects from SharedMemoryManager. * Removed shareable_wrap(). * Removed shareable_wrap() and dangling references to it. * For consistency added __reduce__ to key classes. * Fix for potential race condition on Windows for O_CREX. * Remove unused imports. * Update access to kernel32 on Windows per feedback from eryksun. * Moved kernel32 calls to _winapi. * Removed ShareableList.copy as redundant. * Changes to _winapi use from eryksun feedback. * Adopt simpler SharedMemory API, collapsing PosixSharedMemory and WindowsNamedSharedMemory into one. * Fix missing docstring on class, add test for ignoring size when attaching. * Moved SharedMemoryManager to managers module, tweak to fragile test. * Tweak to exception in OpenFileMapping suggested by eryksun. * Mark a few dangling bits as private as suggested by Giampaolo.
* bpo-24310: Document IDLE settings dialog font tab sample (GH-12007)Terry Jan Reedy2019-02-244-1/+17
|
* fix _abc.c compile error on Cygwin (GH-8445)E. M. Bray2019-02-241-1/+1
|
* bpo-36018: Add the NormalDist class to the statistics module (GH-11973)Raymond Hettinger2019-02-235-1/+556
|
* bpo-35724: Explicitly require the main interpreter for signal-handling. ↵Eric Snow2019-02-234-9/+39
| | | | | | | (GH-11530) Ensure that the main interpreter is active (in the main thread) for signal-handling operations. This is increasingly relevant as people use subinterpreters more. https://bugs.python.org/issue35724
* bpo-1054041: Add What's New docs. (GH-11999)Gregory P. Smith2019-02-232-0/+7
| | | Add What's New docs about the Ctrl-C improvement. Correct the issue number in the NEWS entry.
* bpo-35886: Make PyInterpreterState an opaque type in the public API. (GH-11731)Eric Snow2019-02-238-102/+129
| | | Move PyInterpreterState into the "internal" header files.
* bpo-36016: Add generation option to gc.getobjects() (GH-11909)Pablo Galindo2019-02-236-14/+112
|
* bpo-36074: Result of `asyncio.Server.sockets` after `Server.close()` after ↵Emmanuel Arias2019-02-221-2/+1
| | | | | | | | | | | is not clear (GH-11987) [bpo-36074](https://bugs.python.org/issue36074): It becomes clear on that the None is still return for server closed. https://bugs.python.org/issue36074
* bpo-36019: Use pythontest.net instead of example.com in network tests (GH-11941)Stéphane Wirtel2019-02-226-10/+22
|
* Include the --prompt flag in venv's help output (GH-10711)Holger Frey2019-02-221-1/+3
| | | Document usage of the existing `--prompt` option in the command line help.
* Doc: Missing backquotes. (GH-11982)Julien Palard2019-02-221-1/+1
|
* bpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903)Manjusaka2019-02-221-2/+4
|
* bpo-35904: Add statistics.fmean() (GH-11892)Raymond Hettinger2019-02-216-3/+104
|
* bpo-36068: Make _tuplegetter objects serializable (GH-11981)Joe Jevnik2019-02-213-3/+23
|
* bpo-36057 Update docs and tests for ordering in collections.Counter [no ↵Raymond Hettinger2019-02-213-7/+69
| | | | | | | | | | behavior change] (#11962) * Add tests for Counter order. No behavior change. * Update docs and tests * Fix doctest output and capitalization
* bpo-36060: Document how collections.ChainMap() determines iteration order ↵Raymond Hettinger2019-02-212-0/+29
| | | | (GH-11969)
* Document other performance implication for __slots__ (GH-11974)Raymond Hettinger2019-02-211-0/+1
|
* bpo-36052: Raise a SyntaxError when assigning a value to __debug__ with := ↵Stéphane Wirtel2019-02-213-1/+7
| | | | | | | (GH-11958) Trying to assign a value to __debug__ using the assignment operator is supposed to fail, but a missing check for forbidden names when setting the context in the ast was preventing this behaviour.
* bpo-36063: Minor performance tweak in long_divmod(). (GH-11915)Sergey Fedoseev2019-02-211-2/+2
|
* bpo-36059: Update OrderedDict() docs to reflect that regular dicts are now ↵Raymond Hettinger2019-02-211-43/+53
| | | | ordered (GH-11966)
* Doc: fix example for iter() function. (GH-11959)Cristian Ciupitu2019-02-211-1/+1
| | | | | read() returns bytes for a file opened in binary mode, so b'' should be used as a sentinel instead of ''. Otherwise the loop will be infinite.
* bpo-33989: Ensure that ms.key_compare is always initialized in ↵Zackery Spytz2019-02-212-0/+5
| | | | list_sort_impl(). (GH-8710)
* bpo-36062: Minor speed-up for list slicing and copying. (GH-11967)Sergey Fedoseev2019-02-211-8/+12
|
* Re-init _Py_UnhandledKeyboardInterrupt before run. (GH-11963)Gregory P. Smith2019-02-211-0/+11
| | | | | | | | | | Explicitly reinitialize this every eval *just in case* someone is calling into an embedded Python where they don't care about an uncaught KeyboardInterrupt exception (why didn't they leave `config.install_signal_handlers` set to `0`?!?) but then later call `Py_Main()` itself (which *checks* this flag and dies with a signal after its interpreter exits). We don't want a previous embedded interpreter's uncaught exception to trigger an unexplained signal exit from a future `Py_Main()` based one.
* bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960)Raymond Hettinger2019-02-201-1/+1
| | | https://bugs.python.org/issue31982
* bpo-36012: Avoid linear slot search for non-dunder methods (GH-11907)Stefan Behnel2019-02-203-13/+45
|
* bpo-35993: Fix _PyInterpreterState_DeleteExceptMain() (GH-11852)Stéphane Wirtel2019-02-202-2/+6
| | | Fix a crash on fork when using subinterpreters.
* bpo-12822: use monotonic clock for condvar if possible (GH-11723)Inada Naoki2019-02-208-51/+87
|
* bpo-36049: Fix compiler warning in Python/ast.c (GH-11949)Pablo Galindo2019-02-191-1/+1
|
* bpo-35584: Clarify role of caret in a class class (GH-11946)Raymond Hettinger2019-02-191-2/+3
| | | https://bugs.python.org/issue35584
* bpo-36037: Fix test_ssl for strict OpenSSL policy (GH-11940)Victor Stinner2019-02-192-1/+32
| | | | | Fix test_ssl for strict OpenSSL configuration like RHEL8 strict crypto policy. Use older TLS version for minimum TLS version of the server SSL context if needed, to test TLS version older than default minimum TLS version.
* bpo-35153: Add headers parameter to xmlrpc.client.ServerProxy (GH-10308)Cédric Krier2019-02-194-11/+86
| | | Allow to add HTTP headers to XML-RPC requests sent to the server.
* Doc: Fix typo. (GH-11315)Julien Palard2019-02-191-1/+1
| | | From: https://mail.python.org/pipermail/docs/2018-December/038583.html
* bpo-31506: Clarify error messages for object.__new__ and object.__init__ ↵Sanyam Khurana2019-02-193-10/+22
| | | | | | | | | (GH-11641) `object.__new__` and `object.__init__` do take one argument each, they just don't take extra user supplied arguments. Patch by Sanyam Khurana.
* Fix a misnamed test for lists. (GH-11933)Serhiy Storchaka2019-02-191-1/+7
|
* Fix syntax warnings in tests introduced in bpo-35942. (GH-11934)Serhiy Storchaka2019-02-191-12/+4
|
* Fix syntax warnings in tests introduced in bpo-15248. (GH-11932)Serhiy Storchaka2019-02-193-6/+10
|
* bpo-35798: Add test.support.check_syntax_warning(). (#11895)Serhiy Storchaka2019-02-195-55/+62
| | | | | | | It checks that a SyntaxWarning is raised when compile specified statement, that it is raised only once, that it is converted to a SyntaxError when raised as exception, and that both warning and exception objects have corresponding attributes.
* bpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472)Cheryl Sabella2019-02-194-16/+408
|
* bpo-34572: change _pickle unpickling to use import rather than retrieving ↵tjb9002019-02-183-7/+75
| | | | | from sys.modules (GH-9047) Fix C implementation of pickle.loads to use importlib's locking mechanisms, and thereby avoid using partially-loaded modules.
* bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)animalize2019-02-185-1/+49
| | | | | | Need to reset capturing groups between two SRE(match) callings in loops, this fixes wrong capturing groups in rare cases. Also add a missing index in re.rst.
* bpo-35704: Include correct NEWS entry (GH-11914)Nick Coghlan2019-02-182-2/+4
| | | | | | | The wrong NEWS snippet was inadvertently included in GH-11500, this switches to the correct one. https://bugs.python.org/issue35704
* bpo-35704: Prevent test_shutil fail result when AIX is 32-bit and MAXDATA < ↵Michael Felt2019-02-182-0/+15
| | | | | 0x20000000 (GH-11500) https://bugs.python.org/issue35704
* bpo-35942: Improve the error message if __fspath__ returns invalid types in ↵Pablo Galindo2019-02-183-9/+36
| | | | | path_converter (GH-11831) The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
* bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857)Ivan Levkivskyi2019-02-173-3/+15
| | | | Not using `__class_getitem__()` fallback if there is a non-subcriptable metaclass was caused by a certain asymmetry between how `PySequenceMethods` and `PyMappingMethods` are used in `PyObject_GetItem`. This PR removes this asymmetry. No tests failed, so I assume it was not intentional.