Skip to content

bpo-41073: PyType_GetSlot() could accept static types. #21395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 197 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
2baaf6c
PyType_GetSlot() could accept static types
shihai1991 Jul 8, 2020
9fb5ed4
update docs' style
shihai1991 Jul 8, 2020
ddb08f5
bpo-29778: test_embed tests the path configuration (GH-21306)
vstinner Jul 7, 2020
72c57f5
bpo-41224: Document is_annotated() in symtable module and update doc …
nanjekyejoannah Jul 7, 2020
4f2a589
bpo-41173: Copy test results file from ARM worker before uploading (G…
zooba Jul 7, 2020
4165234
Add a test for get_id() (GH-21370)
nanjekyejoannah Jul 8, 2020
6e362d8
closes bpo-41235: Fix the error handling in SSLContext.load_dh_params…
ZackerySpytz Jul 8, 2020
e4512c0
Revert "bpo-40170: PyType_HasFeature() now always calls PyType_GetFla…
vstinner Jul 8, 2020
a747cbb
bpo-41247: asyncio.set_running_loop() cache running loop holder (GH-2…
tontinton Jul 8, 2020
badce8a
bpo-41175: Guard against a NULL pointer dereference within bytearrayo…
stratakis Jul 8, 2020
aee8f10
bpo-40597: Allow email.contextmanager set_content() to set a null str…
msapiro Jul 8, 2020
e8ab709
Doc: Builtins functions: faster jump table (GH-21376)
JulienPalard Jul 9, 2020
e8e8414
bpo-41252: Fix incorrect refcounting in _ssl.c's _servername_callback…
ZackerySpytz Jul 9, 2020
10ddc13
bpo-41199: Docstring convention not followed for dataclasses document…
archsyscall Jul 9, 2020
d4ae3c0
bpo-40275: Use new test.support helper submodules in tests (GH-21412)
shihai1991 Jul 9, 2020
3d19985
bpo-29590: fix stack trace for gen.throw() with yield from (#19896)
cjerdonek Jul 9, 2020
10a0fd6
bpo-41172: Fix check for compiler in test suite (GH-21400)
zooba Jul 9, 2020
ae339e3
Remove trailing >>> in enum docs (GH-21358)
E-Paine Jul 9, 2020
4afdfeb
bpo-37765: Add keywords to IDLE tab completions (GH-15138)
terryjreedy Jul 9, 2020
8b69fa9
bpo-23802: patch: __deepcopy__ memo dict argument usage (GH-21326)
nanjekyejoannah Jul 10, 2020
34e0077
bpo-41263: Convert code.__new__ to Argument Clinic (GH-21426)
serhiy-storchaka Jul 10, 2020
3e15a13
bpo-36346: Do not use legacy Unicode C API in ctypes. (#21429)
serhiy-storchaka Jul 10, 2020
4cb6c2f
bpo-39573: Use the Py_TYPE() macro (GH-21433)
vstinner Jul 10, 2020
75fec26
Fix typo in docs: 'created by th' -> 'created by the' (GH-21384)
archsyscall Jul 10, 2020
ae7a149
bpo-20179: Convert the _overlapped module to the Argument Clinic (GH-…
ZackerySpytz Jul 10, 2020
11ce089
bpo-36346: Make using the legacy Unicode C API optional (GH-21437)
serhiy-storchaka Jul 10, 2020
2a67b47
bpo-41228: Fix /a/are/ in monthcalendar() descripton (GH-21372)
nimadini Jul 11, 2020
57379f2
Fix error in docstrings in bisect module (GH-21422)
jdavcs Jul 11, 2020
6291072
bpo-20181: Convert the readline module to the Argument Clinic (#14326)
ZackerySpytz Jul 12, 2020
0ec7ea9
bpo-20175: Convert Modules/_multiprocessing to the Argument Clinic (G…
ZackerySpytz Jul 12, 2020
f586855
bpo-41146: Convert signal.default_int_handler() to Argument Clinic (G…
serhiy-storchaka Jul 12, 2020
36f7b63
bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458)
serhiy-storchaka Jul 13, 2020
ecb1620
bpo-32192: A basic lazy importer example (GH-21330)
nanjekyejoannah Jul 13, 2020
1538dd5
Fix repeated words in Classes tutorial (GH-21455)
PaulMcMillan Jul 14, 2020
001bb55
bpo-32528: Document the change in inheritance of asyncio.CancelledErr…
JustAnotherArchivist Jul 14, 2020
1ec0151
bpo-41273: asyncio's proactor read transport's better performance by …
tontinton Jul 14, 2020
dee90c8
bpo-20183: Convert _locale to the Argument Clinic (GH-14201)
ZackerySpytz Jul 15, 2020
ad7df48
bpo-39017: Avoid infinite loop in the tarfile module (GH-21454)
rishi93 Jul 15, 2020
961b9e5
bpo-41302: Fix build with system libmpdec (GH-21481)
felixonmars Jul 15, 2020
af9b1f7
Fix -Wstrict-prototypes warning in thread_pthread.h. (GH-21477)
benjaminp Jul 15, 2020
577e0a7
Fix -Wstring-prototypes warnings in _zoneinfo.c. (GH-21478)
benjaminp Jul 15, 2020
c1e53d7
bpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() c…
ZackerySpytz Jul 15, 2020
17e73a4
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)
zooba Jul 15, 2020
c3ac6f3
bpo-31844: Remove _markupbase.ParserBase.error() (GH-8562)
berkerpeksag Jul 16, 2020
74a9d96
bpo-31844: Move whatsnew note to 3.10.rst (GH-21504)
berkerpeksag Jul 16, 2020
6842187
Remove unnecessary spaces in code blocks in urllib.parse.rst (GH-21500)
chrisyeh96 Jul 16, 2020
15f07e1
Fix possibly-unitialized warning in string_parser.c. (GH-21503)
benjaminp Jul 16, 2020
ed8e0aa
Fix trivial typo in the PEG string parser (GH-21508)
ericvsmith Jul 16, 2020
fdf5d39
bpo-41300: IDLE - save files with non-ascii chars (GH-21512)
terryjreedy Jul 16, 2020
ea9974c
bpo-41195: Add getter for Openssl security level (GH-21282)
matthewhughes934 Jul 17, 2020
3b704a1
bpo-40941: Unify implicit and explicit state in the frame and generat…
markshannon Jul 17, 2020
1194936
bpo-43104: Update NEWS to include CVE-2020-15801 reference (GH-21521)
zooba Jul 17, 2020
37405c8
Fix a small grammatical mistake in a comment (GH-21526)
brettcannon Jul 17, 2020
548e901
bpo-41288: Refactor of unpickling NEWOBJ and NEWOBJ_EX opcodes. (GH-2…
serhiy-storchaka Jul 18, 2020
beb1d99
bpo-41262: Convert memoryview to Argument Clinic. (GH-21421)
serhiy-storchaka Jul 18, 2020
89d4e73
bpo-41325: Add version note for args and kwargs property in call obje…
uSpike Jul 18, 2020
35cf638
bpo-39603: Prevent header injection in http methods (GH-18485)
amiremohamadi Jul 18, 2020
24adf5f
bpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)
scoder Jul 18, 2020
74673d6
bpo-41333: Convert OrderedDict.pop() to Argument Clinic (GH-21534)
serhiy-storchaka Jul 19, 2020
64d261a
bpo-41205: Document Decimal power 0 to the 0 (GH-21386)
srinivasreddy Jul 19, 2020
9fd6631
bpo-38169: Increase code coverage for SharedMemory and ShareableList …
vinay0410 Jul 19, 2020
5a745bb
bpo-41338: Fix DeprecationWarning in tests (GH-21542)
methane Jul 20, 2020
5df8282
bpo-40741: Update macOS installer to use SQLite 3.32.3 (GH-20979)
Jul 20, 2020
fcfeef5
Doc: fix import of asdl.py when called from outside Doc/. (GH-21529)
JulienPalard Jul 20, 2020
d43a3a8
bpo-37703: improve asyncio.gather documentation regarding cancellatio…
vinay0410 Jul 20, 2020
f202008
Simple Documentation fix: Missing link to return type class. (GH-21291)
Volker-Weissmann Jul 20, 2020
71123d7
bpo-41336: Fix the error handling in zoneinfo_new_instance() (GH-21546)
ZackerySpytz Jul 20, 2020
c12e277
bpo-41343: Convert methods of complex to Argument Clinic (GH-21550)
corona10 Jul 20, 2020
fafab17
bpo-41334: Convert constructors of str, bytes and bytearray to Argume…
serhiy-storchaka Jul 20, 2020
52ca417
bpo-41342: Convert int.__round__ to Argument Clinic (GH-21549)
serhiy-storchaka Jul 20, 2020
48e637f
bpo-40741: Update Windows build to include SQLite 3.32.3 (GH-21570)
zooba Jul 20, 2020
d851238
bpo-41283: Fix mismatched argument name for imghdr.what (GH-21501)
ammaraskar Jul 21, 2020
59b14fb
bpo-41364: Reduce import overhead of uuid module (GH-21586)
zooba Jul 21, 2020
0af740d
bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (#21553)
wyfo Jul 22, 2020
7ba21aa
bpo-41369 Update to libmpdec-2.5.1: new features (GH-21593)
skrah Jul 22, 2020
20ad69d
Stick with the phrase "default parameter value" (GH-21590)
andresdelfino Jul 22, 2020
e3cfbb3
bpo-41182 selector: use DefaultSelector based upon implementation (GH…
Akasurde Jul 23, 2020
3c3e118
bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)
ZackerySpytz Jul 23, 2020
6eeca64
bpo-41366: Fix clang warning for sign conversion (GH-21592)
henryiii Jul 23, 2020
8084969
bpo-41317: Remove reader on cancellation in asyncio.loop.sock_accept(…
agronholm Jul 23, 2020
0c2568b
bpo-41373: IDLE: Fix saving files loaded with no newlines or mixed ne…
serhiy-storchaka Jul 25, 2020
bde5716
bpo-37309: NEWS for #41373 (GH-21612)
terryjreedy Jul 25, 2020
6be96d8
bpo-38731: Add --quiet option to py_compile CLI (GH-17134)
gvsheva Jul 25, 2020
2dc5ef1
bpo-41314: fixed annotations __future__ version (GH-21616)
YoSTEALTH Jul 25, 2020
2161d14
bpo-39868: Add documentation for Assignment Expressions (walrus, PEP …
shankarj67 Jul 25, 2020
83936ce
bpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)
serhiy-storchaka Jul 26, 2020
5cbe96f
Delete remaining references to Grammar/Grammar from docs (#21624)
gvanrossum Jul 26, 2020
6e4212d
Fix atexitmodule doc (GH-21456)
linchiwei123 Jul 26, 2020
9458adf
bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)
Akuli Jul 27, 2020
e0ccb2f
bpo-41340: Removed fallback implementation for strdup (GH-21634)
Jul 27, 2020
0cfb5e4
bpo-31904: Fix test_ftplib failures for VxWorks RTOS (GH-19447)
pxinwr Jul 27, 2020
3c3ae53
bpo-41401: Fix test_fspath_support in test_io. (GH-21640)
serhiy-storchaka Jul 27, 2020
718d817
bpo-40939: Use the new grammar for the grammar specification document…
pablogsal Jul 27, 2020
c45efcd
bpo-40939: Remove even more references to the old parser (GH-21642)
lysnikolaou Jul 27, 2020
e22a2b5
bpo-41045: Document debug feature of f-strings ('=') (GH-21509)
amaajemyfren Jul 27, 2020
a71bc1e
Validate the AST produced by the parser in debug mode (GH-21643)
pablogsal Jul 27, 2020
c664c98
bpo-35328: Set VIRTUAL_ENV_PROMPT at venv activation (GH-21587)
ZackerySpytz Jul 28, 2020
eb78b5d
bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (…
Jul 28, 2020
e87fee2
bpo-41412 and bpo-40948: Windows installer updates (GH-21656)
zooba Jul 28, 2020
1637ec5
Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
zhangyangyu Jul 28, 2020
bba1451
Remove incorrect mention of method.__class__ in descriptor docs (GH-2…
Jongy Jul 28, 2020
c1272b7
closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH…
benjaminp Jul 29, 2020
39b7536
bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)
s3bw Jul 29, 2020
9b6d58d
bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-…
markshannon Jul 30, 2020
85df5a0
bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)
tirkarthi Jul 31, 2020
fe3549e
bpo-41421: Algebraic simplification for random.paretovariate() (GH-21…
rhettinger Aug 1, 2020
a6d5416
random module: Convert a "while 1" to "while True (GH-21700)
rhettinger Aug 2, 2020
465168a
bpo-40979: refactored typing.rst; (mostly) same content, new sub-sect…
ramalho Aug 2, 2020
a6cced6
bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)
nmaynes Aug 3, 2020
0b2ff3b
bpo-41425: Make tkinter doc example runnable (GH-21706)
nerandell Aug 3, 2020
54ea8c6
A (very) slight speed improvement for iterating over bytes (#21705)
gvanrossum Aug 3, 2020
67af100
bpo-40275: Use new test.support helper submodules in tests (GH-21449)
shihai1991 Aug 3, 2020
d68c004
bpo-40275: Use new test.support helper submodules in tests (GH-21451)
shihai1991 Aug 3, 2020
daeb453
bpo-40275: Use new test.support helper submodules in tests (GH-21448)
shihai1991 Aug 3, 2020
8c216e7
bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH…
vstinner Aug 3, 2020
012eaf5
bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)
vstinner Aug 4, 2020
8048788
bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)
vstinner Aug 4, 2020
1090b51
bpo-41431: Optimize dict_merge for copy (GH-21674)
methane Aug 4, 2020
fba514e
bpo-36982: Add support for extended color functions in ncurses 6.1 (G…
hpjansson Aug 4, 2020
37fb8f8
bpo-40275: Use new test.support helper submodules in tests (GH-21452)
shihai1991 Aug 4, 2020
4e872d0
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
shihai1991 Aug 4, 2020
fdaafe0
bpo-41463: Generate information about jumps from 'opcode.py' rather t…
markshannon Aug 4, 2020
ab336e3
bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)
methane Aug 5, 2020
451d41a
bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH…
isidentical Aug 5, 2020
f48916f
bpo-40989: Fix compiler warning in winreg.c (GH-21722)
vstinner Aug 5, 2020
cca65d8
bpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)
ericfrederich Aug 5, 2020
5b95d6e
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
shihai1991 Aug 6, 2020
57fed83
bpo-41492: Fixes the description appearing in UAC prompts on Windows …
zooba Aug 6, 2020
77b4e68
bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734)
nmaynes Aug 6, 2020
cd571d2
bpo-41493: Refactoring dictresize (GH-21751)
methane Aug 7, 2020
013bf40
bpo-41440: add os.cpu_count() support for VxWorks RTOS (GH-21685)
pxinwr Aug 7, 2020
c76c63d
bpo-39871: Fix an error in a news entry (GH-21749)
ZackerySpytz Aug 7, 2020
fd92dce
bpo-41098: Doc: Add missing deprecated directives (GH-21162)
methane Aug 7, 2020
c7dcf21
bpo-40275: Use new test.support helper submodules in tests (GH-21764)
shihai1991 Aug 7, 2020
b3ea5c9
bpo-41477: Make ctypes optional in test_genericalias (GH-21766)
vstinner Aug 7, 2020
b277e89
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
vstinner Aug 7, 2020
0b5c0da
bpo-40275: Use new test.support helper submodules in tests (GH-21772)
shihai1991 Aug 7, 2020
45991c0
Update Azure Pipelines build to use Ubuntu 18.04 and move triggers in…
zooba Aug 7, 2020
3af3e24
Doc: Add a link to tutorial page from `open()` doc (GH-21737)
bbkane Aug 8, 2020
8812b08
bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)
zkonge Aug 8, 2020
21d083d
bpo-40275: Remove test helpers aliases in test.support (GH-21771)
shihai1991 Aug 8, 2020
6f30946
bpo-40275: Use new test.support helper submodules in tests (GH-21785)
shihai1991 Aug 8, 2020
2305eb8
bpo-41455: Provide a link to how the third generation is collected in…
ypankovych Aug 8, 2020
3543029
Doc: Add output to example code in programming FAQ (GH-21346)
zhongjiajie Aug 8, 2020
4f87cfc
bpo-35018: Sax parser should provide user access to lexical handlers …
ZackerySpytz Aug 9, 2020
67ac0eb
Improve renamed test_run.RecursionLimitTest (GH-21794)
terryjreedy Aug 9, 2020
b3b7e7b
bpo-41468: Improve and test IDLE run error exit (GH-21798)
terryjreedy Aug 9, 2020
5637492
bpo-41514: Fix buggy IDLE test (GH-21808)
terryjreedy Aug 10, 2020
d3aa84a
bpo-41324 Add a minimal decimal capsule API (#21519)
skrah Aug 10, 2020
3705f26
bpo-16995: add support for base32 extended hex (base32hex) (GH-20441)
FFY00 Aug 10, 2020
450f4ea
bpo-40548: Fix "Check for source changes (pull_request)" GH Action jo…
vstinner Aug 10, 2020
6309e42
Replace import_fresh_module in decimal test files (GH-21815)
skrah Aug 10, 2020
c7c91df
MSVC: The ARM command line should not define MASM. (#21817)
skrah Aug 10, 2020
77345ae
bpo-40275: Fix failed test cases by using test helpers (GH-21811)
shihai1991 Aug 10, 2020
46455cb
bpo-1635741: Port multiprocessing ext to multiphase init (GH-21378)
koubaa Aug 11, 2020
10c05a6
bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21…
vstinner Aug 11, 2020
b29ec43
bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21…
vstinner Aug 11, 2020
1062590
Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773)
edreamleo Aug 11, 2020
6f2e7f0
Add PEP 573 additions to What's New (GH-21374)
encukou Aug 11, 2020
4f80f7b
bpo-41475: Fix note in "What's new in 3.7" (#21733)
cool-RR Aug 11, 2020
cbb80fe
Call randseed() before other imports in deccheck.py (GH-21834)
skrah Aug 11, 2020
4b0401e
Fix typo (GH-21820)
chrisyeh96 Aug 11, 2020
f5b0289
bpo-41521, typing: Rename _PROTO_WHITELIST to _PROTO_ALLOWLIST (#21825)
vstinner Aug 12, 2020
97c14a7
bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)
vstinner Aug 12, 2020
23924bb
Catch all skip_handler cases (GH-21842)
skrah Aug 12, 2020
8c5a703
bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844)
vstinner Aug 12, 2020
0b9ebc2
bpo-1635741: Clean sysdict and builtins of interpreter at exit (GH-21…
shihai1991 Aug 12, 2020
f086341
bpo-41531: Fix compilation of dict literals with more than 0xFFFF ele…
pablogsal Aug 13, 2020
1626edd
bpo-1635741: Port _winapi ext to multi-stage init (GH-21371)
koubaa Aug 13, 2020
5d8ea23
bpo-40204: Fix Sphinx sytanx in howto/instrumentation.rst (GH-21858)
vstinner Aug 13, 2020
3d814c1
bpo-40204: Fix duplicates in the documentation (GH-21857)
vstinner Aug 13, 2020
67cb1c9
bpo-41520: Fix second codeop regression (GH-21848)
terryjreedy Aug 13, 2020
ad08c65
bpo-41521: Replace denylist with blocklist is http.cookiejar doc (GH-…
vstinner Aug 13, 2020
6cecf33
bpo-40204: Add :noindex: in the documentation (GH-21859)
vstinner Aug 13, 2020
3ae5814
bpo-41066: Update the comparison section for os vs pathlib (GH-21261)
srinivasreddy Aug 13, 2020
6b1f82c
bpo-40204, doc: Fix syntax of C variables (GH-21846)
vstinner Aug 13, 2020
465d841
Fixed comment about pathlib.link_to: it was added in 3.8, not changed…
facundobatista Aug 13, 2020
4e98227
bpo-41526: Fixed layout of final page of the installer (GH-21871)
zooba Aug 13, 2020
dec5548
bpo-41410: Fix outdated info in mkstemp docs (GH-21701)
xrisk Aug 14, 2020
6a2ed7f
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965)
pganssle Aug 14, 2020
e5ff50c
bpo-40204: Fix reference to terms in the doc (GH-21865)
vstinner Aug 14, 2020
9e1e528
Fix typo in typing doc (GH-21879)
iritkatriel Aug 14, 2020
9c8f970
bpo-40878: xlc cannot handle C99 extern inline. (GH-21887)
skrah Aug 15, 2020
360a2c8
bpo-31122: ssl.wrap_socket() now raises ssl.SSLEOFError rather than O…
dimaqq Aug 15, 2020
79b1809
bpo-41540: AIX: skip test that is flaky with a default ulimit. (#21890)
skrah Aug 15, 2020
9346853
bpo-41513: Improve speed and accuracy of math.hypot() (GH-21803)
rhettinger Aug 16, 2020
3f36a40
bpo-41503: Fix race between setTarget and flush in logging.handlers.M…
iritkatriel Aug 16, 2020
17002a0
Update the comment of termios.c (#21886)
8vasu Aug 16, 2020
3a6cc99
bpo-41521: Rename blacklist parameter to not_exported (GH-21824)
vstinner Aug 17, 2020
387df56
bpo-40204: Fix duplicated productionlist names in the doc (GH-21900)
vstinner Aug 17, 2020
973136b
Fix typo in message from assert statement (GH-21283)
aboddie Aug 17, 2020
f2a1319
bpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a m…
jamesba Aug 17, 2020
2ee8174
bpo-1635741: Explict GC collect after PyInterpreterState_Clear() (GH-…
shihai1991 Aug 17, 2020
65f9968
bpo-41568: Fix refleaks in zoneinfo subclasses (GH-21907)
pganssle Aug 17, 2020
9af746f
use typeslots not in limit apis
shihai1991 Jul 9, 2020
526c3cf
add test cases to against PyType_GetSlot()
shihai1991 Aug 20, 2020
e2ae111
update typeslots.h
shihai1991 Aug 20, 2020
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
  •  
  •  
  •  
45 changes: 5 additions & 40 deletions .azure-pipelines/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
variables:
manylinux: false
coverage: false

resources:
containers:
- container: manylinux1
image: pyca/cryptography-manylinux1:x86_64
trigger: ['master', '3.9', '3.8', '3.7']

jobs:
- job: Prebuild
displayName: Pre-build checks

pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-18.04

steps:
- template: ./prebuild-checks.yml
Expand All @@ -24,7 +20,7 @@ jobs:
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))

pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-18.04

steps:
- template: ./docs-steps.yml
Expand Down Expand Up @@ -56,7 +52,7 @@ jobs:
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))

pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-18.04

variables:
testRunTitle: '$(build.sourceBranchName)-linux'
Expand All @@ -69,37 +65,6 @@ jobs:
dependencies: apt


- job: ManyLinux1_CI_Tests
displayName: ManyLinux1 CI Tests
dependsOn: Prebuild
condition: |
and(
and(
succeeded(),
eq(variables['manylinux'], 'true')
),
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
)

pool:
vmImage: ubuntu-16.04

container: manylinux1

variables:
testRunTitle: '$(build.sourceBranchName)-manylinux1'
testRunPlatform: manylinux1
openssl_version: ''

steps:
- template: ./posix-steps.yml
parameters:
dependencies: yum
sudo_dependencies: ''
xvfb: false
patchcheck: false


- job: Ubuntu_Coverage_CI_Tests
displayName: Ubuntu CI Tests (coverage)
dependsOn: Prebuild
Expand All @@ -113,7 +78,7 @@ jobs:
)

pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-18.04

variables:
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
Expand Down
45 changes: 5 additions & 40 deletions .azure-pipelines/pr.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
variables:
manylinux: false
coverage: false

resources:
containers:
- container: manylinux1
image: pyca/cryptography-manylinux1:x86_64
pr: ['master', '3.9', '3.8', '3.7']

jobs:
- job: Prebuild
displayName: Pre-build checks

pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-18.04

steps:
- template: ./prebuild-checks.yml
Expand All @@ -24,7 +20,7 @@ jobs:
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))

pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-18.04

steps:
- template: ./docs-steps.yml
Expand Down Expand Up @@ -56,7 +52,7 @@ jobs:
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))

pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-18.04

variables:
testRunTitle: '$(system.pullRequest.TargetBranch)-linux'
Expand All @@ -69,37 +65,6 @@ jobs:
dependencies: apt


- job: ManyLinux1_PR_Tests
displayName: ManyLinux1 PR Tests
dependsOn: Prebuild
condition: |
and(
and(
succeeded(),
eq(variables['manylinux'], 'true')
),
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
)

pool:
vmImage: ubuntu-16.04

container: manylinux1

variables:
testRunTitle: '$(system.pullRequest.TargetBranch)-manylinux1'
testRunPlatform: manylinux1
openssl_version: ''

steps:
- template: ./posix-steps.yml
parameters:
dependencies: yum
sudo_dependencies: ''
xvfb: false
patchcheck: false


- job: Ubuntu_Coverage_PR_Tests
displayName: Ubuntu PR Tests (coverage)
dependsOn: Prebuild
Expand All @@ -113,7 +78,7 @@ jobs:
)

pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-18.04

variables:
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
Expand Down
6 changes: 6 additions & 0 deletions .azure-pipelines/windows-release/msi-steps.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
steps:
- template: ./checkout.yml

- powershell: |
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
displayName: 'Update signing description'
condition: and(succeeded(), not(variables['SigningDescription']))

- task: DownloadPipelineArtifact@1
displayName: 'Download artifact: doc'
inputs:
Expand Down
8 changes: 7 additions & 1 deletion .azure-pipelines/windows-release/stage-pack-msix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,15 @@ jobs:
clean: all

