- Notifications
You must be signed in to change notification settings - Fork749
Python 3.11#1955
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
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Python 3.11#1955
Changes fromall commits
Commits
Show all changes
14 commits Select commitHold shift + click to select a range
c422abd
Add Python 3.11 type offsets
filmor2b52910
Add Python 3.11 to metadata and workflows
filmorc0b4eb2
Improve geninterop script to handle new case in 3.11
filmorcc86068
Fix offsets for 3.11
filmor5636262
Update requires-python
filmor8668579
Define slots before initialization
filmorddf5a70
Only clear dict if tp_dictoffset > 0
filmord3b56ff
Ensure that sub-processes in tests use the same runtime settings
filmora6efeae
Update MaxSupportedVersion
filmorda082ac
Enforce tp_traverse/clear in AllocateTypeObject
filmore9283e3
Ensure that Python is initialized before probing properties
br-skcc97b8a
Add an Action variant of TryUsingDll
filmor096f50a
Adjust code a bit and skip PythonHome tests for empty strings
filmor15e2e95
Set PYTHONHOME for tests
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
There are no files selected for viewing
8 changes: 5 additions & 3 deletions.github/workflows/main.yml
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
3 changes: 2 additions & 1 deletionpyproject.toml
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
54 changes: 35 additions & 19 deletionssrc/embed_tests/TestPythonEngineProperties.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
141 changes: 141 additions & 0 deletionssrc/runtime/Native/TypeOffset311.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,141 @@ | ||
// Auto-generated by geninterop.py. | ||
// DO NOT MODIFY BY HAND. | ||
// Python 3.11: ABI flags: '' | ||
// ReSharper disable InconsistentNaming | ||
// ReSharper disable IdentifierTypo | ||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.InteropServices; | ||
using Python.Runtime.Native; | ||
namespace Python.Runtime | ||
{ | ||
[SuppressMessage("Style", "IDE1006:Naming Styles", | ||
Justification = "Following CPython", | ||
Scope = "type")] | ||
[StructLayout(LayoutKind.Sequential)] | ||
internal class TypeOffset311 : GeneratedTypeOffsets, ITypeOffsets | ||
{ | ||
public TypeOffset311() { } | ||
// Auto-generated from PyHeapTypeObject in Python.h | ||
public int ob_refcnt { get; private set; } | ||
public int ob_type { get; private set; } | ||
public int ob_size { get; private set; } | ||
public int tp_name { get; private set; } | ||
public int tp_basicsize { get; private set; } | ||
public int tp_itemsize { get; private set; } | ||
public int tp_dealloc { get; private set; } | ||
public int tp_vectorcall_offset { get; private set; } | ||
public int tp_getattr { get; private set; } | ||
public int tp_setattr { get; private set; } | ||
public int tp_as_async { get; private set; } | ||
public int tp_repr { get; private set; } | ||
public int tp_as_number { get; private set; } | ||
public int tp_as_sequence { get; private set; } | ||
public int tp_as_mapping { get; private set; } | ||
public int tp_hash { get; private set; } | ||
public int tp_call { get; private set; } | ||
public int tp_str { get; private set; } | ||
public int tp_getattro { get; private set; } | ||
public int tp_setattro { get; private set; } | ||
public int tp_as_buffer { get; private set; } | ||
public int tp_flags { get; private set; } | ||
public int tp_doc { get; private set; } | ||
public int tp_traverse { get; private set; } | ||
public int tp_clear { get; private set; } | ||
public int tp_richcompare { get; private set; } | ||
public int tp_weaklistoffset { get; private set; } | ||
public int tp_iter { get; private set; } | ||
public int tp_iternext { get; private set; } | ||
public int tp_methods { get; private set; } | ||
public int tp_members { get; private set; } | ||
public int tp_getset { get; private set; } | ||
public int tp_base { get; private set; } | ||
public int tp_dict { get; private set; } | ||
public int tp_descr_get { get; private set; } | ||
public int tp_descr_set { get; private set; } | ||
public int tp_dictoffset { get; private set; } | ||
public int tp_init { get; private set; } | ||
public int tp_alloc { get; private set; } | ||
public int tp_new { get; private set; } | ||
public int tp_free { get; private set; } | ||
public int tp_is_gc { get; private set; } | ||
public int tp_bases { get; private set; } | ||
public int tp_mro { get; private set; } | ||
public int tp_cache { get; private set; } | ||
public int tp_subclasses { get; private set; } | ||
public int tp_weaklist { get; private set; } | ||
public int tp_del { get; private set; } | ||
public int tp_version_tag { get; private set; } | ||
public int tp_finalize { get; private set; } | ||
public int tp_vectorcall { get; private set; } | ||
public int am_await { get; private set; } | ||
public int am_aiter { get; private set; } | ||
public int am_anext { get; private set; } | ||
public int am_send { get; private set; } | ||
public int nb_add { get; private set; } | ||
public int nb_subtract { get; private set; } | ||
public int nb_multiply { get; private set; } | ||
public int nb_remainder { get; private set; } | ||
public int nb_divmod { get; private set; } | ||
public int nb_power { get; private set; } | ||
public int nb_negative { get; private set; } | ||
public int nb_positive { get; private set; } | ||
public int nb_absolute { get; private set; } | ||
public int nb_bool { get; private set; } | ||
public int nb_invert { get; private set; } | ||
public int nb_lshift { get; private set; } | ||
public int nb_rshift { get; private set; } | ||
public int nb_and { get; private set; } | ||
public int nb_xor { get; private set; } | ||
public int nb_or { get; private set; } | ||
public int nb_int { get; private set; } | ||
public int nb_reserved { get; private set; } | ||
public int nb_float { get; private set; } | ||
public int nb_inplace_add { get; private set; } | ||
public int nb_inplace_subtract { get; private set; } | ||
public int nb_inplace_multiply { get; private set; } | ||
public int nb_inplace_remainder { get; private set; } | ||
public int nb_inplace_power { get; private set; } | ||
public int nb_inplace_lshift { get; private set; } | ||
public int nb_inplace_rshift { get; private set; } | ||
public int nb_inplace_and { get; private set; } | ||
public int nb_inplace_xor { get; private set; } | ||
public int nb_inplace_or { get; private set; } | ||
public int nb_floor_divide { get; private set; } | ||
public int nb_true_divide { get; private set; } | ||
public int nb_inplace_floor_divide { get; private set; } | ||
public int nb_inplace_true_divide { get; private set; } | ||
public int nb_index { get; private set; } | ||
public int nb_matrix_multiply { get; private set; } | ||
public int nb_inplace_matrix_multiply { get; private set; } | ||
public int mp_length { get; private set; } | ||
public int mp_subscript { get; private set; } | ||
public int mp_ass_subscript { get; private set; } | ||
public int sq_length { get; private set; } | ||
public int sq_concat { get; private set; } | ||
public int sq_repeat { get; private set; } | ||
public int sq_item { get; private set; } | ||
public int was_sq_slice { get; private set; } | ||
public int sq_ass_item { get; private set; } | ||
public int was_sq_ass_slice { get; private set; } | ||
public int sq_contains { get; private set; } | ||
public int sq_inplace_concat { get; private set; } | ||
public int sq_inplace_repeat { get; private set; } | ||
public int bf_getbuffer { get; private set; } | ||
public int bf_releasebuffer { get; private set; } | ||
public int name { get; private set; } | ||
public int ht_slots { get; private set; } | ||
public int qualname { get; private set; } | ||
public int ht_cached_keys { get; private set; } | ||
public int ht_module { get; private set; } | ||
public int _ht_tpname { get; private set; } | ||
public int spec_cache_getitem { get; private set; } | ||
} | ||
} |
17 changes: 12 additions & 5 deletionssrc/runtime/PythonEngine.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
1 change: 1 addition & 0 deletionssrc/runtime/PythonTypes/PyType.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
3 changes: 3 additions & 0 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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.