Henk-Jaap Wagenaar
8337239d79
Update Email library documentation example (GH-3720)
...
A `"` was missing from an `<a href>` tag.
2017-09-24 09:12:53 -07:00
Serhiy Storchaka
2fad102354
bpo-27319, bpo-31508: Document deprecation in Treeview.selection(). ( #3667 )
...
Defer removing old behavior to 3.8.
Document new feature of selection_set() and friends.
2017-09-24 14:34:09 +03:00
Serhiy Storchaka
c247caf33f
bpo-30346: An iterator produced by the itertools.groupby() iterator ( #1569 )
...
now becames exhausted after advancing the groupby iterator.
2017-09-24 13:36:11 +03:00
Oren Milman
4facdf523a
bpo-31311: Impove error reporting in case the first argument to PyCData_setstate() isn't a dictionary. ( #3255 )
2017-09-24 12:21:42 +03:00
Oren Milman
2b382dd612
bpo-31505: Fix an assertion failure in json, in case _json.make_encoder() received a bad encoder() argument. ( #3643 )
2017-09-24 12:07:12 +03:00
topper-123
039b25d8fd
bpo-31564: Update typing documentation (GH-3696)
...
Mention that ``NewType`` can derive from another ``NewType``.
2017-09-23 19:37:48 -07:00
Serhiy Storchaka
d6238a76c6
bpo-25359: Add missed "goto error" after setting an exception. ( #3712 )
2017-09-24 02:49:58 +03:00
Cheryl Sabella
cd99e79dc7
bpo-31459: Rename IDLE's module browser from Class Browser to Module Browser. ( #3704 )
...
The original module-level class and method browser became a module
browser, with the addition of module-level functions, years ago.
Nested classes and functions were added yesterday. For back-
compatibility, the virtual event <<open-class-browser>>, which
appears on the Keys tab of the Settings dialog, is not changed.
Patch by Cheryl Sabella.
2017-09-23 16:46:01 -04:00
Terry Jan Reedy
99167f85b7
bpo-31559: Remove test order dependence in idle_test.test_browser. ( #3708 )
...
Order dependence caused leak-test buildbots to fail when running test_idle repeatedly.
2017-09-23 14:19:23 -04:00
Dmitry Chestnykh
aecc08ac3a
Docs: correct hashlib.blake2 keyed hashing example (bpo-31560)
2017-09-23 10:18:40 -07:00
Benjamin Peterson
c8a6e5b18d
sqlite: delete some bsddb cargo-culted code to work around Python 2.3/2.4 bugs
2017-09-22 23:25:28 -07:00
Cheryl Sabella
058de11360
bpo-1612262: IDLE: Class Browser shows nested functions, classes ( #2573 )
...
Original patches for code and tests by Guilherme Polo and
Cheryl Sabella, respectively.
2017-09-22 16:08:44 -04:00
Neil Schemenauer
0a1ff24acf
bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. ( #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.
2017-09-22 10:17:30 -07:00
François Magimel
da9b4cfb48
bpo-31423: Fix building the PDF documentation (GH-3693)
...
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`.
2017-09-22 12:16:57 -05:00
Barry Warsaw
35425d638c
bpo-31389 Add an optional header
argument to pdb.set_trace() ( #3438 )
...
* Give pdb.set_trace() an optional `header` argument
* What's new.
* Give pdb.set_trace() an optional `header` argument
* What's new.
2017-09-22 12:29:42 -04:00
Stefan Krah
b1558a0368
bpo-31443: Update included code. ( #3697 )
2017-09-22 18:14:13 +02:00
Stefan Krah
ca72589bfa
bpo-31443: Formulate the type slot initialization rules in terms of C99. ( #3688 )
2017-09-22 17:44:58 +02:00
Serhiy Storchaka
5e02c7826f
bpo-31410: Optimized calling wrapper and classmethod descriptors. ( #3481 )
2017-09-21 14:25:36 +03:00
Serhiy Storchaka
b3a77964ea
bpo-27541: Reprs of subclasses of some classes now contain actual type name. ( #3631 )
...
Affected classes are bytearray, array, deque, defaultdict, count and repeat.
2017-09-21 14:24:13 +03:00
Igor Filatov
9adda0cdf8
bpo-31351: Set return code in ensurepip when pip fails (GH-3626)
...
Previously ensurepip would always report success, even if the
pip installation failed.
2017-09-21 20:07:45 +10:00
Serhiy Storchaka
a96c96f5da
bpo-31500: IDLE: Scale default fonts on HiDPI displays. ( #3639 )
2017-09-21 11:20:06 +03:00
nurelin
3d1e2ab584
bpo-31532: Fix memory corruption due to allocator mix ( #3679 )
...
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
2017-09-20 23:08:20 -07:00
Antoine Pitrou
b091bec824
bpo-31536: Avoid wholesale rebuild after make regen-all
( #3678 )
...
* bpo-31536: Avoid wholesale rebuild after `make regen-all`
* Add NEWS
2017-09-20 14:57:56 -07:00
Anthony Sottile
aaf6fc0982
bpo-26510: make argparse subparsers required by default ( #3027 )
...
This fixes a regression from Python 2. To get optional subparsers,
use the new parameter ``add_subparsers(required=False)``.
Patch by Anthony Sottile.
2017-09-20 17:35:27 -04:00
Felipe
19e4d9346d
bpo-31533: fix broken link to OpenSSL docs ( #3674 )
2017-09-20 20:20:18 +02:00
Benjamin Peterson
525269430a
closes bpo-31525: require sqlite3_prepare_v2 ( #3666 )
...
This is based on
40b349cadb (diff-0489411409cd2934730e88bf7767790)
,
though we can be a bit more aggressive about deleting code.
2017-09-20 07:36:18 -07:00
Victor Stinner
0ad05c32cc
bpo-30486: Make cell_set_contents() symbol private ( #3668 )
...
Don't export the cell_set_contents() symbol in the C API.
2017-09-20 06:54:13 -07:00
Serhiy Storchaka
a6c0c06956
bpo-31506: Improve the error message logic for object.__new__ and object.__init__. (GH-3650)
2017-09-20 13:44:32 +10:00
Terry Jan Reedy
d6e2f26f3f
bpo-31500: Removed fixed size of IDLE config dialog. ( #3664 )
...
This one line of Serhiy Storchacka's bpo-31500 patch for is needed for other issues.
2017-09-19 19:01:45 -04:00
Steve Dower
a4bb58fda4
Fix build issues in Doc/make.bat ( #3658 )
2017-09-19 12:31:28 -07:00
Rohit Balasubramanian
9e7b9b21fe
bpo-31507 Add docstring to parseaddr function in email.utils.parseaddr (gh-3647)
2017-09-19 15:10:49 -04:00
Victor Stinner
9abee722d4
bpo-31479: Always reset the signal alarm in tests ( #3588 )
...
* 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
2017-09-19 09:36:54 -07:00
Victor Stinner
a92941ff12
pythoninfo: ignore OSError(ENOSYS) on getrandom() ( #3655 )
2017-09-19 07:37:24 -07:00
Oren Milman
865e4b4f63
bpo-31293: Fix crashes in truediv and mul of a timedelta by a float with a bad as_integer_ratio() method. ( #3227 )
2017-09-19 15:58:11 +03:00
Oren Milman
9974e1bcf3
bpo-31315: Fix an assertion failure in imp.create_dynamic(), when spec.name is not a string. ( #3257 )
2017-09-19 14:39:47 +03:00
Oren Milman
6db7033192
bpo-31492: Fix assertion failures in case of a module with a bad __name__ attribute. ( #3620 )
2017-09-19 14:23:01 +03:00
Ned Deily
453408a505
post 3.7.0a1 development
2017-09-19 03:12:46 -04:00
Ned Deily
a4c91a1e7e
Python 3.7.0a1
...
-----BEGIN PGP SIGNATURE-----
iQIcBAABCgAGBQJZwKa0AAoJEC00fqaqZUIdbmIP/3nRBBY5xGZ9PjVk6Wvpg2Cq
cyCGhcokboENtRL0BLlIvVHUxeaiaUxdUMSQqkjKxCvCq9SspgHMaO83Mo5gO55Y
EIZlLO7DMfXwxRCW5g2BY38Ixayx0wm6LxN2uKaGuoMQTSlZk7zfsr70btBSowiX
eXVTgWMqhHl54CdIekjLXJvrnoFDX2qvznl8DXCaD1QIJGQ2UdGG9L0VtHBEmQwX
s4Y+oQ2fexMFmUc6zYqyjkup1KOTPw8AHNoYxH7sa0iDE+PzcG8UoIpf2VMra+J4
jia4yRY33/R9mqy91KD7FDpsCUGNgLbCPT9N29zgyKMLhlQvnIOfcnzHAYohCivC
E/fr7NS2efZwZOW+lKqNfgXQZgpkTE5atOCm1dDpgSjU2LSCAnagAiaBdIZcLfzE
oBd3KM/uV7eFbWn9yOy+qwHh6YuhfrBDdaO+hKQ+LgeQNbh95/YSmb3RdhqIOs/O
sPPlmF48svvgeonT60ADeXTR1ldP7V457ODI4sABEUpPMs3UWyOvCDJofA36Mtlh
hr5vCzmWg6GKDIhvVgbV60LkZ2Imm9NpHsAft1MmTvwFaXrQxJg3rrZaEEoJnoIx
svrikelIZflx3Ad42WSlWCMh+S6XtsZm4bSb8fjFb/KnFDRHFIQ63yO8ukkZFRvR
QS22HvoY7Ysnx0RnHPSg
=XFDE
-----END PGP SIGNATURE-----
Merge tag 'v3.7.0a1'
2017-09-19 03:09:31 -04:00
Ned Deily
8f51bb436f
Bump to 3.6.0a1
2017-09-19 01:09:03 -04:00
Ned Deily
450ceea331
Update PyDoc topics and NEWS blurbs for 3.7.0a1
2017-09-19 01:01:36 -04:00
Ned Deily
380c5fbc6f
Update Mac installer Welcome and ReadMe files for 3.7.0a1
2017-09-18 22:22:58 -04:00
Antoine Pitrou
88c60c9668
Trivial cleanups following bpo-31370 ( #3649 )
...
* Trivial cleanups following bpo-31370
* Also cleanup the "importlib._bootstrap_external" module
2017-09-18 23:50:44 +02:00
Antoine Pitrou
b43c4caf81
Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31370) ( #3648 )
2017-09-18 22:04:20 +02:00
Victor Stinner
a8e7d903d7
os.test_utime_current(): tolerate 50 ms delta ( #3646 )
2017-09-18 08:49:45 -07:00
Victor Stinner
e727d41ffc
bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash ( #3641 )
...
* 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>
2017-09-18 05:29:37 -07:00
svelankar
9b47af6537
bpo-31501: Operator precedence description for arithmetic operators ( #3633 )
2017-09-17 17:56:16 -07:00
Terry Jan Reedy
55679e0ec7
bpo-30928: Update idlelib/NEWS.txt to 2017 Sep 17. ( #3635 )
2017-09-17 20:14:21 -04:00
Terry Jan Reedy
0efc7c67a2
bpo-31502: IDLE Configdialog again deletes custom themes and keysets. ( #3634 )
...
This reverses a never-released regression resulting from bpo-31287.
2017-09-17 20:13:25 -04:00
Serhiy Storchaka
4ab46d7949
bpo-31497: Add private helper _PyType_Name(). ( #3630 )
...
This function returns the last component of tp_name after a dot.
Returns tp_name itself if it doesn't contain a dot.
2017-09-17 21:11:04 +03:00
Raymond Hettinger
132a7d7cdb
bpo-31482: Missing bytes support for random.seed() version 1 ( #3614 )
...
bpo-31482: Missing bytes support for random.seed() version 1 #3614
2017-09-17 09:04:30 -07:00