steps:
- checkout: none
- template: ./checkout.yml
- template: ./find-sdk.yml

- powershell: |
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
displayName: 'Update signing description'
condition: and(succeeded(), not(variables['SigningDescription']))

- task: DownloadBuildArtifacts@0
displayName: 'Download Artifact: unsigned_msix'
inputs:
Expand Down
6 changes: 6 additions & 0 deletions .azure-pipelines/windows-release/stage-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
- template: ./checkout.yml
- template: ./find-sdk.yml

- powershell: |
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
displayName: 'Update signing description'
condition: and(succeeded(), not(variables['SigningDescription']))

- powershell: |
Write-Host "##vso[build.addbuildtag]signed"
displayName: 'Add build tags'
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,20 @@ jobs:
echo '::set-output name=run_tests::true'
else
git fetch origin $GITHUB_BASE_REF --depth=1
git diff --name-only origin/$GITHUB_BASE_REF... | grep -qvE '(\.rst$|^Doc|^Misc)' && echo '::set-output name=run_tests::true' || true
# git diff "origin/$GITHUB_BASE_REF..." (3 dots) may be more
# reliable than git diff "origin/$GITHUB_BASE_REF.." (2 dots),
# but it requires to download more commits (this job uses
# "git fetch --depth=1").
#
# git diff "origin/$GITHUB_BASE_REF..." (3 dots) works with Git
# 2.26, but Git 2.28 is stricter and fails with "no merge base".
#
# git diff "origin/$GITHUB_BASE_REF.." (2 dots) should be enough on
# GitHub, since GitHub starts by merging origin/$GITHUB_BASE_REF
# into the PR branch anyway.
#
# https://github.com/python/core-workflow/issues/373
git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc)' && echo '::set-output name=run_tests::true' || true
fi
build_win32:
name: 'Windows (x86)'
Expand Down
26 changes: 13 additions & 13 deletions Doc/c-api/arg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ which disallows mutable objects such as :class:`bytearray`.
``S`` (:class:`bytes`) [PyBytesObject \*]
Requires that the Python object is a :class:`bytes` object, without
attempting any conversion. Raises :exc:`TypeError` if the object is not
a bytes object. The C variable may also be declared as :c:type:`PyObject\*`.
a bytes object. The C variable may also be declared as :c:type:`PyObject*`.

