summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* ctypes: remove use of legacy unicode API (GH-12340)Inada Naoki2019-04-192-15/+19
| | | PyUnicode_AsUnicodeAndSize() -> PyUnicode_AsWideChar()
* bpo-30485: Change the prefix for defining the default namespace in ↵Stefan Behnel2019-04-184-11/+7
| | | | ElementPath from None to '' since there is existing code that uses that and it's more convenient to have an all-string-keys dict (e.g. when sorting items etc.). (#12860)
* bpo-36651: Fixed Asyncio Event Loop documentation inconsistency (GH-12866)Enrico Alarico Carbognani2019-04-181-3/+3
| | | | | | | | | | | | # [bpo-36651](https://bugs.python.org/issue36651): Fixed Asyncio Event Loop documentation inconsistency In the documentation for the call_later and the call_at methods there is a note which says that the delay cannot be longer than a day, but both methods have a note saying that this limitation was removed in Python 3.8 Here I fixed this issue by removing the pre-exising note and added a versionchanged. To test my changes I have rebuilt the documentation with ```make html```. I did not have any errors and the effected page displayed correctly on a browser. https://bugs.python.org/issue36651
* bpo-36635: Add _testinternalcapi module (GH-12841)Victor Stinner2019-04-1813-49/+172
| | | | | | Add a new _testinternalcapi module to test the internal C API. Move _Py_GetConfigsAsDict() function to the internal C API: _testembed now uses _testinternalcapi to access the function.
* bpo-36071 Add support for Windows ARM32 in ctypes/libffi (GH-12059)Paul Monson2019-04-187-8/+31
|
* bpo-36638: Fix WindowsLoadTracker exception on some Windows versions (GH-12849)Paul Monson2019-04-181-2/+7
|
* Fix wrong indentation of a paragraph in documentation (GH-12868)cocoatomo2019-04-181-2/+2
| | | This paragraph doesn't seem to be a part of code, but merged into previous code block.
* bpo-32913: Added re.Match.groupdict example to regex HOWTO (GH-5821)josh2019-04-172-0/+8
|
* bpo-36649: Remove trailing spaces for registry keys when installed via the ↵Steve Dower2019-04-172-7/+7
| | | | Store (GH-12865)
* bpo-36635: Change pyport.h for Py_BUILD_CORE_MODULE define (GH-12853)Victor Stinner2019-04-1726-56/+97
| | | | | | | | | | | | | | | | | | | | Change PyAPI_FUNC(type), PyAPI_DATA(type) and PyMODINIT_FUNC macros of pyport.h when Py_BUILD_CORE_MODULE is defined. The Py_BUILD_CORE_MODULE define must be now be used to build a C extension as a dynamic library accessing Python internals: export the PyInit_xxx() function in DLL exports on Windows. Changes: * Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE now imply Py_BUILD_CORE directy in pyport.h. * ceval.c compilation now fails with an error if Py_BUILD_CORE is not defined, just to ensure that Python is build with the correct defines. * setup.py now compiles _pickle.c with Py_BUILD_CORE_MODULE define. * setup.py compiles _json.c with Py_BUILD_CORE_MODULE define, rather than Py_BUILD_CORE_BUILTIN define * PCbuild/pythoncore.vcxproj: Add Py_BUILD_CORE_BUILTIN define.
* bpo-32849: Fix is_valid_fd() on FreeBSD (GH-12852)Victor Stinner2019-04-172-15/+25
| | | | | | | Fix Python Initialization code on FreeBSD to detect properly when stdin file descriptor (fd 0) is invalid. On FreeBSD, fstat() must be used to check if stdin (fd 0) is valid. dup(0) doesn't fail if stdin is invalid in some cases.
* bpo-35755: Don't say "to mimick Unix which command behavior" (GH-12861)Victor Stinner2019-04-173-4/+3
|
* bpo-31904: Port test_resource to VxWorks (GH-12719)Lihua Zhao2019-04-173-0/+7
| | | Skip tests cases setting RLIMIT_FSIZE and RLIMIT_CPU on VxWorks.
* bpo-31904: Port test_cmd_line to VxWorks (#12648)Lihua Zhao2019-04-171-0/+2
| | | subprocess.Popen doesn't support preexec on VxWorks.
* bpo-35755: Remove current directory from posixpath.defpath (GH-11586)Victor Stinner2019-04-172-1/+6
| | | Document the change in a NEWS entry of the Security category.
* bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858)Victor Stinner2019-04-175-18/+155
| | | | | | | | | | | | | | | | shutil.which() and distutils.spawn.find_executable() now use os.confstr("CS_PATH") if available instead of os.defpath, if the PATH environment variable is not set. Don't use os.confstr("CS_PATH") nor os.defpath if the PATH environment variable is set to an empty string to mimick Unix 'which' command behavior. Changes: * find_executable() now starts by checking for the executable in the current working directly case. Add an explicit "if not path: return None". * Add tests for PATH='' (empty string), PATH=':' and for PATHEXT.
* Clarify file-closing example in tutorial (GH-11652)Colin Watson2019-04-171-0/+2
|
* bpo-31904: Fix test_tabnanny on VxWorks (GH-12646)Lihua Zhao2019-04-172-2/+5
| | | | Fix test_tabnanny on VxWorks: adjust ENOENT error message, use os.strerror().
* bpo-36642: make unicodedata const (GH-12855)Inada Naoki2019-04-165-19/+19
|
* bpo-36641: Add "const" to PyDoc_VAR macro (GH-12854)Inada Naoki2019-04-163-2/+4
| | | It reduces "data" segment in python about 200KB.
* bpo-33783: Use proper class markup for random.Random docs (GHè7817)Matthias Bussonnier2019-04-161-0/+5
| | | | Signed-off-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
* Add myself to CODEOWNERS for sqlite3 and urllib.robotparser (GH-12856)Berker Peksag2019-04-161-0/+6
|
* bpo-36345: Update wsgiref example (GH-12562)Stéphane Wirtel2019-04-163-32/+10
| | | | Use literalinclude markup to include Tools/scripts/serve.py code. Tools/scripts/serve.py first argument on the command line is now optional.
* bpo-27860: ipaddress: fix Interface missed some attributes (GH-12836)Inada Naoki2019-04-152-71/+56
| | | | | | | IPv4Interface and IPv6Interface did not has netmask and hostmask attributes when its argument is bytes or int. This commit extracts method for constructors of Network and Interface, and ensure Interface class always provides them.
* bpo-36348: IMAP4.logout() doesn't ignore exc (GH-12411)Victor Stinner2019-04-155-13/+28
| | | | | | | | | | | | The imap.IMAP4.logout() method no longer ignores silently arbitrary exceptions. Changes: * The IMAP4.logout() method now expects a "BYE" untagged response, rather than relying on _check_bye() which raises a self.abort() exception. * IMAP4.__exit__() now does nothing if the client already logged out. * Add more debug info if test_logout() tests fail.
* bpo-36389: Cleanup gc.set_threshold() (GH-12844)Victor Stinner2019-04-151-2/+2
| | | | Don't assign generations[2].threshold to generations[2].threshold: useless operation.
* bpo-35134: Add cpython/pymem.h to build system (GH-12842)Victor Stinner2019-04-153-0/+5
|
* bpo-35134: Add Include/cpython/pymem.h (GH-12840)Victor Stinner2019-04-152-95/+106
| | | | Move unstable CPython API from Include/pymem.h into a new Include/cpython/pymem.h header file.
* Doc: update PendingDeprecationWarning explanation (GH-12837)Inada Naoki2019-04-151-9/+6
| | | | | | Keep the nudge towards DeprecationWarning, but remove the "Note" markup and generally shorten the description. Ref: https://github.com/python/cpython/pull/12505/files#r273978757
* bpo-36625: Remove obsolete comments from docstrings in fractions module ↵Jakub Molinski2019-04-153-3/+5
| | | | | (GH-12822) Remove left-over references to Python 3.0 as the future in Fraction class docstrings.
* bpo-36629: Add support.get_socket_conn_refused_errs() (GH-12834)Victor Stinner2019-04-154-16/+21
| | | | Fix test_imap4_host_default_value() of test_imaplib: catch also errno.ENETUNREACH error.
* bpo-31904: Port the time module on VxWorks (GH-12305)pxinwr2019-04-154-5/+15
| | | time.clock() is not available on VxWorks.
* bpo-31904: Don't build the _crypt extension on VxWorks (GH-12833)pxinwr2019-04-153-6/+10
|
* bpo-27860: use cached_property (GH-12832)Inada Naoki2019-04-152-53/+17
| | | | * cached_property is more efficient than hand crafted cache. * In IPv[46]Network, `self.network.prefixlen` is same to `self._prefixlen`.
* bpo-30485: Re-allow empty strings in ElementPath namespace mappings since ↵Stefan Behnel2019-04-142-5/+0
| | | | they might actually be harmless and unused (and thus went undetected previously). (#12830)
* bpo-16079: fix duplicate test method name in test_gzip. (GH-12827)Gregory P. Smith2019-04-141-1/+1
|
* bpo-31658: Make xml.sax.parse accepting Path objects (GH-8564)Mickaël Schoentgen2019-04-144-2/+21
|
* bpo-30485: support a default prefix mapping in ElementPath by passing None ↵Stefan Behnel2019-04-144-12/+39
| | | | as prefix (#1823)
* bpo-36227: ElementTree.tostring() default_namespace and xml_declaration ↵Bernt Røskar Brenna2019-04-144-9/+152
| | | | | arguments (GH-12225) Add new keyword arguments "default_namespace" and "xml_declaration" to functions ET.tostring() and ET.tostringlist(), as known from ElementTree.write().
* bpo-36593: Fix isinstance check for Mock objects with spec executed under ↵Xtreak2019-04-133-1/+41
| | | | | tracing (GH-12790) In Python having a trace function in effect while mock is imported causes isinstance to be wrong for MagicMocks. This is due to the usage of super() in some class methods, as this sets the __class__ attribute. To avoid this, as a workaround, alias the usage of super .
* bpo-36427: Document that PyEval_RestoreThread and PyGILState_Ensure can ↵Pablo Galindo2019-04-131-0/+12
| | | | | | | | terminate the calling thread (GH-12541) Calling these function from a thread when the runtime is finalizing will terminate the thread, even if the thread was not created by Python. Users can use _Py_IsFinalizing or sys.is_finalizing to check if the interpreter is in the process of being finalized before calling this function to avoid unwanted termination.
* Skip test_preadv_flags if RWF_HIPRI is not supported by the system (GH-12762)Pablo Galindo2019-04-131-0/+8
|
* bpo-36623: Clean parser headers and include files (GH-12253)Pablo Galindo2019-04-1319-83/+16
| | | After the removal of pgen, multiple header and function prototypes that lack implementation or are unused are still lying around.
* bpo-18610: Update wsgiref.validate docstring for wsgi.input read() (GH-11663)Cheryl Sabella2019-04-131-1/+1
|
* bpo-35734: ipaddress: remove unused methods (GH-11591)Rémi Lapeyre2019-04-132-71/+1
|
* Doc: define PY_SSIZE_T_CLEAN always (GH-12794)Inada Naoki2019-04-1310-4/+22
|
* bpo-36618: Don't add -fmax-type-align flag to old clang (GH-12811)Victor Stinner2019-04-123-6/+16
|
* bpo-35581: Document @typing.type_check_only (GH-11312)Sebastian Rittau2019-04-122-0/+19
|
* bpo-33922: Adding documentation for new "-64" suffix of Python launcher ↵mrh19972019-04-122-13/+24
| | | | | (GH-7849) Since bpo-30291 it is possible to specify the architecture of Python when using the launcher
* bpo-18748: test_io: silence destructor errors (GH-12805)Victor Stinner2019-04-121-0/+29
|