- Notifications
You must be signed in to change notification settings - Fork768
Python 3.9#1264
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Merged
Python 3.9#1264
Changes from1 commit
Commits
Show all changes
6 commits Select commitHold shift + click to select a range
5c37f33 Add Python 3.9 to CI
filmor5d9e983 Merge branch 'master' into python3.9
filmor34348aa Update AppVeyor image and always install all requirements
filmorfd4f9bc Add Python 3.9 interop file
filmor094bf2c Fix geninterop script and regenerate interop39.cs
filmora1316a1 Merge branch 'master' into python3.9
filmorFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Add Python 3.9 interop file
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitfd4f9bc4f26ba82fdf63db375d5ff76d4f9dc07a
There are no files selected for viewing
3 changes: 2 additions & 1 deletionsrc/runtime/Python.Runtime.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
177 changes: 177 additions & 0 deletionssrc/runtime/interop39.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,177 @@ | ||
| // Auto-generated by geninterop.py. | ||
| // DO NOT MODIFY BY HAND. | ||
| #if PYTHON39 | ||
| using System; | ||
| using System.Collections; | ||
| using System.Collections.Specialized; | ||
| using System.Runtime.InteropServices; | ||
| using System.Reflection; | ||
| using System.Text; | ||
| namespace Python.Runtime | ||
| { | ||
| [StructLayout(LayoutKind.Sequential)] | ||
| internal static partial class TypeOffset | ||
| { | ||
| // Auto-generated from PyHeapTypeObject in Python.h | ||
| public static int am_await = 0; | ||
| public static int am_aiter = 0; | ||
| public static int am_anext = 0; | ||
| public static int nb_add = 0; | ||
| public static int nb_subtract = 0; | ||
| public static int nb_multiply = 0; | ||
| public static int nb_remainder = 0; | ||
| public static int nb_divmod = 0; | ||
| public static int nb_power = 0; | ||
| public static int nb_negative = 0; | ||
| public static int nb_positive = 0; | ||
| public static int nb_absolute = 0; | ||
| public static int nb_bool = 0; | ||
| public static int nb_invert = 0; | ||
| public static int nb_lshift = 0; | ||
| public static int nb_rshift = 0; | ||
| public static int nb_and = 0; | ||
| public static int nb_xor = 0; | ||
| public static int nb_or = 0; | ||
| public static int nb_int = 0; | ||
| public static int nb_reserved = 0; | ||
| public static int nb_float = 0; | ||
| public static int nb_inplace_add = 0; | ||
| public static int nb_inplace_subtract = 0; | ||
| public static int nb_inplace_multiply = 0; | ||
| public static int nb_inplace_remainder = 0; | ||
| public static int nb_inplace_power = 0; | ||
| public static int nb_inplace_lshift = 0; | ||
| public static int nb_inplace_rshift = 0; | ||
| public static int nb_inplace_and = 0; | ||
| public static int nb_inplace_xor = 0; | ||
| public static int nb_inplace_or = 0; | ||
| public static int nb_floor_divide = 0; | ||
| public static int nb_true_divide = 0; | ||
| public static int nb_inplace_floor_divide = 0; | ||
| public static int nb_inplace_true_divide = 0; | ||
| public static int nb_index = 0; | ||
| public static int nb_matrix_multiply = 0; | ||
| public static int nb_inplace_matrix_multiply = 0; | ||
| public static int mp_length = 0; | ||
| public static int mp_subscript = 0; | ||
| public static int mp_ass_subscript = 0; | ||
| public static int sq_length = 0; | ||
| public static int sq_concat = 0; | ||
| public static int sq_repeat = 0; | ||
| public static int sq_item = 0; | ||
| public static int was_sq_slice = 0; | ||
| public static int sq_ass_item = 0; | ||
| public static int was_sq_ass_slice = 0; | ||
| public static int sq_contains = 0; | ||
| public static int sq_inplace_concat = 0; | ||
| public static int sq_inplace_repeat = 0; | ||
| public static int bf_getbuffer = 0; | ||
| public static int bf_releasebuffer = 0; | ||
| public static int name = 0; | ||
| public static int ht_slots = 0; | ||
| public static int qualname = 0; | ||
| public static int ht_cached_keys = 0; | ||
| public static int ht_module = 0; | ||
| /* here are optional user slots, followed by the members. */ | ||
| public static int members = 0; | ||
| } | ||
| [StructLayout(LayoutKind.Sequential)] | ||
| internal struct PyNumberMethods | ||
| { | ||
| public IntPtr nb_add; | ||
| public IntPtr nb_subtract; | ||
| public IntPtr nb_multiply; | ||
| public IntPtr nb_remainder; | ||
| public IntPtr nb_divmod; | ||
| public IntPtr nb_power; | ||
| public IntPtr nb_negative; | ||
| public IntPtr nb_positive; | ||
| public IntPtr nb_absolute; | ||
| public IntPtr nb_bool; | ||
| public IntPtr nb_invert; | ||
| public IntPtr nb_lshift; | ||
| public IntPtr nb_rshift; | ||
| public IntPtr nb_and; | ||
| public IntPtr nb_xor; | ||
| public IntPtr nb_or; | ||
| public IntPtr nb_int; | ||
| public IntPtr nb_reserved; | ||
| public IntPtr nb_float; | ||
| public IntPtr nb_inplace_add; | ||
| public IntPtr nb_inplace_subtract; | ||
| public IntPtr nb_inplace_multiply; | ||
| public IntPtr nb_inplace_remainder; | ||
| public IntPtr nb_inplace_power; | ||
| public IntPtr nb_inplace_lshift; | ||
| public IntPtr nb_inplace_rshift; | ||
| public IntPtr nb_inplace_and; | ||
| public IntPtr nb_inplace_xor; | ||
| public IntPtr nb_inplace_or; | ||
| public IntPtr nb_floor_divide; | ||
| public IntPtr nb_true_divide; | ||
| public IntPtr nb_inplace_floor_divide; | ||
| public IntPtr nb_inplace_true_divide; | ||
| public IntPtr nb_index; | ||
| public IntPtr nb_matrix_multiply; | ||
| public IntPtr nb_inplace_matrix_multiply; | ||
| } | ||
| [StructLayout(LayoutKind.Sequential)] | ||
| internal struct PySequenceMethods | ||
| { | ||
| public IntPtr sq_length; | ||
| public IntPtr sq_concat; | ||
| public IntPtr sq_repeat; | ||
| public IntPtr sq_item; | ||
| public IntPtr was_sq_slice; | ||
| public IntPtr sq_ass_item; | ||
| public IntPtr was_sq_ass_slice; | ||
| public IntPtr sq_contains; | ||
| public IntPtr sq_inplace_concat; | ||
| public IntPtr sq_inplace_repeat; | ||
| } | ||
| [StructLayout(LayoutKind.Sequential)] | ||
| internal struct PyMappingMethods | ||
| { | ||
| public IntPtr mp_length; | ||
| public IntPtr mp_subscript; | ||
| public IntPtr mp_ass_subscript; | ||
| } | ||
| [StructLayout(LayoutKind.Sequential)] | ||
| internal struct PyAsyncMethods | ||
| { | ||
| public IntPtr am_await; | ||
| public IntPtr am_aiter; | ||
| public IntPtr am_anext; | ||
| } | ||
| [StructLayout(LayoutKind.Sequential)] | ||
| internal struct PyBufferProcs | ||
| { | ||
| public IntPtr bf_getbuffer; | ||
| public IntPtr bf_releasebuffer; | ||
| } | ||
| internal static partial class SlotTypes | ||
| { | ||
| public static readonly Type[] Types = { | ||
| typeof(PyNumberMethods), | ||
| typeof(PySequenceMethods), | ||
| typeof(PyMappingMethods), | ||
| typeof(PyAsyncMethods), | ||
| typeof(PyBufferProcs), | ||
| }; | ||
| } | ||
| } | ||
| #endif | ||
8 changes: 4 additions & 4 deletionssrc/runtime/runtime.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.