Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-35028: cgi: Fix max_num_fields off by one error (GH-9973) | matthewbelisle-wf | 2018-10-23 | 2 | -18/+24 |
| | | | https://bugs.python.org/issue35028 | ||||
* | bpo-35046: do only one system call per line (logging.StreamHandler) (GH-10042) | Josh Snyder | 2018-10-23 | 1 | -2/+2 |
| | |||||
* | bpo-34482: test datetime classes' handling of non-UTF-8-encodable strings ↵ | Alexey Izbyshev | 2018-10-23 | 1 | -0/+40 |
| | | | | (GH-8878) | ||||
* | bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809) | Andrei Petre | 2018-10-23 | 1 | -5/+6 |
| | |||||
* | bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959) | Paul Ganssle | 2018-10-22 | 3 | -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 Lippert | 2018-10-22 | 1 | -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 Einat | 2018-10-22 | 3 | -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) | Xtreak | 2018-10-21 | 3 | -2/+3 |
| | |||||
* | bpo-35036: Remove empty log line in the suspicious.py tool (GH-10024) | Xtreak | 2018-10-21 | 1 | -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 Storchaka | 2018-10-21 | 3 | -6/+25 |
| | | | | (GH-9874) | ||||
* | bpo-34973: Fix crash in bytes constructor. (GH-9841) | Serhiy Storchaka | 2018-10-21 | 3 | -35/+88 |
| | | | Constructing bytes from mutating list could cause a crash. | ||||
* | bpo-8525: help() on a type now shows builtin subclasses (GH-5066) | Sanyam Khurana | 2018-10-21 | 3 | -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 Storchaka | 2018-10-21 | 3 | -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 Coghlan | 2018-10-21 | 1 | -1/+1 |
| | |||||
* | closes bpo-35025: Properly guard the `CLOCK_GETTIME` et al macros in ↵ | Max Bélanger | 2018-10-21 | 2 | -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 Peterson | 2018-10-20 | 1 | -1/+1 |
| | | | Fixes doc build breakage from 890a4b92933be8e7c554222d99ef829c88fa8637. | ||||
* | bpo-35020: Link to sorting examples from list.sort() (GH-9931) | Xtreak | 2018-10-20 | 2 | -2/+14 |
| | |||||
* | bpo-34576 - Fix the formatting for security considerations in ↵ | Senthil Kumaran | 2018-10-20 | 1 | -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 Ware | 2018-10-20 | 1 | -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 Wirtel | 2018-10-20 | 1 | -24/+0 |
| | | | https://bugs.python.org/issue35032 | ||||
* | bpo-34839: Add a 'before 3.6' in the section 'warnings' of doctest (GH-9736) | Stéphane Wirtel | 2018-10-20 | 1 | -7/+11 |
| | |||||
* | bpo-34574: Prevent OrderedDict iterators from exhaustion during pickling. ↵ | Sergey Fedoseev | 2018-10-20 | 3 | -28/+28 |
| | | | | (GH-9051) | ||||
* | bpo-34909: NEWS entry (GH-9995) | Ned Deily | 2018-10-20 | 1 | -0/+2 |
| | |||||
* | bpo-32256: Make patchcheck.py work for out-of-tree builds (GH-4760) | Alexey Izbyshev | 2018-10-20 | 1 | -3/+9 |
| | | | Set SRCDIR as the current directory for git. | ||||
* | bpo-34983: Expose symtable.Symbol.is_nonlocal() in the symtable module (GH-9872) | Pablo Galindo | 2018-10-20 | 5 | -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 Fedoseev | 2018-10-20 | 2 | -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 Galindo | 2018-10-20 | 1 | -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 Peksag | 2018-10-20 | 1 | -0/+5 |
| | | | Initial patch by Chandan Kumar. | ||||
* | bpo-32890, os: Use errno instead of GetLastError() in execve() and ↵ | Alexey Izbyshev | 2018-10-20 | 3 | -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 Izbyshev | 2018-10-20 | 11 | -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 Stinner | 2018-10-19 | 1 | -5/+0 |
| | | | sys and threading were imported twice. | ||||
* | bpo-33594: Add deprecation info in inspect.py module (GH-7036) | Matthias Bussonnier | 2018-10-19 | 2 | -7/+18 |
| | |||||
* | bpo-33726, doc: Add short descriptions to PEP references in seealso (GH-7294) | Andrés Delfino | 2018-10-19 | 2 | -2/+17 |
| | |||||
* | bpo-33712: OrderedDict only creates od_fast_nodes cache if needed (GH-7349) | Serhiy Storchaka | 2018-10-19 | 2 | -52/+20 |
| | |||||
* | Elaborate datetime.timedelta docstring (GH-7458) | Chris Barker | 2018-10-19 | 1 | -1/+5 |
| | |||||
* | bpo-34070: open() only checks for isatty if buffering < 0 (GH-8187) | David Herberth | 2018-10-19 | 2 | -3/+5 |
| | |||||
* | queue doc: Clarify that the simple FIFO queue is SimpleQueue (GH-8372) | Julien Palard | 2018-10-19 | 1 | -2/+2 |
| | |||||
* | unittest.mock doc: Fix references to recursive seal of Mocks (GH-9028) | Mario Corchero | 2018-10-19 | 2 | -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) | jdemeyer | 2018-10-19 | 2 | -0/+44 |
| | |||||
* | bpo-33073: Rework int.as_integer_ratio() implementation (GH-9303) | Serhiy Storchaka | 2018-10-19 | 3 | -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 Fedoseev | 2018-10-19 | 1 | -2/+1 |
| | |||||
* | Fix typos in comments (GH-9905) | Quan Tian | 2018-10-19 | 3 | -4/+4 |
| | |||||
* | bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873) | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 2018-10-19 | 9 | -17/+17 |
| | |||||
* | bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916) | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 2018-10-19 | 3 | -6/+118 |
| | | | The reprlib code was copied here instead of importing reprlib. I'm not sure if we really need to avoid the import, but since I expect dataclasses to be more common that reprlib, it seems wise. Plus, the code is small. | ||||
* | bpo-34741: Get rid of tp_getattro and tp_setattro in pyexpat.xmlparser. ↵ | Serhiy Storchaka | 2018-10-19 | 2 | -345/+269 |
| | | | | | | (GH-9422) Use tp_members and tp_getset instead. | ||||
* | bpo-32912: Replace a DeprecationWarning with a SyntaxWarning (GH-9652) | Serhiy Storchaka | 2018-10-19 | 6 | -12/+23 |
| | | | | for invalid escape sequences in string and bytes literals. | ||||
* | bpo-34866: Adding max_num_fields to cgi.FieldStorage (GH-9660) | matthewbelisle-wf | 2018-10-19 | 5 | -12/+102 |
| | | | | Adding `max_num_fields` to `cgi.FieldStorage` to make DOS attacks harder by limiting the number of `MiniFieldStorage` objects created by `FieldStorage`. | ||||
* | bpo-35013: Add more type checks for children of Element. (GH-9944) | Serhiy Storchaka | 2018-10-19 | 3 | -50/+71 |
| | | | | | | It is now guarantied that children of xml.etree.ElementTree.Element are Elements (at least in C implementation). Previously methods __setitem__(), __setstate__() and __deepcopy__() could be used for adding non-Element children. | ||||
* | Fix several reference counting bugs in pyexpat.c. (GH-9955) | Zackery Spytz | 2018-10-19 | 1 | -4/+8 |
| | |||||
* | bpo-31522: mailbox.get_string: pass `from_` parameter to `get_bytes` (#9857) | Cheryl Sabella | 2018-10-19 | 3 | -1/+30 |
| | | | This allows *from_* to be successfully set to a non-default value when calling mbox.get_string. |