- 26 Feb, 2019 1 commit
-
-
ngie-eign authored
Per POSIX, `nice(3)` requires `unistd.h` and `exit(3)` requires `stdlib.h`. Fixing the test will prevent false positives with pedantic compilers like clang.
-
- 25 Feb, 2019 15 commits
-
-
Zackery Spytz authored
-
Davin Potts authored
-
Anthony Sottile authored
-
Xtreak authored
-
Sergey Fedoseev authored
-
Łukasz Langa authored
-
Łukasz Langa authored
Python 3.8.0a2
-
Sergey Fedoseev authored
-
Andre Delfino authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Deprecate using the __int__() method in implicit conversions of Python numbers to C integers.
-
Sergey Fedoseev authored
-
Łukasz Langa authored
-
Miro Hrončok authored
More specifically, the options of --check-hash-based-pycs.
-
- 24 Feb, 2019 10 commits
-
-
Giampaolo Rodola authored
-
Eric Snow authored
This involves moving the global "pending calls" state to PyInterpreterState. https://bugs.python.org/issue33608
-
animalize authored
* remove non-ascii characters in docstring * clinic.py emits a warning when docstring has non-ascii character
-
Raymond Hettinger authored
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
-
Xtreak authored
* 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
-
Ned Deily authored
-
-
Davin Potts authored
* 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.
-
Terry Jan Reedy authored
-
E. M. Bray authored
-
- 23 Feb, 2019 5 commits
-
-
Raymond Hettinger authored
-
Eric Snow authored
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
-
Gregory P. Smith authored
Add What's New docs about the Ctrl-C improvement. Correct the issue number in the NEWS entry.
-
Eric Snow authored
Move PyInterpreterState into the "internal" header files.
-
Pablo Galindo authored
-
- 22 Feb, 2019 5 commits
-
-
Emmanuel Arias authored
bpo-36074: Result of `asyncio.Server.sockets` after `Server.close()` after 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
-
Stéphane Wirtel authored
-
Holger Frey authored
Document usage of the existing `--prompt` option in the command line help.
-
Julien Palard authored
-
Manjusaka authored
-
- 21 Feb, 2019 4 commits
-
-
Raymond Hettinger authored
-
Joe Jevnik authored
-
Raymond Hettinger authored
* Add tests for Counter order. No behavior change. * Update docs and tests * Fix doctest output and capitalization
-
Raymond Hettinger authored
-