``Y`` (:class:`bytearray`) [PyByteArrayObject \*]
Requires that the Python object is a :class:`bytearray` object, without
attempting any conversion. Raises :exc:`TypeError` if the object is not
a :class:`bytearray` object. The C variable may also be declared as :c:type:`PyObject\*`.
a :class:`bytearray` object. The C variable may also be declared as :c:type:`PyObject*`.

``u`` (:class:`str`) [const Py_UNICODE \*]
Convert a Python Unicode object to a C pointer to a NUL-terminated buffer of
Expand Down Expand Up @@ -181,7 +181,7 @@ which disallows mutable objects such as :class:`bytearray`.
``U`` (:class:`str`) [PyObject \*]
Requires that the Python object is a Unicode object, without attempting
any conversion. Raises :exc:`TypeError` if the object is not a Unicode
object. The C variable may also be declared as :c:type:`PyObject\*`.
object. The C variable may also be declared as :c:type:`PyObject*`.

``w*`` (read-write :term:`bytes-like object`) [Py_buffer]
This format accepts any object which implements the read-write buffer
Expand All @@ -194,10 +194,10 @@ which disallows mutable objects such as :class:`bytearray`.
It only works for encoded data without embedded NUL bytes.

This format requires two arguments. The first is only used as input, and
must be a :c:type:`const char\*` which points to the name of an encoding as a
must be a :c:type:`const char*` which points to the name of an encoding as a
NUL-terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is used.
An exception is raised if the named encoding is not known to Python. The
second argument must be a :c:type:`char\*\*`; the value of the pointer it
second argument must be a :c:type:`char**`; the value of the pointer it
references will be set to a buffer with the contents of the argument text.
The text will be encoded in the encoding specified by the first argument.

