summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32797: improve documentation of linecache.getline (GH-9540)jdemeyer2018-10-241-4/+7
|
* bpo-33899: Mention tokenize behavior change in What's New (GH-10073)Tal Einat2018-10-243-0/+21
|
* bpo-30863: Rewrite PyUnicode_AsWideChar() and PyUnicode_AsWideCharString(). ↵Serhiy Storchaka2018-10-232-123/+123
| | | | | | (GH-2599) They no longer cache the wchar_t* representation of string objects.
* bpo-34794: Fix a leak in Tkinter. (GH-10025)Serhiy Storchaka2018-10-232-3/+3
| | | Based on the investigation by Xiang Zhang.
* Fix error handling bugs in _elementtree.c. (GH-10060)Zackery Spytz2018-10-231-11/+11
| | | | References could leak, NULL could be dereferenced, and the Expat parser could be double freed when some errors raised.
* bpo-9263: _PyObject_Dump() detects freed memory (GH-10061)Victor Stinner2018-10-234-24/+75
| | | | | | | | | _PyObject_Dump() now uses an heuristic to check if the object memory has been freed: log "<freed object>" in that case. The heuristic rely on the debug hooks on Python memory allocators which fills the memory with DEADBYTE (0xDB) when memory is deallocated. Use PYTHONMALLOC=debug to always enable these debug hooks.
* Add macos-team as a code owner (GH-10045)Ned Deily2018-10-231-0/+4
|
* bpo-34980: P/Invoke QueryFullProcessImageName to get process names (GH-9901)Jeremy Kloth2018-10-231-10/+25
|
* bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523)Zsolt Cserna2018-10-232-6/+12
| | | | | | | | | | Fix the documentation of copy2, as it does not copy file ownership (user and group), only mode, mtime, atime and flags. The original text was confusing to developers as it suggested that this command is the same as 'cp -p', but according to cp(1), '-p' copies file ownership as well. Clarify which metadata is copied by shutil.copystat in its docstring.
* bpo-35028: cgi: Fix max_num_fields off by one error (GH-9973)matthewbelisle-wf2018-10-232-18/+24
| | | https://bugs.python.org/issue35028
* bpo-35046: do only one system call per line (logging.StreamHandler) (GH-10042)Josh Snyder2018-10-231-2/+2
|
* bpo-34482: test datetime classes' handling of non-UTF-8-encodable strings ↵Alexey Izbyshev2018-10-231-0/+40
| | | | (GH-8878)
* bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)Andrei Petre2018-10-231-5/+6
|
* bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959)Paul Ganssle2018-10-223-76/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use _PyUnicode_Copy in sanitize_isoformat_str * Use repr in fromisoformat error message This reverses commit 67b74a98b2 per Serhiy Storchaka's suggestion: I suggested to use %R in the error message because including the raw string can be confusing in the case of empty string, or string containing trailing whitespaces, invisible or unprintable characters. We agree that it is better to change both the C and pure Python versions to use repr. * Retain non-sanitized dtstr for error printing This does not create an extra string, it just holds on to a reference to the original input string for purposes of creating the error message. * PEP 7 fixes to from_isoformat * Separate handling of Unicode and other errors In the initial implementation, errors other than encoding errors would both raise an error indicating an invalid format, which would not be true for errors like MemoryError. * Drop needs_decref from _sanitize_isoformat_str Instead _sanitize_isoformat_str returns a new reference, even to the original string.
* Fix issue 34551 - remove redundant store (#9009)Eric Lippert2018-10-221-1/+1
| | | The assignment of i/2 to nk is redundant because on this code path, nk is already the size of the dictionary, and i is already twice the size of the dictionary. I've replaced the store with an assertion that i/2 is nk.
* bpo-29843: raise AttributeError if given negative _length_ (GH-10029)Tal Einat2018-10-223-10/+43
| | | | | | | | Raise ValueError OverflowError in case of a negative _length_ in a ctypes.Array subclass. Also raise TypeError instead of AttributeError for non-integer _length_. Co-authored-by: Oren Milman <orenmn@gmail.com>
* bpo-34081: Fix wrong example link that was linking to distutils (GH-8248)Xtreak2018-10-213-2/+3
|
* bpo-35036: Remove empty log line in the suspicious.py tool (GH-10024)Xtreak2018-10-211-1/+0
| | | | Previous to commit ee171a2 the logline was working because of self.info() (now deprecated) defaults to an empty message.
* bpo-34984: Improve error messages for bytes and bytearray constructors. ↵Serhiy Storchaka2018-10-213-6/+25
| | | | (GH-9874)
* bpo-34973: Fix crash in bytes constructor. (GH-9841)Serhiy Storchaka2018-10-213-35/+88
| | | Constructing bytes from mutating list could cause a crash.
* bpo-8525: help() on a type now shows builtin subclasses (GH-5066)Sanyam Khurana2018-10-213-0/+140
| | | | | For builtin types with builtin subclasses, help() on the type now shows up to 4 of the subclasses. This partially replaces the exception hierarchy information previously displayed in Python 2.7.
* bpo-35029: Replace the SyntaxWarning exception with a SyntaxError. (GH-9999)Serhiy Storchaka2018-10-213-11/+42
| | | | If SyntaxWarning was raised as an exception, it will be replaced with a SyntaxError for better error reporting.
* Update codeowners to match experts list change (#10022)Nick Coghlan2018-10-211-1/+1
|
* closes bpo-35025: Properly guard the `CLOCK_GETTIME` et al macros in ↵Max Bélanger2018-10-212-0/+6
| | | | | timemodule.c. (GH-9961) Guard the `CLOCK_GETTIME` et al macros in `timemodule` based on the availability of the parent functions
* Remove ">>>" from testsetup. (GH-10017)Benjamin Peterson2018-10-201-1/+1
| | | Fixes doc build breakage from 890a4b92933be8e7c554222d99ef829c88fa8637.
* bpo-35020: Link to sorting examples from list.sort() (GH-9931)Xtreak2018-10-202-2/+14
|
* bpo-34576 - Fix the formatting for security considerations in ↵Senthil Kumaran2018-10-201-5/+5
| | | | | | | | http.server.rst (#10005) * bpo-34576 - Fix the formatting for security considerations in http.server.rst * Address review comment.
* Encrypt Zulip webhook address (GH-10010)Zachary Ware2018-10-201-5/+8
| | | | This should reduce false failure reports to the Zulip 'core/test runs' stream from Travis failures on private forks.
* bpo-35032: Remove inaccessible videos from faq/Windows (GH-10004)Stéphane Wirtel2018-10-201-24/+0
| | | https://bugs.python.org/issue35032
* bpo-34839: Add a 'before 3.6' in the section 'warnings' of doctest (GH-9736)Stéphane Wirtel2018-10-201-7/+11
|
* bpo-34574: Prevent OrderedDict iterators from exhaustion during pickling. ↵Sergey Fedoseev2018-10-203-28/+28
| | | | (GH-9051)
* bpo-34909: NEWS entry (GH-9995)Ned Deily2018-10-201-0/+2
|
* bpo-32256: Make patchcheck.py work for out-of-tree builds (GH-4760)Alexey Izbyshev2018-10-201-3/+9
| | | Set SRCDIR as the current directory for git.
* bpo-34983: Expose symtable.Symbol.is_nonlocal() in the symtable module (GH-9872)Pablo Galindo2018-10-205-3/+36
| | | | The symbol table was not exposing functionality to query the nonlocal symbols in a function or to check if a particular symbol is nonlocal.
* bpo-34573: Simplify __reduce__() of set and dict iterators. (GH-9050)Sergey Fedoseev2018-10-202-59/+7
| | | | Simplify the pickling of set and dictionary objects iterators by consuming the iterator into a list with PySequence_List.
* bpo-32798: Add restriction on the offset parameter for mmap.flush in the ↵Pablo Galindo2018-10-201-4/+5
| | | | | | | | docs (#5621) Add restriction on the offset parameter for mmap.flush. Explain that ALLOCATIONGRANULARITY is the same as PAGESIZE in Unix.
* bpo-21196: Clarify name mangling rules in tutorial (GH-5667)Berker Peksag2018-10-201-0/+5
| | | Initial patch by Chandan Kumar.
* bpo-32890, os: Use errno instead of GetLastError() in execve() and ↵Alexey Izbyshev2018-10-203-3/+27
| | | | | | | | | | truncate() (GH-5784) path_error() uses GetLastError() on Windows, but some os functions are implemented via CRT APIs which report errors via errno. This may result in raising OSError with invalid error code (such as zero). Introduce posix_path_error() function and use it where appropriate.
* bpo-32236: open() emits RuntimeWarning if buffering=1 for binary mode (GH-4842)Alexey Izbyshev2018-10-2011-28/+88
| | | | | | | | | If buffering=1 is specified for open() in binary mode, it is silently treated as buffering=-1 (i.e., the default buffer size). Coupled with the fact that line buffering is always supported in Python 2, such behavior caused several issues (e.g., bpo-10344, bpo-21332). Warn that line buffering is not supported if open() is called with binary mode and buffering=1.
* bpo-34536: Cleanup test_enum imports (GH-9979)Victor Stinner2018-10-191-5/+0
| | | sys and threading were imported twice.
* bpo-33594: Add deprecation info in inspect.py module (GH-7036)Matthias Bussonnier2018-10-192-7/+18
|
* bpo-33726, doc: Add short descriptions to PEP references in seealso (GH-7294)Andrés Delfino2018-10-192-2/+17
|
* bpo-33712: OrderedDict only creates od_fast_nodes cache if needed (GH-7349)Serhiy Storchaka2018-10-192-52/+20
|
* Elaborate datetime.timedelta docstring (GH-7458)Chris Barker2018-10-191-1/+5
|
* bpo-34070: open() only checks for isatty if buffering < 0 (GH-8187)David Herberth2018-10-192-3/+5
|
* queue doc: Clarify that the simple FIFO queue is SimpleQueue (GH-8372)Julien Palard2018-10-191-2/+2
|
* unittest.mock doc: Fix references to recursive seal of Mocks (GH-9028)Mario Corchero2018-10-192-9/+9
| | | | | The docs in `library/unittest.mock` have been updated to remove confusing terms about submock and be explicit about the behavior expected.
* bpo-25750: Add test on bad descriptor __get__() (GH-9084)jdemeyer2018-10-192-0/+44
|
* bpo-33073: Rework int.as_integer_ratio() implementation (GH-9303)Serhiy Storchaka2018-10-193-36/+9
| | | | | * Simplify the C code. * Simplify tests and make them more strict and robust. * Add references in the documentation.
* Use dict unpacking in functools.partial() docs (GH-9412)Sergey Fedoseev2018-10-191-2/+1
|