Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
fbdfdcb
example of what it could become
aixtools Apr 15, 2019
112e53e
Add constants in Lib/test/support to signify platform during testing
aixtools Apr 15, 2019
aba7d66
bpo-35134: Add cpython/pymem.h to build system (GH-12842)
vstinner Apr 15, 2019
0810fa7
bpo-36389: Cleanup gc.set_threshold() (GH-12844)
vstinner Apr 15, 2019
74125a6
bpo-36348: IMAP4.logout() doesn't ignore exc (GH-12411)
vstinner Apr 15, 2019
6fa84bd
bpo-27860: ipaddress: fix Interface missed some attributes (GH-12836)
methane Apr 15, 2019
2b7f93b
bpo-36345: Update wsgiref example (GH-12562)
matrixise Apr 16, 2019
2f5b448
Add myself to CODEOWNERS for sqlite3 and urllib.robotparser (GH-12856)
berkerpeksag Apr 16, 2019
a4dfc3b
Ready for first CI testing
aixtools Apr 16, 2019
de5cfdd
Correct typo in Doc
aixtools Apr 16, 2019
31e8d69
bpo-33783: Use proper class markup for random.Random docs (GHè7817)
Carreau Apr 16, 2019
926b0cb
bpo-36641: Add "const" to PyDoc_VAR macro (GH-12854)
methane Apr 16, 2019
6fec905
bpo-36642: make unicodedata const (GH-12855)
methane Apr 16, 2019
36c41bc
bpo-31904: Fix test_tabnanny on VxWorks (GH-12646)
LihuaZhao Apr 17, 2019
71ce03d
Clarify file-closing example in tutorial (GH-11652)
cjwatson Apr 17, 2019
228a3c9
bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858)
vstinner Apr 17, 2019
2c4c02f
bpo-35755: Remove current directory from posixpath.defpath (GH-11586)
vstinner Apr 17, 2019
2954550
bpo-31904: Port test_cmd_line to VxWorks (#12648)
LihuaZhao Apr 17, 2019
693c104
bpo-31904: Port test_resource to VxWorks (GH-12719)
LihuaZhao Apr 17, 2019
197f044
bpo-35755: Don't say "to mimick Unix which command behavior" (GH-12861)
vstinner Apr 17, 2019
3092d6b
bpo-32849: Fix is_valid_fd() on FreeBSD (GH-12852)
vstinner Apr 17, 2019
5c75f37
bpo-36635: Change pyport.h for Py_BUILD_CORE_MODULE define (GH-12853)
vstinner Apr 17, 2019
4c3efd9
bpo-36649: Remove trailing spaces for registry keys when installed vi…
zooba Apr 17, 2019
a6de52c
bpo-32913: Added re.Match.groupdict example to regex HOWTO (GH-5821)
Apr 17, 2019
9941f96
Fix wrong indentation of a paragraph in documentation (GH-12868)
cocoatomo Apr 18, 2019
264a0b4
bpo-36638: Fix WindowsLoadTracker exception on some Windows versions …
paulmon Apr 18, 2019
11efd79
bpo-36071 Add support for Windows ARM32 in ctypes/libffi (GH-12059)
paulmon Apr 18, 2019
23bace2
bpo-36635: Add _testinternalcapi module (GH-12841)
vstinner Apr 18, 2019
7e954e7
bpo-36651: Fixed Asyncio Event Loop documentation inconsistency (GH-1…
naccht Apr 18, 2019
e8113f5
bpo-30485: Change the prefix for defining the default namespace in El…
scoder Apr 18, 2019
9d062d6
ctypes: remove use of legacy unicode API (GH-12340)
methane Apr 19, 2019
14adbd4
bpo-36650: Fix handling of empty keyword args in C version of lru_cac…
rhettinger Apr 20, 2019
3e986de
Fix typo (GH-12878)
fredrikaverpil Apr 20, 2019
5ebfa84
bpo-36645: Fix ambiguous formatting in re.sub() documentation (GH-12879)
mollison Apr 21, 2019
9541bd3
bpo-24011: Use PyModule_Add{Object,IntMacro} in PyInit__signal() (GH-…
nanjekyejoannah Apr 22, 2019
9b21856
bpo-23078: Add support for {class,static}method to mock.create_autos…
tirkarthi Apr 22, 2019
662ebd2
Doc: add the missing ".tp_flags" in type definition (GH-12902)
kilowu Apr 22, 2019
ab86521
bpo-36523: Add docstring to io.IOBase.writelines (GH-12683)
n0npax Apr 22, 2019
d59b662
bpo-36690: Fix typo in Tools/demo/rpython.py (GH-12903)
BriFuture Apr 22, 2019
6ef726a
bpo-29734: Cleanup test_getfinalpathname_handles test (GH-12908)
berkerpeksag Apr 22, 2019
56ed864
bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12…
ZackerySpytz Apr 22, 2019
34366b7
bpo-36672: Fix a compiler warning in winreg.SetValue() (GH-12882)
ZackerySpytz Apr 22, 2019
2644907
bpo-33608: Normalize atomic macros so that they all expect an atomic …
zooba Apr 22, 2019
d307d05
Fixes platform.win32_ver on non-Windows platforms (GH-12912)
zooba Apr 22, 2019
be372d7
bpo-36678: Rename duplicate tests in test_dataclasses (GH-12899)
Windsooon Apr 22, 2019
f51dd4f
bpo-36683: Rename duplicate test_io_encoding to test_pyio_encoding (G…
Windsooon Apr 22, 2019
007d0b0
bpo-36682: Rename duplicate tests in test_sys_setprofile (GH-12895)
Windsooon Apr 22, 2019
3d6f61e
bpo-36681: Remove duplicate test_regression_29220 function (GH-12894)
Windsooon Apr 22, 2019
c442b1c
bpo-36680: Rename duplicate test_source_from_cache_path_like_arg func…
Windsooon Apr 22, 2019
d437012
bpo-36679: Rename duplicate test_class_getitem function (GH-12892)
Windsooon Apr 22, 2019
9013ccf
bpo-36546: Add statistics.quantiles() (#12710)
rhettinger Apr 23, 2019
b4c7f39
Add module specification: itemgetter -> operator.itemgetter (GH-12823)
jmolinski Apr 23, 2019
39baace
Document that TestCase.assertCountEqual() can take iterables (GH-686)
jkleint Apr 23, 2019
7280048
bpo-35904: Add missing fmean() entry to the summary table (GH-12919)
rhettinger Apr 23, 2019
fb8c7d5
bpo-36018: Make "seed" into a keyword only argument (GH-12921)
rhettinger Apr 23, 2019
84b4784
use `const` in graminit.c (GH-12713)
tyomitch Apr 23, 2019
5749134
bpo-36635, bpo-36696: Fix setup.py on AIX (GH-12922)
vstinner Apr 23, 2019
09415ff
fix warnings by adding more const (GH-12924)
methane Apr 23, 2019
359bd4f
bpo-18372: Add missing PyObject_GC_Track() calls in the pickle module…
ZackerySpytz Apr 23, 2019
29d018a
replace 'sequencial argument' by 'positional' in doc (GH-12925)
deronnax Apr 23, 2019
d246a67
bpo-36454: Fix test_time.test_monotonic() (GH-12929)
vstinner Apr 23, 2019
4f5a349
fix typo in gzip.py (GH-12928)
maxnoe Apr 24, 2019
6c44fde
bpo-36707: Remove the "m" flag (pymalloc) from SOABI (GH-12931)
vstinner Apr 24, 2019
8bb3230
bpo-36710: Add runtime parameter to _PyThreadState_Init() (GH-12935)
vstinner Apr 24, 2019
1bfc638
Replace another 60+ references to sys.platform with constants
aixtools Apr 24, 2019
b930a2d
bpo-36710: PyOS_AfterFork_Child() pass runtime parameter (GH-12936)
vstinner Apr 24, 2019
70bf713
bpo-30840: Document relative imports (#12831)
nanjekyejoannah Apr 24, 2019
8e91c24
bpo-36710: Add runtime variable to Py_FinalizeEx() (GH-12937)
vstinner Apr 24, 2019
e3b6ba1
Correct boolean logic (typo) from SkipIf to SkipUnless for one subtest
aixtools Apr 24, 2019
4312522
bpo-36710: Add runtime variable to Py_InitializeEx() (GH-12939)
vstinner Apr 24, 2019
09d434c
Issue 35224: Add PEP 572 (assignment expressions) to What's New (#12941)
gvanrossum Apr 24, 2019
004b93e
bpo-36668: FIX reuse semaphore tracker for child processes (#5172)
tomMoral Apr 24, 2019
888f37b
Add @pablogsal to code owners file for Parser/pgen (GH-12944)
pablogsal Apr 24, 2019
f4e4703
bpo-36465: Make release and debug ABI compatible (GH-12615)
vstinner Apr 24, 2019
235e7b2
bpo-36465: Fix test_regrtest on Windows (GH-12945)
vstinner Apr 24, 2019
0ef8c15
bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875)
vstinner Apr 25, 2019
d7befad
bpo-35537: Document posix_spawn() change in subprocess (GH-11668)
vstinner Apr 25, 2019
8c3ecc6
bpo-21536: C extensions are no longer linked to libpython (GH-12946)
vstinner Apr 25, 2019
62dfd7d
bpo-35920: Windows 10 ARM32 platform support (GH-11774)
paulmon Apr 25, 2019
5422e3c
bpo-36722: Debug build loads libraries built in release mode (GH-12952)
vstinner Apr 25, 2019
10c8e6a
bpo-36710: Add runtime variable in pystate.c (GH-12956)
vstinner Apr 25, 2019
9db0324
bpo-36710: Add runtime parameter in gcmodule.c (GH-12958)
vstinner Apr 26, 2019
4d29983
bpo-36725: regrtest: add TestResult type (GH-12960)
vstinner Apr 26, 2019
99e69d4
bpo-36710: Fix compiler warning on PyThreadState_Delete() (GH-12962)
vstinner Apr 26, 2019
87d23a0
bpo-36724: Add _PyWarnings_Fini() (#12963)
vstinner Apr 26, 2019
3cde440
bpo-36725: Refactor regrtest multiprocessing code (GH-12961)
vstinner Apr 26, 2019
7abb6c0
bpo-36669: add matmul support to weakref.proxy (GH-12932)
mdickinson Apr 26, 2019
75120d2
bpo-36719: regrtest always detect uncollectable objects (GH-12951)
vstinner Apr 26, 2019
837acc1
bpo-36719: Fix regrtest re-run (GH-12964)
vstinner Apr 26, 2019
00db7c7
bpo-36719: regrtest closes explicitly WindowsLoadTracker (GH-12965)
vstinner Apr 26, 2019
4cb525a
bpo-36356: pymain_exit_error() only call pymain_free() for exit (GH-1…
vstinner Apr 26, 2019
06d04e7
bpo-36733: Fix PYTHONPATH for make regen-add (GH-12969)
vstinner Apr 26, 2019
ad0daf5
bpo-31525: Increase minimum sqlite version number check (GH-12923)
LordAro Apr 26, 2019
01f073f
bpo-21536: Revert Makefile change on python-config (GH-12971)
vstinner Apr 26, 2019
4046069
bpo-36722: Add What's New entry for debug ABI (GH-12957)
vstinner Apr 26, 2019
6d13e5b
bpo-36722: Don't define ALT_SOABI for Py_TRACE_REFS build (GH-12973)
vstinner Apr 26, 2019
55d0351
Syntax highlight IDLE html doc code example. (GH-12981)
terryjreedy Apr 27, 2019
5c403b2
bpo-36722: Style and grammar edits for ABI news entries (GH-12979)
pganssle Apr 27, 2019
4d8c8c0
bpo-36025: Fix PyDate_FromTimestamp API (GH-11922)
pganssle Apr 27, 2019
21a9ba1
bpo-2091: Fix typo in exception message (GH-12987)
berkerpeksag Apr 27, 2019
50fed0b
bpo-32424: Improve test coverage for xml.etree.ElementTree (GH-12891)
GPHemsley Apr 28, 2019
da63b32
bpo-36715: Add usage note for dict.fromkeys() (GH-12974)
rhettinger Apr 28, 2019
e0dcb85
bpo-36745: Fix a possible reference leak in PyObject_SetAttr() (GH-12…
ZackerySpytz Apr 28, 2019
86f0c82
bpo-36729: Delete unused text variable on tests. (GH-12959)
eamanu Apr 29, 2019
db81ba1
bpo-36546: More tests: type preservation and equal inputs (#13000)
rhettinger Apr 29, 2019
b021ba5
Fix typo in 'tandem' word (GH-12998) (GH-12998)
heckad Apr 29, 2019
254b309
bpo-21536: On Android, C extensions are linked to libpython (GH-12989)
xdegaye Apr 29, 2019
f781d20
bpo-36475: Finalize PyEval_AcquireLock() and PyEval_AcquireThread() p…
nanjekyejoannah Apr 29, 2019
7a5a1cf
bpo-36747: Remove the stale scriptsinstall Makefile target (GH-13003)
xdegaye Apr 29, 2019
b36e5d6
bpo-36356: Destroy the GIL at exit (GH-12453)
vstinner Apr 29, 2019
99fcc61
Revert "bpo-36356: Destroy the GIL at exit (GH-12453)" (GH613006)
vstinner Apr 29, 2019
8c77b8c
bpo-36540: PEP 570 -- Implementation (GH-12701)
pablogsal Apr 29, 2019
843bf42
Add initial 'whatsnew' section for PEP 570 (GH-12942)
gvanrossum Apr 29, 2019
a86e064
bpo-35952: Fix test.pythoninfo when the compiler is missing (GH-13007)
xdegaye Apr 29, 2019
88c0937
bpo-36004: Add date.fromisocalendar (GH-11888)
pganssle Apr 29, 2019
be6dbfb
bpo-1613500: Don't hardcode output file mode in fileinput.FileInput (…
berkerpeksag Apr 29, 2019
883dfc6
bpo-34602: Avoid failures setting macOS stack resource limit (GH-13011)
ned-deily Apr 29, 2019
9bdd6d1
Prevent macOS installer build failure if ABIFLAGS is empty. (GH-13012)
ned-deily Apr 29, 2019
81c5a90
bpo-36232: Improve error message on dbm.open() when the db doesn't ex…
rougeth Apr 29, 2019
d5d2b45
bpo-36751: Deprecate getfullargspec and report positional-only args a…
pablogsal Apr 30, 2019
ee0309f
closes bpo-35329: Change 'Package' to 'package' in accordance with PE…
utkarsh2102 Apr 30, 2019
b0a2c0f
bpo-36018: Test idempotence. Test two methods against one-another. (G…
rhettinger Apr 30, 2019
3bbcc92
bpo-25430: improve performance of IPNetwork.__contains__ (GH-1785)
gescheit Apr 30, 2019
b84cb70
bpo-36734: Fix compilation of faulthandler.c on HP-UX (GH-12970)
vstinner Apr 30, 2019
d537ab0
bpo-36742: Fixes handling of pre-normalization characters in urlsplit…
zooba Apr 30, 2019
0df635c
Don't report deleted attributes in __dir__ (GH#10148)
mariocj89 Apr 30, 2019
463b82a
bpo-36763: Fix Py_SetStandardStreamEncoding() (GH-13028)
vstinner Apr 30, 2019
5f38b84
bpo-36763: Add _PyCoreConfig_SetArgv() (GH-13030)
vstinner May 1, 2019
c4e671e
bpo-30458: Disallow control chars in http URLs. (GH-12755)
gpshead May 1, 2019
db71975
bpo-36763: Rework _PyInitError API (GH-13031)
vstinner May 1, 2019
49e27f0
remove jython support from unittest.mock (GH#13033)
cjw296 May 1, 2019
2fc936e
bpo-30458: Disable https related urllib tests on a build without ssl …
tirkarthi May 1, 2019
1a9f0d8
bpo-36763: Add _PyCoreConfig_SetString() (GH-13035)
vstinner May 1, 2019
18029d8
MNT: set stacklevel in the getfullargspec deprecation warning to 2 (G…
tacaswell May 1, 2019
3d37ea2
bpo-27682: Handle client connection terminations in wsgiref (GH-9713)
PetterS May 1, 2019
43851a2
bpo-36673: Implement comment/PI parsing support for the TreeBuilder i…
scoder May 1, 2019
dde3eeb
bpo-36676: Namespace prefix aware parsing support for the ET.XMLParse…
scoder May 1, 2019
ee88af3
Namespace packages _bootstrap.ModuleSpec.loader attributes are no lon…
geryogam May 1, 2019
e1d5dd6
bpo-13611: C14N 2.0 implementation for ElementTree (GH-12966)
scoder May 1, 2019
b7378d7
bpo-30458: Use InvalidURL instead of ValueError. (GH-13044)
gpshead May 1, 2019
adbf178
Mock 100% coverage (GH-13045)
cjw296 May 1, 2019
482b6b5
Move dangling bullet points into named subsections (GH-13046)
rhettinger May 2, 2019
671d782
bpo-36018: Update example to show mean and stdev (GH-13047)
rhettinger May 2, 2019
11e4a94
Change bisect to bisect_cmd in docstring (#13040)
tirkarthi May 2, 2019
cb9fbd3
bpo-36763: Make _PyCoreConfig.check_hash_pycs_mode public (GH-13052)
vstinner May 2, 2019
5f2b3b0
regarding to grammar and spell check (#13020)
hossein-pourbozorg May 2, 2019
0522291
Fix tiny tiny typo in 3.8 what's new (GH-13049)
May 2, 2019
0d5864f
bpo-13611: Include C14N 2.0 test data in installation (GH-13053)
scoder May 2, 2019
c4e78b1
bpo-14546: Fix the argument handling in Tools/scripts/lll.py (GH-13026)
ZackerySpytz May 2, 2019
e251095
bpo-36775: Add _Py_FORCE_UTF8_FS_ENCODING macro (GH-13056)
vstinner May 2, 2019
43fc3bb
bpo-36775: Add _PyUnicode_InitEncodings() (GH-13057)
vstinner May 2, 2019
874ad1b
Fix typo: quaatile to quantile (GH=13001)
tirkarthi May 2, 2019
373893c
bpo-36763: Add _PyCoreConfig._config_version (GH-13065)
vstinner May 2, 2019
6ae2bbb
bpo-36776: Add @support.skip_unless_symlink to test_lll.py (GH-13058)
ZackerySpytz May 2, 2019
709d23d
bpo-36775: _PyCoreConfig only uses wchar_t* (GH-13062)
vstinner May 2, 2019
70005ac
bpo-36763: _PyCoreConfig_SetPyArgv() preinitializes Python (GH-13037)
vstinner May 2, 2019
4631da1
bpo-36763: Remove _PyCoreConfig._init_main (GH-13066)
vstinner May 2, 2019
45e92fc
Add correct license for C14N test suite to license docs. (GH-13055)
scoder May 2, 2019
22c5263
bpo:34848 : Correct an incorrect docstring for range().index method …
srinivasreddy May 3, 2019
5861cdd
Don't use the LHS/RHS acronym in Simple statements (GH-12996)
andresdelfino May 3, 2019
a8a79ca
Improve grammar on async context managers and shorten text (GH-12379)
andresdelfino May 3, 2019
4461d70
bpo-36341: Fix tests calling bind() on AF_UNIX sockets (GH-12399)
xdegaye May 3, 2019
c1964e9
bpo-36613: call remove_done_callback if exception (GH-12800)
gescheit May 3, 2019
ceb842e
Fixed typo (GH-11522)
alvassin May 3, 2019
4737b92
bpo-24638: Improve the error message in asyncio.ensure_future() (#12848)
ZackerySpytz May 3, 2019
cf48e55
bpo-33882: mention breakpoint() in debugger-related FAQ (GH-7759)
andresdelfino May 3, 2019
4754168
bpo-28238: Implement "{*}tag" and "{ns}*" wildcard tag selection supp…
scoder May 3, 2019
f090019
Suppress clang warning (GH-12384)
May 3, 2019
6b5b013
bpo-26978: Implement pathlib.Path.link_to (Using os.link) (GH-12990)
nanjekyejoannah May 4, 2019
c664b34
bpo-36475: Make PyThread_exit_thread with _Py_NO_RETURN (GH-13068)
vstinner May 4, 2019
5e98f05
bpo-36166: Change to rst datamodel file. (GH-13089)
catherinealvarado May 4, 2019
98a1e06
bpo-36189: Fixing typo in tutorial introduction (GH-13090)
jonyucra May 4, 2019
c4d92c8
simplify StartupImportTests (GH-13096)
methane May 5, 2019
88f07a8
bpo-33530: Implement Happy Eyeballs in asyncio, v2 (GH-7237)
twisteroidambassador May 5, 2019
2950073
bpo-36791: Safer detection of integer overflow in sum(). (GH-13080)
serhiy-storchaka May 5, 2019
e152169
bpo-16024: Doc cleanup regarding path_fd, dir_fd, follow_symlinks (GH…
csabella May 6, 2019
8b1271b
Only count number of members once (#12691)
eduardo-elizondo May 6, 2019
6b95149
bpo-36811: Fix a C compiler warning in _elementtree.c. (GH-13109)
scoder May 6, 2019
cec0184
Doc/c-api/exceptions.rst: fix grammar (#12091)
blueyed May 6, 2019
f7b494c
Update wsgiref.rst (#10488)
andresdelfino May 6, 2019
ae2c32f
bpo-36798: Updating f-string docs for := use case (GH-13107)
loganasherjones May 6, 2019
1a2252e
bpo-36594: Fix incorrect use of %p in format strings (GH-12769)
ZackerySpytz May 6, 2019
678bb9d
Unroll import-team in CODEOWNERS (#13118)
brettcannon May 6, 2019
c1004b8
Python 3.8.0a4
ambv May 6, 2019
4920c09
bpo-30668: add missing word in license.rst (GH-13115)
treebee May 6, 2019
e9b49d1
Clarify the download unit in the download section (GH-13122)
matrixise May 6, 2019
3921b1c
bpo-36275: enhance documentation for venv.create() (GH-13114)
skoslowski May 6, 2019
9646630
bpo-36766: Typos in docs and code comments (GH-13116)
GiantRobato May 6, 2019
96aeaec
bpo-36793: Remove unneeded __str__ definitions. (GH-13081)
serhiy-storchaka May 6, 2019
d53cf99
bpo-36542: Allow to overwrite the signature for Python functions. (GH…
serhiy-storchaka May 6, 2019
7b3a028
Fix rst formatting for several links in ssl documentation (GH-13133)
abadger May 6, 2019
2cc0223
bpo-35925: Skip SSL tests that fail due to weak external certs. (GH-1…
gpshead May 6, 2019
ad4ed87
Forbid creating of stream objects outside of asyncio (#13101)
asvetlov May 7, 2019
11a8832
bpo-31855: unittest.mock.mock_open() results now respects the argumen…
May 7, 2019
bbbdc2b
Merge tag 'v3.8.0a4'
ambv May 7, 2019
14987d4
Post v3.8.0a4
ambv May 7, 2019
5765ecf
bpo-36783: Added C API Documentation for Time_FromTimeAndFold and PyD…
edison12a May 7, 2019
e85ef7a
bpo-28795: Signal documentation: Fix misleading statement. (GH-13121)
JulienPalard May 7, 2019
64aa6d2
bpo-36533: Reinit logging.Handler locks on fork(). (GH-12704)
gpshead May 7, 2019
91cc01f
bpo-11001: updated cookie docs (GH-13086)
Julsy May 7, 2019
63deaa5
bpo-31922: Do not connect UDP sockets when broadcast is allowed (GH-423)
vxgmichel May 7, 2019
f7bda5c
Don't import wait from connection, it shadows a name (GH-13112)
brianquinlan May 7, 2019
b35acc5
bpo-35125: remove inner callback on outer cancellation in asyncio shi…
MainRo May 7, 2019
e19a91e
Add a footnote about Cheese Shop in Doc/tutorial (GH-13103)
adorilson May 7, 2019
1cc0ee7
bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transpor…
asvetlov May 7, 2019
3918ad6
bpo-36838: Suggest 'make venv' when missing Doc/ tools. (GH-13173)
gpshead May 7, 2019
ca87eeb
bpo-36015: Handle StreamHandler representaton of stream with an integ…
xrmx May 7, 2019
b1c3167
bpo-27639: Correct return type for UserList slicing operation (#13169)
mblahay May 7, 2019
70b8054
Doc: Fix missing bracket (GH-13163)
azalea May 8, 2019
b2758ff
bpo-36832: add zipfile.Path (#13153)
jaraco May 8, 2019
1d4b160
Doc: Be explicit that Pathlib resolve was strict before 3.6. (GH-11316)
JulienPalard May 8, 2019
6d19b04
example of what it could become
aixtools Apr 15, 2019
219b577
Add constants in Lib/test/support to signify platform during testing
aixtools Apr 15, 2019
2ebb886
resolve conflicts during rebase
aixtools May 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 11 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Objects/dict* @methane
# Ignoring importlib.h so as to not get flagged on
# all pull requests that change the emitted
# bytecode.
**/*import*.c @python/import-team
**/*import*.py @python/import-team
**/*import*.c @brettcannon @encukou @ericsnowcurrently @ncoghlan @warsaw
**/*import*.py @brettcannon @encukou @ericsnowcurrently @ncoghlan @warsaw


# SSL
Expand All @@ -43,13 +43,22 @@ Python/bootstrap_hash.c @python/crypto-team
**/*imap* @python/email-team
**/*poplib* @python/email-team

# Parser/Pgen
/Parser/pgen/ @pablogsal

# SQLite 3
**/*sqlite* @berkerpeksag

# subprocess
**/*subprocess* @gpshead

# Windows
/PC/ @python/windows-team
/PCbuild/ @python/windows-team

# Urllib
**/*robotparser* @berkerpeksag

# Windows installer packages
/Tools/msi/ @python/windows-team
/Tools/nuget/ @python/windows-team
Expand Down
16 changes: 12 additions & 4 deletions Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,19 @@ build:
@if [ -f ../Misc/NEWS ] ; then \
echo "Using existing Misc/NEWS file"; \
cp ../Misc/NEWS build/NEWS; \
elif [ -d ../Misc/NEWS.d ]; then \
echo "Building NEWS from Misc/NEWS.d with blurb"; \
$(BLURB) merge -f build/NEWS; \
elif $(BLURB) help >/dev/null 2>&1 && $(SPHINXBUILD) --version >/dev/null 2>&1; then \
if [ -d ../Misc/NEWS.d ]; then \
echo "Building NEWS from Misc/NEWS.d with blurb"; \
$(BLURB) merge -f build/NEWS; \
else \
echo "Neither Misc/NEWS.d nor Misc/NEWS found; cannot build docs"; \
exit 1; \
fi \
else \
echo "Neither Misc/NEWS.d nor Misc/NEWS found; cannot build docs"; \
echo ""; \
echo "Missing the required blurb or sphinx-build tools."; \
echo "Please run 'make venv' to install local copies."; \
echo ""; \
exit 1; \
fi
$(SPHINXBUILD) $(ALLSPHINXOPTS)
Expand Down
16 changes: 16 additions & 0 deletions Doc/c-api/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,22 @@ Macros to create objects:
minute, second and microsecond.


.. c:function:: PyObject* PyDateTime_FromDateAndTimeAndFold(int year, int month, int day, int hour, int minute, int second, int usecond, int fold)

Return a :class:`datetime.datetime` object with the specified year, month, day, hour,
minute, second, microsecond and fold.

.. versionadded:: 3.6


.. c:function:: PyObject* PyTime_FromTimeAndFold(int hour, int minute, int second, int usecond, int fold)

Return a :class:`datetime.time` object with the specified hour, minute, second,
microsecond and fold.

.. versionadded:: 3.6


.. c:function:: PyObject* PyTime_FromTime(int hour, int minute, int second, int usecond)

Return a :class:`datetime.time` object with the specified hour, minute, second and
Expand Down
4 changes: 2 additions & 2 deletions Doc/c-api/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ Printing and clearing
.. c:function:: void PyErr_PrintEx(int set_sys_last_vars)

Print a standard traceback to ``sys.stderr`` and clear the error indicator.
**Unless** the error is a ``SystemExit``. In that case the no traceback
is printed and Python process will exit with the error code specified by
**Unless** the error is a ``SystemExit``, in that case no traceback is
printed and the Python process will exit with the error code specified by
the ``SystemExit`` instance.

Call this function **only** when the error indicator is set. Otherwise it
Expand Down
24 changes: 24 additions & 0 deletions Doc/c-api/init.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,18 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
*tstate*, which should not be *NULL*. The lock must have been created earlier.
If this thread already has the lock, deadlock ensues.

.. note::
Calling this function from a thread when the runtime is finalizing
will terminate the thread, even if the thread was not created by Python.
You can use :c:func:`_Py_IsFinalizing` or :func:`sys.is_finalizing` to
check if the interpreter is in process of being finalized before calling
this function to avoid unwanted termination.

.. versionchanged:: 3.8
Updated to be consistent with :c:func:`PyEval_RestoreThread`,
:c:func:`Py_END_ALLOW_THREADS`, and :c:func:`PyGILState_Ensure`,
and terminate the current thread if called while the interpreter is finalizing.

:c:func:`PyEval_RestoreThread` is a higher-level function which is always
available (even when threads have not been initialized).

Expand All @@ -1106,6 +1118,18 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
:c:func:`PyEval_RestoreThread` or :c:func:`PyEval_AcquireThread`
instead.

.. note::
Calling this function from a thread when the runtime is finalizing
will terminate the thread, even if the thread was not created by Python.
You can use :c:func:`_Py_IsFinalizing` or :func:`sys.is_finalizing` to
check if the interpreter is in process of being finalized before calling
this function to avoid unwanted termination.

.. versionchanged:: 3.8
Updated to be consistent with :c:func:`PyEval_RestoreThread`,
:c:func:`Py_END_ALLOW_THREADS`, and :c:func:`PyGILState_Ensure`,
and terminate the current thread if called while the interpreter is finalizing.


.. c:function:: void PyEval_ReleaseLock()

Expand Down
5 changes: 5 additions & 0 deletions Doc/distutils/apiref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ the full reference.
| | simply skip the extension. | |
+------------------------+--------------------------------+---------------------------+

.. versionchanged:: 3.8

On Unix, C extensions are no longer linked to libpython except on
Android.


.. class:: Distribution

Expand Down
2 changes: 1 addition & 1 deletion Doc/distutils/setupscript.rst
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ following way::

setup(...,
data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']),
('config', ['cfg/data.cfg']),
('config', ['cfg/data.cfg'])],
)

Each (*directory*, *files*) pair in the sequence specifies the installation
Expand Down
1 change: 1 addition & 0 deletions Doc/extending/newtypes_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ The second bit is the definition of the type object. ::
.tp_doc = "Custom objects",
.tp_basicsize = sizeof(CustomObject),
.tp_itemsize = 0,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_new = PyType_GenericNew,
};

Expand Down
3 changes: 3 additions & 0 deletions Doc/faq/programming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Is there a source code level debugger with breakpoints, single-stepping, etc.?

Yes.

Several debuggers for Python are described below, and the built-in function
:func:`breakpoint` allows you to drop into any of them.

The pdb module is a simple but adequate console-mode debugger for Python. It is
part of the standard Python library, and is :mod:`documented in the Library
Reference Manual <pdb>`. You can also write your own debugger by using the code
Expand Down
7 changes: 7 additions & 0 deletions Doc/howto/regex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,13 @@ given numbers, so you can retrieve information about a group in two ways::
>>> m.group(1)
'Lots'

Additionally, you can retrieve named groups as a dictionary with
:meth:`~re.Match.groupdict`::

>>> m = re.match(r'(?P<first>\w+) (?P<last>\w+)', 'Jane Doe')
>>> m.groupdict()
{'first': 'Jane', 'last': 'Doe'}

Named groups are handy because they let you use easily-remembered names, instead
of having to remember numbers. Here's an example RE from the :mod:`imaplib`
module::
Expand Down
34 changes: 28 additions & 6 deletions Doc/library/asyncio-eventloop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ clocks to track time.
the event loop's internal monotonic clock.

.. note::

Timeouts (relative *delay* or absolute *when*) should not
exceed one day.
.. versionchanged:: 3.8
In Python 3.7 and earlier timeouts (relative *delay* or absolute *when*)
should not exceed one day. This has been fixed in Python 3.8.

.. seealso::

Expand Down Expand Up @@ -397,9 +397,27 @@ Opening network connections
If given, these should all be integers from the corresponding
:mod:`socket` module constants.

* *happy_eyeballs_delay*, if given, enables Happy Eyeballs for this
connection. It should
be a floating-point number representing the amount of time in seconds
to wait for a connection attempt to complete, before starting the next
attempt in parallel. This is the "Connection Attempt Delay" as defined
in :rfc:`8305`. A sensible default value recommended by the RFC is ``0.25``
(250 milliseconds).

* *interleave* controls address reordering when a host name resolves to
multiple IP addresses.
If ``0`` or unspecified, no reordering is done, and addresses are
tried in the order returned by :meth:`getaddrinfo`. If a positive integer
is specified, the addresses are interleaved by address family, and the
given integer is interpreted as "First Address Family Count" as defined
in :rfc:`8305`. The default is ``0`` if *happy_eyeballs_delay* is not
specified, and ``1`` if it is.

* *sock*, if given, should be an existing, already connected
:class:`socket.socket` object to be used by the transport.
If *sock* is given, none of *host*, *port*, *family*, *proto*, *flags*
If *sock* is given, none of *host*, *port*, *family*, *proto*, *flags*,
*happy_eyeballs_delay*, *interleave*
and *local_addr* should be specified.

* *local_addr*, if given, is a ``(local_host, local_port)`` tuple used
Expand All @@ -410,6 +428,10 @@ Opening network connections
to wait for the TLS handshake to complete before aborting the connection.
``60.0`` seconds if ``None`` (default).

.. versionadded:: 3.8

The *happy_eyeballs_delay* and *interleave* parameters.

.. versionadded:: 3.7

The *ssl_handshake_timeout* parameter.
Expand Down Expand Up @@ -1601,7 +1623,7 @@ using the :meth:`loop.add_signal_handler` method::
import os
import signal

def ask_exit(signame):
def ask_exit(signame, loop):
print("got signal %s: exit" % signame)
loop.stop()

Expand All @@ -1611,7 +1633,7 @@ using the :meth:`loop.add_signal_handler` method::
for signame in {'SIGINT', 'SIGTERM'}:
loop.add_signal_handler(
getattr(signal, signame),
functools.partial(ask_exit, signame))
functools.partial(ask_exit, signame, loop))

await asyncio.sleep(3600)

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/asyncio-sync.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ those of the :mod:`threading` module with two important caveats:
argument; use the :func:`asyncio.wait_for` function to perform
operations with timeouts.

asyncio has the following basic sychronization primitives:
asyncio has the following basic synchronization primitives:

* :class:`Lock`
* :class:`Event`
Expand Down
17 changes: 17 additions & 0 deletions Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,13 @@ Other constructors, all class methods:
.. versionadded:: 3.7


.. classmethod:: date.fromisocalendar(year, week, day)

Return a :class:`date` corresponding to the ISO calendar date specified by
year, week and day. This is the inverse of the function :meth:`date.isocalendar`.

.. versionadded:: 3.8


Class attributes:

Expand Down Expand Up @@ -854,6 +861,16 @@ Other constructors, all class methods:

.. versionadded:: 3.7


.. classmethod:: datetime.fromisocalendar(year, week, day)

Return a :class:`datetime` corresponding to the ISO calendar date specified
by year, week and day. The non-date components of the datetime are populated
with their normal default values. This is the inverse of the function
:meth:`datetime.isocalendar`.

.. versionadded:: 3.8

.. classmethod:: datetime.strptime(date_string, format)

Return a :class:`.datetime` corresponding to *date_string*, parsed according to
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/email.generator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ to be using :class:`BytesGenerator`, and not :class:`Generator`.
(This is required because strings cannot represent non-ASCII bytes.)
Convert any bytes with the high bit set as needed using an
ASCII-compatible :mailheader:`Content-Transfer-Encoding`. That is,
transform parts with non-ASCII :mailheader:`Cotnent-Transfer-Encoding`
transform parts with non-ASCII :mailheader:`Content-Transfer-Encoding`
(:mailheader:`Content-Transfer-Encoding: 8bit`) to an ASCII compatible
:mailheader:`Content-Transfer-Encoding`, and encode RFC-invalid non-ASCII
bytes in headers using the MIME ``unknown-8bit`` character set, thus
Expand Down
16 changes: 9 additions & 7 deletions Doc/library/http.cookies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ in Cookie name (as :attr:`~Morsel.key`).
.. class:: SimpleCookie([input])

This class derives from :class:`BaseCookie` and overrides :meth:`value_decode`
and :meth:`value_encode` to be the identity and :func:`str` respectively.

and :meth:`value_encode`. SimpleCookie supports strings as cookie values.
When setting the value, SimpleCookie calls the builtin :func:`str()` to convert
the value to a string. Values received from HTTP are kept as strings.

.. seealso::

Expand All @@ -76,15 +77,16 @@ Cookie Objects

.. method:: BaseCookie.value_decode(val)

Return a decoded value from a string representation. Return value can be any
type. This method does nothing in :class:`BaseCookie` --- it exists so it can be
overridden.
Return a tuple ``(real_value, coded_value)`` from a string representation.
``real_value`` can be any type. This method does no decoding in
:class:`BaseCookie` --- it exists so it can be overridden.


.. method:: BaseCookie.value_encode(val)

Return an encoded value. *val* can be any type, but return value must be a
string. This method does nothing in :class:`BaseCookie` --- it exists so it can
Return a tuple ``(real_value, coded_value)``. *val* can be any type, but
``coded_value`` will always be converted to a string.
This method does no encoding in :class:`BaseCookie` --- it exists so it can
be overridden.

In general, it should be the case that :meth:`value_encode` and
Expand Down
6 changes: 2 additions & 4 deletions Doc/library/idle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -724,11 +724,9 @@ to begin after the next tab stop. (They occur every 8 'characters'). Newline
characters cause following text to appear on a new line. Other control
characters are ignored or displayed as a space, box, or something else,
depending on the operating system and font. (Moving the text cursor through
such output with arrow keys may exhibit some surprising spacing behavior.)
such output with arrow keys may exhibit some surprising spacing behavior.) ::

.. code-block:: none

>>> s = 'a\tb\a<\x02><\r>\bc\nd'
>>> s = 'a\tb\a<\x02><\r>\bc\nd' # Enter 22 chars.
>>> len(s)
14
>>> s # Display repr(s)
Expand Down
3 changes: 3 additions & 0 deletions Doc/library/imaplib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ An :class:`IMAP4` instance has the following methods:

Shutdown connection to server. Returns server ``BYE`` response.

.. versionchanged:: 3.8
The method no longer ignores silently arbitrary exceptions.


.. method:: IMAP4.lsub(directory='""', pattern='*')

Expand Down
5 changes: 5 additions & 0 deletions Doc/library/inspect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,11 @@ Classes and functions
APIs. This function is retained primarily for use in code that needs to
maintain compatibility with the Python 2 ``inspect`` module API.

.. deprecated:: 3.8
Use :func:`signature` and
:ref:`Signature Object <inspect-signature-object>`, which provide a
better introspecting API for callables.

.. versionchanged:: 3.4
This function is now based on :func:`signature`, but still ignores
``__wrapped__`` attributes and includes the already bound first
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/itertools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ which incur interpreter overhead.
"List unique elements, preserving order. Remember only the element just seen."
# unique_justseen('AAAABBBCCDAABBB') --> A B C D A B
# unique_justseen('ABBCcAD', str.lower) --> A B C A D
return map(next, map(itemgetter(1), groupby(iterable, key)))
return map(next, map(operator.itemgetter(1), groupby(iterable, key)))

def iter_except(func, exception, first=None):
""" Call a function repeatedly until an exception is raised.
Expand Down
Loading