Expand All @@ -217,10 +217,10 @@ which disallows mutable objects such as :class:`bytearray`.
characters.

It requires three arguments. The first is only used as input, and must be a
:c:type:`const char\*` which points to the name of an encoding as a
:c:type:`const char*` which points to the name of an encoding as a
NUL-terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is used.
An exception is raised if the named encoding is not known to Python. The
second argument must be a :c:type:`char\*\*`; the value of the pointer it
second argument must be a :c:type:`char**`; the value of the pointer it
references will be set to a buffer with the contents of the argument text.
The text will be encoded in the encoding specified by the first argument.
The third argument must be a pointer to an integer; the referenced integer
Expand Down Expand Up @@ -320,7 +320,7 @@ Other objects
``O!`` (object) [*typeobject*, PyObject \*]
Store a Python object in a C object pointer. This is similar to ``O``, but
takes two C arguments: the first is the address of a Python type object, the
second is the address of the C variable (of type :c:type:`PyObject\*`) into which
second is the address of the C variable (of type :c:type:`PyObject*`) into which
the object pointer is stored. If the Python object does not have the required
type, :exc:`TypeError` is raised.

Expand All @@ -329,13 +329,13 @@ Other objects
``O&`` (object) [*converter*, *anything*]
Convert a Python object to a C variable through a *converter* function. This
takes two arguments: the first is a function, the second is the address of a C
variable (of arbitrary type), converted to :c:type:`void \*`. The *converter*
variable (of arbitrary type), converted to :c:type:`void *`. The *converter*
function in turn is called as follows::

