Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor fixes to dataclass tests. (GH-6243) | Eric V. Smith | 2018-03-26 | 1 | -42/+41 |
| | | | Also, re-enable a test for ClassVars with default_factory. | ||||
* | bpo-33053: Remove test_cmd_line_script debugging print (GH-6237) | Nick Coghlan | 2018-03-25 | 1 | -2/+0 |
| | | | | I noticed this had slipped into the original commit when resolving a merge conflict for the backport to 3.7. | ||||
* | Trivial improvements to dataclasses tests. (GH-6234) | Eric V. Smith | 2018-03-25 | 1 | -2/+3 |
| | |||||
* | bpo-33053: -m now adds *starting* directory to sys.path (GH-6231) | Nick Coghlan | 2018-03-25 | 5 | -67/+70 |
| | | | | | | | | | | | | Historically, -m added the empty string as sys.path zero, meaning it resolved imports against the current working directory, the same way -c and the interactive prompt do. This changes the sys.path initialisation to add the *starting* working directory as sys.path[0] instead, such that changes to the working directory while the program is running will have no effect on imports when using the -m switch. | ||||
* | bpo-33042: Fix pre-initialization sys module configuration (GH-6157) | Nick Coghlan | 2018-03-25 | 1 | -5/+26 |
| | | | | | | | | | - new test case for pre-initialization of sys.warnoptions and sys._xoptions - restored ability to call these APIs prior to Py_Initialize - updated the docs for the affected APIs to make it clear they can be called before Py_Initialize - also enhanced the existing embedding test cases to check for expected settings in the sys module | ||||
* | bpo-33136: Harden ssl module against CVE-2018-8970 (GH-6229) | Christian Heimes | 2018-03-25 | 1 | -0/+3 |
| | | | | | | | Harden ssl module against LibreSSL CVE-2018-8970. X509_VERIFY_PARAM_set1_host() is called with an explicit namelen. A new test ensures that NULL bytes are not allowed. Signed-off-by: Christian Heimes <christian@python.org> | ||||
* | bpo-32943: Fix confusing error message for rot13 codec (GH-5869) | Xiang Zhang | 2018-03-25 | 1 | -4/+4 |
| | |||||
* | Fix invalid escape sequence: use raw string. (GH-6225) | Eric V. Smith | 2018-03-25 | 1 | -1/+1 |
| | |||||
* | bpo-33134: dataclasses: use function dispatch table for hash, instead of a ↵ | Eric V. Smith | 2018-03-25 | 1 | -40/+36 |
| | | | | | | | string lookup which then is tested with if tests. (GH-6222) * Change _hash_action to be a function table lookup, instead of a list of strings which is then tested with if statements. | ||||
* | Trivial dataclass cleanups: (GH-6218) | Eric V. Smith | 2018-03-24 | 1 | -23/+26 |
| | | | | | | | | | | - When adding a single element to a list, use .append() instead of += and creating a new list. - For consistency, import the copy module, instead of just deepcopy. This leaves only a module at the class level, instead of a function. - Improve some comments. - Improve some whitespace. - Use tuples instead of lists. - Simplify a test. | ||||
* | bpo-24334: Remove inaccurate match_hostname call (#6211) | Christian Heimes | 2018-03-24 | 1 | -5/+0 |
| | | | | | | Commit 141c5e8c re-added match_hostname() call. The resurrection of the function call was never intended and was solely a merge mistake. Signed-off-by: Christian Heimes <christian@python.org> | ||||
* | bpo-32932: More revealing error message when non-str objects in __all__ ↵ | Xiang Zhang | 2018-03-24 | 1 | -0/+21 |
| | | | | (GH-5848) | ||||
* | bpo-31639: Use threads in http.server module. (GH-5018) | Julien Palard | 2018-03-23 | 1 | -2/+7 |
| | |||||
* | bpo-30953: Improve error messages and add tests for jumping (GH-6196) | Serhiy Storchaka | 2018-03-23 | 1 | -6/+64 |
| | | | | into/out of an except block. | ||||
* | bpo-33041: Rework compiling an "async for" loop. (#6142) | Serhiy Storchaka | 2018-03-23 | 5 | -4/+89 |
| | | | | | | | | * Added new opcode END_ASYNC_FOR. * Setting global StopAsyncIteration no longer breaks "async for" loops. * Jumping into an "async for" loop is now disabled. * Jumping out of an "async for" loop no longer corrupts the stack. * Simplify the compiler. | ||||
* | bpo-32505: dataclasses: raise TypeError if a member variable is of type ↵ | Eric V. Smith | 2018-03-22 | 2 | -17/+64 |
| | | | | | Field, but doesn't have a type annotation. (GH-6192) If a dataclass has a member variable that's of type Field, but it doesn't have a type annotation, raise TypeError. | ||||
* | bpo-33018: Improve issubclass() error checking and message. (GH-5944) | jab | 2018-03-22 | 1 | -0/+2 |
| | | | | | This improves error message for situations when a non-class is checked w.r.t. an abstract base class. | ||||
* | Upgrade pip to v9.0.3 and setuptools to v39.0.1 (#6184) | Donald Stufft | 2018-03-22 | 3 | -2/+2 |
| | |||||
* | Add 'Field' to dataclasses.__all__. (GH-6182) | Eric V. Smith | 2018-03-21 | 2 | -5/+7 |
| | | | | - Add missing 'Field' to __all__. - Improve tests to catch this. | ||||
* | FIX failure on OSX sem_getvalue (#6180) | Thomas Moreau | 2018-03-21 | 1 | -2/+7 |
| | |||||
* | bpo-33078 - Fix queue size on pickling error (GH-6119) | Thomas Moreau | 2018-03-21 | 2 | -2/+21 |
| | |||||
* | bpo-32896: Fix error when subclassing a dataclass with a field that uses a ↵ | Eric V. Smith | 2018-03-21 | 2 | -11/+61 |
| | | | | | default_factory (GH-6170) Fix the way that new annotations in a class are detected. | ||||
* | bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016) | Xiang Zhang | 2018-03-21 | 2 | -74/+61 |
| | | | | | | The result of host() was not empty when the network is constructed by a tuple containing an integer mask and only 1 bit left for addresses. | ||||
* | bpo-18802: Add more details to ipaddress documentation (GH-6083) | Cheryl Sabella | 2018-03-21 | 1 | -0/+3 |
| | | | | Original patch by Jon Foster and Berker Peksag. | ||||
* | bpo-33034: Improve exception message when cast fails for ↵ | Matt Eaton | 2018-03-20 | 2 | -1/+15 |
| | | | | {Parse,Split}Result.port (GH-6078) | ||||
* | bpo-33100: Dataclasses now handles __slots__ and default values correctly. ↵ | Eric V. Smith | 2018-03-20 | 2 | -0/+45 |
| | | | | | (GH-6152) If the class has a member that's a MemberDescriptorType, it's not a default value, it's from that member being in __slots__. | ||||
* | bpo-33061: Add missing 'NoReturn' to __all__ in typing.py (GH-6127) | aetracht | 2018-03-19 | 1 | -0/+1 |
| | |||||
* | bpo-32953: Dataclasses: frozen should not be inherited for non-dataclass ↵ | Eric V. Smith | 2018-03-19 | 2 | -55/+164 |
| | | | | | | | derived classes (#6147) If a non-dataclass derives from a frozen dataclass, allow attributes to be set. Require either all of the dataclasses in a class hierarchy to be frozen, or all non-frozen. Store `@dataclass` parameters on the class object under `__dataclass_params__`. This is needed to detect frozen base classes. | ||||
* | bpo-19417: Add test_bdb.py (GH-5217) | xdegaye | 2018-03-18 | 2 | -1/+1152 |
| | |||||
* | Revert "bpo-30406: Make async and await proper keywords (#1669)" (GH-6143) | Jelle Zijlstra | 2018-03-18 | 4 | -20/+94 |
| | | | | | This reverts commit ac317700ce7439e38a8b420218d9a5035bba92ed. (Reverts only the lib2to3 part.) | ||||
* | bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822) | Serhiy Storchaka | 2018-03-18 | 4 | -55/+79 |
| | |||||
* | bpo-32056: Improve exceptions in aifc, wave and sunau. (GH-5951) | Serhiy Storchaka | 2018-03-18 | 6 | -7/+147 |
| | |||||
* | bpo-33041: Add tests for jumps in/out of 'async with' blocks. (#6110) | Serhiy Storchaka | 2018-03-18 | 1 | -0/+117 |
| | |||||
* | bpo-27645: Fix version number in 'database in transaction' fallback (GH-6131) | Aviv Palivoda | 2018-03-18 | 1 | -3/+1 |
| | | | It was actually fixed in SQLite 3.8.8, not 3.8.7. | ||||
* | Update pip to 9.0.2 and setuptools to 38.6.1 (#6133) | Donald Stufft | 2018-03-17 | 3 | -2/+2 |
| | |||||
* | bpo-32374: m_traverse may be called with m_state=NULL (GH-5140) | Marcel Plch | 2018-03-17 | 1 | -1/+15 |
| | | | | | Multi-phase initialized modules allow m_traverse to be called while the module is still being initialized, so module authors may need to account for that. | ||||
* | lib2to3: Add more tests (#6101) | Łukasz Langa | 2018-03-13 | 1 | -0/+108 |
| | |||||
* | bpo-17288: Prevent jumps from 'return' and 'exception' trace events. (GH-6107) | xdegaye | 2018-03-13 | 1 | -11/+57 |
| | | | (cherry picked from commit e32bbaf376a09c149fa7c7f2919d7c9ce4e2a055) | ||||
* | bpo-33064: lib2to3: support trailing comma after *args and **kwargs (#6096) | Łukasz Langa | 2018-03-13 | 2 | -26/+37 |
| | | | | | | | New tests also added. I also made the comments in line with the builtin Grammar/Grammar. PEP 306 was withdrawn, Kees Blom's railroad program has been lost to the sands of time for at least 16 years now (I found a python-dev post from people looking for it). | ||||
* | bpo-22674: fix test_strsignal on OSX (GH-6085) | Antoine Pietri | 2018-03-12 | 1 | -2/+2 |
| | |||||
* | bpo-33056 FIX leaking fd in concurrent.futures.ProcessPoolExecutor (#6084) | Thomas Moreau | 2018-03-12 | 1 | -2/+9 |
| | |||||
* | signal: add strsignal() (#6017) | Antoine Pietri | 2018-03-12 | 1 | -0/+6 |
| | | | Co-authored-by: Vajrasky Kok <sky.kok@speaklikeaking.com> | ||||
* | bpo-31804: Fix multiprocessing.Process with broken standard streams (#6079) | Antoine Pitrou | 2018-03-11 | 4 | -12/+45 |
| | | | | | In some conditions the standard streams will be None or closed in the child process (for example if using "pythonw" instead of "python" on Windows). Avoid failing with a non-0 exit code in those conditions. Report and initial patch by poxthegreat. | ||||
* | bpo-32970: Improve disassembly of the MAKE_FUNCTION instruction. (GH-5937) | Serhiy Storchaka | 2018-03-11 | 2 | -6/+18 |
| | |||||
* | bpo-32925: Optimized iterating and containing test for literal lists (GH-5842) | Serhiy Storchaka | 2018-03-11 | 1 | -0/+24 |
| | | | | | consisting of non-constants: `x in [a, b]` and `for x in [a, b]`. The case of all constant elements already was optimized. | ||||
* | bpo-32946: Speed up "from ... import ..." from non-packages. (GH-5873) | Serhiy Storchaka | 2018-03-11 | 1 | -26/+27 |
| | |||||
* | bpo-32338: OrderedDict import is no longer needed in re. (#4891) | Serhiy Storchaka | 2018-03-11 | 1 | -9/+4 |
| | |||||
* | bpo-33026: Fix jumping out of "with" block by setting f_lineno. (#6026) | Serhiy Storchaka | 2018-03-11 | 1 | -0/+28 |
| | |||||
* | bpo-27645: Skip test_bad_target_in_transaction if SQLite == 3.8.7.1 (GH-6067) | Berker Peksag | 2018-03-11 | 1 | -0/+2 |
| | |||||
* | bpo-27645: Add support for native backup facility of SQLite (GH-4238) | Emanuele Gaifas | 2018-03-10 | 2 | -2/+165 |
| |