summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-1612262: IDLE: Class Browser shows nested functions, classes (#2573)Cheryl Sabella2017-09-224-157/+329
| | | | Original patches for code and tests by Guilherme Polo and Cheryl Sabella, respectively.
* bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. ↵Neil Schemenauer2017-09-225-1/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#3372) * Maintain a list of BufferedWriter objects. Flush them on exit. In Python 3, the buffer and the underlying file object are separate and so the order in which objects are finalized matters. This is unlike Python 2 where the file and buffer were a single object and finalization was done for both at the same time. In Python 3, if the file is finalized and closed before the buffer then the data in the buffer is lost. This change adds a doubly linked list of open file buffers. An atexit hook ensures they are flushed before proceeding with interpreter shutdown. This is addition does not remove the need to properly close files as there are other reasons why buffered data could get lost during finalization. Initial patch by Armin Rigo. * Use weakref.WeakSet instead of WeakKeyDictionary. * Simplify buffered double-linked list types. * In _flush_all_writers(), suppress errors from flush(). * Remove NEWS entry, use blurb. * Take more care when flushing file buffers from atexit. The previous implementation was not careful enough to avoid causing issues in multi-threaded cases. Check for buf->ok and buf->finalizing before actually doing the flush. Also, increase the refcnt to ensure the object does not disappear.
* bpo-31423: Fix building the PDF documentation (GH-3693)François Magimel2017-09-221-4/+8
| | | Use prefixed macro names for the `authoraddress` function, add T2A to the font encoding in LaTeX sources to support Cyrillic characters in the PDF documentation, and replace the deprecated `font_size` config option with `pointsize`.
* bpo-31389 Add an optional `header` argument to pdb.set_trace() (#3438)Barry Warsaw2017-09-225-6/+34
| | | | | | | | | | * Give pdb.set_trace() an optional `header` argument * What's new. * Give pdb.set_trace() an optional `header` argument * What's new.
* bpo-31443: Update included code. (#3697)Stefan Krah2017-09-221-1/+17
|
* bpo-31443: Formulate the type slot initialization rules in terms of C99. (#3688)Stefan Krah2017-09-222-15/+16
|
* bpo-31410: Optimized calling wrapper and classmethod descriptors. (#3481)Serhiy Storchaka2017-09-212-29/+34
|
* bpo-27541: Reprs of subclasses of some classes now contain actual type name. ↵Serhiy Storchaka2017-09-216-20/+40
| | | | | (#3631) Affected classes are bytearray, array, deque, defaultdict, count and repeat.
* bpo-31351: Set return code in ensurepip when pip fails (GH-3626)Igor Filatov2017-09-216-9/+46
| | | | Previously ensurepip would always report success, even if the pip installation failed.
* bpo-31500: IDLE: Scale default fonts on HiDPI displays. (#3639)Serhiy Storchaka2017-09-214-0/+20
|
* bpo-31532: Fix memory corruption due to allocator mix (#3679)nurelin2017-09-212-1/+3
| | | | | | | | | | | | Fix a memory corruption in getpath.c due to mixed memory allocators between Py_GetPath() and Py_SetPath(). The fix use the Raw allocator to mimic the windows version. This patch should be used from python3.6 to the current version for more details, see the bug report and https://github.com/pyinstaller/pyinstaller/issues/2812
* bpo-31536: Avoid wholesale rebuild after `make regen-all` (#3678)Antoine Pitrou2017-09-204-51/+86
| | | | | | * bpo-31536: Avoid wholesale rebuild after `make regen-all` * Add NEWS
* bpo-26510: make argparse subparsers required by default (#3027)Anthony Sottile2017-09-204-3/+46
| | | | | | This fixes a regression from Python 2. To get optional subparsers, use the new parameter ``add_subparsers(required=False)``. Patch by Anthony Sottile.
* bpo-31533: fix broken link to OpenSSL docs (#3674)Felipe2017-09-201-2/+2
|
* closes bpo-31525: require sqlite3_prepare_v2 (#3666)Benjamin Peterson2017-09-207-135/+44
| | | | | This is based on https://github.com/ghaering/pysqlite/commit/40b349cadbd87c42f70fc92e5e1aee6d02564c6d#diff-0489411409cd2934730e88bf7767790, though we can be a bit more aggressive about deleting code.
* bpo-30486: Make cell_set_contents() symbol private (#3668)Victor Stinner2017-09-201-1/+1
| | | Don't export the cell_set_contents() symbol in the C API.
* bpo-31506: Improve the error message logic for object.__new__ and ↵Serhiy Storchaka2017-09-202-10/+22
| | | | object.__init__. (GH-3650)
* bpo-31500: Removed fixed size of IDLE config dialog. (#3664)Terry Jan Reedy2017-09-191-1/+1
| | | This one line of Serhiy Storchacka's bpo-31500 patch for is needed for other issues.
* Fix build issues in Doc/make.bat (#3658)Steve Dower2017-09-191-8/+10
|
* bpo-31507 Add docstring to parseaddr function in email.utils.parseaddr (gh-3647)Rohit Balasubramanian2017-09-191-0/+6
|
* bpo-31479: Always reset the signal alarm in tests (#3588)Victor Stinner2017-09-196-40/+56
| | | | | | | | | | | | | * bpo-31479: Always reset the signal alarm in tests Use "try: ... finally: signal.signal(0)" pattern to make sure that tests don't "leak" a pending fatal signal alarm. * Move two more alarm() calls into the try block Fix also typo: replace signal.signal(0) with signal.alarm(0) * Move another signal.alarm() into the try block
* pythoninfo: ignore OSError(ENOSYS) on getrandom() (#3655)Victor Stinner2017-09-191-5/+12
|
* bpo-31293: Fix crashes in truediv and mul of a timedelta by a float with a ↵Oren Milman2017-09-193-4/+55
| | | | bad as_integer_ratio() method. (#3227)
* bpo-31315: Fix an assertion failure in imp.create_dynamic(), when spec.name ↵Oren Milman2017-09-193-0/+18
| | | | is not a string. (#3257)
* bpo-31492: Fix assertion failures in case of a module with a bad __name__ ↵Oren Milman2017-09-194-4/+20
| | | | attribute. (#3620)
* post 3.7.0a1 developmentNed Deily2017-09-191-1/+1
|
* Merge tag 'v3.7.0a1'Ned Deily2017-09-19644-1751/+6919
|\
| * Bump to 3.6.0a1v3.7.0a1Ned Deily2017-09-191-2/+2
| |
| * Update PyDoc topics and NEWS blurbs for 3.7.0a1Ned Deily2017-09-19643-1749/+6917
|/
* Update Mac installer Welcome and ReadMe files for 3.7.0a1Ned Deily2017-09-192-34/+18
|
* Trivial cleanups following bpo-31370 (#3649)Antoine Pitrou2017-09-1816-209/+171
| | | | | | * Trivial cleanups following bpo-31370 * Also cleanup the "importlib._bootstrap_external" module
* Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31370) ↵Antoine Pitrou2017-09-189-31/+575
| | | | (#3648)
* os.test_utime_current(): tolerate 50 ms delta (#3646)Victor Stinner2017-09-181-5/+4
|
* bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash (#3641)Victor Stinner2017-09-183-1/+26
| | | | | | | | | | * bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash xml.etree: xmlparser_gc_clear() now sets self.parser to NULL to prevent a crash in xmlparser_dealloc() if xmlparser_gc_clear() was called previously by the garbage collector, because the parser was part of a reference cycle. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
* bpo-31501: Operator precedence description for arithmetic operators (#3633)svelankar2017-09-181-2/+2
|
* bpo-30928: Update idlelib/NEWS.txt to 2017 Sep 17. (#3635)Terry Jan Reedy2017-09-181-0/+19
|
* bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (#3634)Terry Jan Reedy2017-09-181-2/+2
| | | This reverses a never-released regression resulting from bpo-31287.
* bpo-31497: Add private helper _PyType_Name(). (#3630)Serhiy Storchaka2017-09-176-33/+26
| | | | This function returns the last component of tp_name after a dot. Returns tp_name itself if it doesn't contain a dot.
* bpo-31482: Missing bytes support for random.seed() version 1 (#3614)Raymond Hettinger2017-09-173-2/+31
| | | bpo-31482: Missing bytes support for random.seed() version 1 #3614
* bpo-31487: Update F-strings doc example (GH-3627)Mariatta2017-09-171-1/+1
| | | Shorten the comment to: "using integer format specifier"
* bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ attr is ↵Oren Milman2017-09-173-1/+25
| | | | defined only outside _fields_. (#3615)
* bpo-31493: Fix code context update and font update timers. (#3622)Terry Jan Reedy2017-09-172-26/+29
| | | | Canceling timers prevents a warning message when test_idle completes. (This is the minimum fix needed before upcoming releases.)
* Improve f-strings documentation (GH-3604)Mariatta2017-09-161-0/+6
| | | | | Provide additional examples of using format specifiers in f-strings Added examples for using integer and date format specifiers.
* bpo-31458: Clarify that Changelog is built from Misc/NEWS.d directory (GH-3617)Mariatta2017-09-161-2/+4
|
* bpo-31488: IDLE - update former extensions when options change. (#3612)Terry Jan Reedy2017-09-164-25/+32
| | | | | When apply changes, call .reload on each class with non-key options. Change ParenMatch so that updates affect current instances.
* bpo-28411: Support other mappings in PyInterpreterState.modules. (#3593)Eric Snow2017-09-1511-113/+216
| | | | | The concrete PyDict_* API is used to interact with PyInterpreterState.modules in a number of places. This isn't compatible with all dict subclasses, nor with other Mapping implementations. This patch switches the concrete API usage to the corresponding abstract API calls. We also add a PyImport_GetModule() function (and some other helpers) to reduce a bunch of code duplication.
* bpo-31431: SSLContext.check_hostname auto-sets CERT_REQUIRED (#3531)Christian Heimes2017-09-154-8/+41
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)Christian Heimes2017-09-1513-310/+321
| | | | | | Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31386: Custom wrap_bio and wrap_socket type (#3426)Christian Heimes2017-09-154-13/+67
| | | | | | | | | SSLSocket.wrap_bio() and SSLSocket.wrap_socket() hard-code SSLObject and SSLSocket as return types. In the light of future deprecation of ssl.wrap_socket() module function and direct instantiation of SSLSocket, it is desirable to make the return type of SSLSocket.wrap_bio() and SSLSocket.wrap_socket() customizable. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-314777: IDLE - improve rstrip entry in doc (#3602)Terry Jan Reedy2017-09-153-3/+9
| | | | | | | 'Strip trailing whitespace' is not limited to spaces. Wording caters to beginners who do know know the meaning of 'whitespace'. Multiline string literals are not skipped. * News blurb.