status = converter(object, address);

where *object* is the Python object to be converted and *address* is the
:c:type:`void\*` argument that was passed to the :c:func:`PyArg_Parse\*` function.
:c:type:`void*` argument that was passed to the :c:func:`PyArg_Parse\*` function.
The returned *status* should be ``1`` for a successful conversion and ``0`` if
the conversion has failed. When the conversion fails, the *converter* function
should raise an exception and leave the content of *address* unmodified.
Expand Down Expand Up @@ -481,7 +481,7 @@ API Functions
*args*; it must actually be a tuple. The length of the tuple must be at least
*min* and no more than *max*; *min* and *max* may be equal. Additional
arguments must be passed to the function, each of which should be a pointer to a
:c:type:`PyObject\*` variable; these will be filled in with the values from
:c:type:`PyObject*` variable; these will be filled in with the values from
*args*; they will contain borrowed references. The variables which correspond
to optional parameters not given by *args* will not be filled in; these should
be initialized by the caller. This function returns true on success and false if
Expand Down Expand Up @@ -650,8 +650,8 @@ Building values

``O&`` (object) [*converter*, *anything*]
Convert *anything* to a Python object through a *converter* function. The
function is called with *anything* (which should be compatible with :c:type:`void
\*`) as its argument and should return a "new" Python object, or ``NULL`` if an
function is called with *anything* (which should be compatible with :c:type:`void*`)
as its argument and should return a "new" Python object, or ``NULL`` if an
error occurred.

``(items)`` (:class:`tuple`) [*matching-items*]
Expand Down
Loading