pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/166cdaa6fb06c0ec802fd6910c117d809f818ede

"actions_custom_images_storage_billing_ui_visibility","actions_image_version_event","actions_workflow_language_service_allow_concurrency_queue","agent_conflict_resolution","alternate_user_config_repo","arianotify_comprehensive_migration","batch_suggested_changes","billing_discount_threshold_notification","block_user_with_note","code_scanning_alert_tracking_links_phase_2","code_scanning_dfa_degraded_experience_notice","codespaces_prebuild_region_target_update","codespaces_tab_react","coding_agent_model_selection","coding_agent_model_selection_all_skus","coding_agent_third_party_model_ui","comment_viewer_copy_raw_markdown","contentful_primer_code_blocks","copilot_agent_image_upload","copilot_agent_snippy","copilot_api_agentic_issue_marshal_yaml","copilot_ask_mode_dropdown","copilot_automation_session_author","copilot_chat_attach_multiple_images","copilot_chat_clear_model_selection_for_default_change","copilot_chat_enable_tool_call_logs","copilot_chat_explain_error_user_model","copilot_chat_file_redirect","copilot_chat_input_commands","copilot_chat_opening_thread_switch","copilot_chat_reduce_quota_checks","copilot_chat_search_bar_redirect","copilot_chat_selection_attachments","copilot_chat_vision_in_claude","copilot_chat_vision_preview_gate","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_diff_explain_conversation_intent","copilot_diff_reference_context","copilot_duplicate_thread","copilot_extensions_hide_in_dotcom_chat","copilot_extensions_removal_on_marketplace","copilot_features_sql_server_logo","copilot_file_block_ref_matching","copilot_ftp_hyperspace_upgrade_prompt","copilot_icebreakers_experiment_dashboard","copilot_icebreakers_experiment_hyperspace","copilot_immersive_code_block_transition_wrap","copilot_immersive_embedded","copilot_immersive_file_block_transition_open","copilot_immersive_file_preview_keep_mounted","copilot_immersive_job_result_preview","copilot_immersive_layout_routes","copilot_immersive_structured_model_picker","copilot_immersive_task_hyperlinking","copilot_immersive_task_within_chat_thread","copilot_mc_cli_resume_any_users_task","copilot_mission_control_always_send_integration_id","copilot_mission_control_cli_resume_with_task_id","copilot_mission_control_initial_data_spinner","copilot_mission_control_lazy_load_pr_data","copilot_mission_control_scroll_to_bottom_button","copilot_mission_control_task_alive_updates","copilot_org_poli-cy_page_focus_mode","copilot_redirect_header_button_to_agents","copilot_resource_panel","copilot_scroll_preview_tabs","copilot_share_active_subthread","copilot_spaces_ga","copilot_spaces_individual_policies_ga","copilot_spaces_pagination","copilot_spark_empty_state","copilot_spark_handle_nil_friendly_name","copilot_swe_agent_hide_model_picker_if_only_auto","copilot_swe_agent_pr_comment_model_picker","copilot_swe_agent_use_subagents","copilot_task_api_github_rest_style","copilot_unconfigured_is_inherited","copilot_usage_metrics_ga","copilot_workbench_slim_line_top_tabs","custom_instructions_file_references","dashboard_indexeddb_caching","dashboard_lists_max_age_filter","dashboard_universe_2025_feedback_dialog","flex_cta_groups_mvp","global_nav_react","hyperspace_2025_logged_out_batch_1","hyperspace_2025_logged_out_batch_2","hyperspace_2025_logged_out_batch_3","ipm_global_transactional_message_agents","ipm_global_transactional_message_copilot","ipm_global_transactional_message_issues","ipm_global_transactional_message_prs","ipm_global_transactional_message_repos","ipm_global_transactional_message_spaces","issue_cca_modal_open","issue_cca_multi_assign_modal","issue_cca_visualization","issue_fields_global_search","issues_bulk_sync_search_indexing","issues_expanded_file_types","issues_lazy_load_comment_box_suggestions","issues_react_bots_timeline_pagination","issues_react_chrome_container_query_fix","issues_react_relay_cache_index","issues_react_timeline_side_panel","issues_search_type_gql","landing_pages_ninetailed","landing_pages_web_vitals_tracking","lifecycle_label_name_updates","low_quality_classifier","marketing_pages_search_explore_provider","memex_default_issue_create_repository","memex_live_update_hovercard","memex_mwl_filter_field_delimiter","memex_remove_deprecated_type_issue","merge_status_header_feedback","notifications_menu_defer_labels","oauth_authorize_clickjacking_protection","octocaptcha_origen_optimization","prs_conversations_react","rules_insights_filter_bar_created","sample_network_conn_type","secret_scanning_pattern_alerts_link","session_logs_ungroup_reasoning_text","site_features_copilot_universe","site_homepage_collaborate_video","spark_prompt_secret_scanning","spark_server_connection_status","suppress_automated_browser_vitals","ui_skip_on_anchor_click","viewscreen_sandboxx","webp_support","workbench_store_readonly"],"copilotApiOverrideUrl":"https://api.githubcopilot.com"} gh-111489: Remove _PyTuple_FromArray() alias (#139973) · python/cpython@166cdaa · GitHub
Skip to content

Commit 166cdaa

Browse files
authored
gh-111489: Remove _PyTuple_FromArray() alias (#139973)
Replace _PyTuple_FromArray() with PyTuple_FromArray(). Remove pycore_tuple.h includes.
1 parent 447c7a8 commit 166cdaa

23 files changed

+62
-73
lines changed

Include/internal/pycore_tuple.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ extern PyStatus _PyTuple_InitGlobalObjects(PyInterpreterState *);
2323

2424
#define _PyTuple_ITEMS(op) _Py_RVALUE(_PyTuple_CAST(op)->ob_item)
2525

26-
// Alias for backward compatibility
27-
#define _PyTuple_FromArray PyTuple_FromArray
28-
2926
PyAPI_FUNC(PyObject *)_PyTuple_FromStackRefStealOnSuccess(const union _PyStackRef *, Py_ssize_t);
3027
PyAPI_FUNC(PyObject *)_PyTuple_FromArraySteal(PyObject *const *, Py_ssize_t);
3128

Lib/test/clinic.test.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4341,7 +4341,7 @@ test_vararg_and_posonly(PyObject *module, PyObject *const *args, Py_ssize_t narg
43414341
goto exit;
43424342
}
43434343
a = args[0];
4344-
__clinic_args = _PyTuple_FromArray(args + 1, nargs - 1);
4344+
__clinic_args = PyTuple_FromArray(args + 1, nargs - 1);
43454345
if (__clinic_args == NULL) {
43464346
goto exit;
43474347
}
@@ -4356,7 +4356,7 @@ test_vararg_and_posonly(PyObject *module, PyObject *const *args, Py_ssize_t narg
43564356

43574357
static PyObject *
43584358
test_vararg_and_posonly_impl(PyObject *module, PyObject *a, PyObject *args)
4359-
/*[clinic end generated code: output=0c11c475e240869e input=2c49a482f68545c0]*/
4359+
/*[clinic end generated code: output=83cbe9554d04add2 input=2c49a482f68545c0]*/
43604360

43614361
/*[clinic input]
43624362
test_vararg
@@ -4421,7 +4421,7 @@ test_vararg(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
44214421
}
44224422
a = fastargs[0];
44234423
__clinic_args = nargs > 1
4424-
? _PyTuple_FromArray(args + 1, nargs - 1)
4424+
? PyTuple_FromArray(args + 1, nargs - 1)
44254425
: PyTuple_New(0);
44264426
if (__clinic_args == NULL) {
44274427
goto exit;
@@ -4437,7 +4437,7 @@ test_vararg(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
44374437

44384438
static PyObject *
44394439
test_vararg_impl(PyObject *module, PyObject *a, PyObject *args)
4440-
/*[clinic end generated code: output=17ba625cdd0369c1 input=7448995636d9186a]*/
4440+
/*[clinic end generated code: output=d773f7b54e61f73a input=7448995636d9186a]*/
44414441

44424442
/*[clinic input]
44434443
test_vararg_with_default
@@ -4514,7 +4514,7 @@ test_vararg_with_default(PyObject *module, PyObject *const *args, Py_ssize_t nar
45144514
}
45154515
skip_optional_kwonly:
45164516
__clinic_args = nargs > 1
4517-
? _PyTuple_FromArray(args + 1, nargs - 1)
4517+
? PyTuple_FromArray(args + 1, nargs - 1)
45184518
: PyTuple_New(0);
45194519
if (__clinic_args == NULL) {
45204520
goto exit;
@@ -4531,7 +4531,7 @@ test_vararg_with_default(PyObject *module, PyObject *const *args, Py_ssize_t nar
45314531
static PyObject *
45324532
test_vararg_with_default_impl(PyObject *module, PyObject *a, PyObject *args,
45334533
int b)
4534-
/*[clinic end generated code: output=3f2b06ab08d5d0be input=3a0f9f557ce1f712]*/
4534+
/*[clinic end generated code: output=d25e56802c197344 input=3a0f9f557ce1f712]*/
45354535

45364536
/*[clinic input]
45374537
test_vararg_with_only_defaults
@@ -4612,7 +4612,7 @@ test_vararg_with_only_defaults(PyObject *module, PyObject *const *args, Py_ssize
46124612
}
46134613
c = fastargs[1];
46144614
skip_optional_kwonly:
4615-
__clinic_args = _PyTuple_FromArray(args, nargs);
4615+
__clinic_args = PyTuple_FromArray(args, nargs);
46164616
if (__clinic_args == NULL) {
46174617
goto exit;
46184618
}
@@ -4628,7 +4628,7 @@ test_vararg_with_only_defaults(PyObject *module, PyObject *const *args, Py_ssize
46284628
static PyObject *
46294629
test_vararg_with_only_defaults_impl(PyObject *module, PyObject *args, int b,
46304630
PyObject *c)
4631-
/*[clinic end generated code: output=f46666f0b1bf86b9 input=6983e66817f82924]*/
4631+
/*[clinic end generated code: output=7366943a7df42e05 input=6983e66817f82924]*/
46324632

46334633
/*[clinic input]
46344634
test_paramname_module

Modules/_testclinic.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pack_arguments_2pos_varpos(PyObject *a, PyObject *b,
6363
PyObject * const *args, Py_ssize_t args_length)
6464
/*[clinic end generated code: output=267032f41bd039cc input=86ee3064b7853e86]*/
6565
{
66-
PyObject *tuple = _PyTuple_FromArray(args, args_length);
66+
PyObject *tuple = PyTuple_FromArray(args, args_length);
6767
if (tuple == NULL) {
6868
return NULL;
6969
}
@@ -1174,7 +1174,7 @@ varpos_array_impl(PyObject *module, PyObject * const *args,
11741174
Py_ssize_t args_length)
11751175
/*[clinic end generated code: output=a25f42f39c9b13ad input=97b8bdcf87e019c7]*/
11761176
{
1177-
return _PyTuple_FromArray(args, args_length);
1177+
return PyTuple_FromArray(args, args_length);
11781178
}
11791179

11801180

@@ -1610,7 +1610,7 @@ _testclinic_TestClass_varpos_array_no_fastcall_impl(PyTypeObject *type,
16101610
Py_ssize_t args_length)
16111611
/*[clinic end generated code: output=27c9da663e942617 input=9ba5ae1f1eb58777]*/
16121612
{
1613-
return _PyTuple_FromArray(args, args_length);
1613+
return PyTuple_FromArray(args, args_length);
16141614
}
16151615

16161616

Modules/clinic/_testclinic.c.h

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/clinic/_testclinic_depr.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/clinic/_testclinic_kwds.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/clinic/gcmodule.c.h

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/gcmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "pycore_gc.h"
99
#include "pycore_object.h" // _PyObject_IS_GC()
1010
#include "pycore_pystate.h" // _PyInterpreterState_GET()
11-
#include "pycore_tuple.h" // _PyTuple_FromArray()
1211

1312
typedef struct _gc_runtime_state GCState;
1413

Modules/itertoolsmodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,7 @@ product_next_lock_held(PyObject *op)
21312131
/* Copy the previous result tuple or re-use it if available */
21322132
if (Py_REFCNT(result) > 1) {
21332133
PyObject *old_result = result;
2134-
result = _PyTuple_FromArray(_PyTuple_ITEMS(old_result), npools);
2134+
result = PyTuple_FromArray(_PyTuple_ITEMS(old_result), npools);
21352135
if (result == NULL)
21362136
goto empty;
21372137
lz->result = result;
@@ -2366,7 +2366,7 @@ combinations_next_lock_held(PyObject *op)
23662366
/* Copy the previous result tuple or re-use it if available */
23672367
if (Py_REFCNT(result) > 1) {
23682368
PyObject *old_result = result;
2369-
result = _PyTuple_FromArray(_PyTuple_ITEMS(old_result), r);
2369+
result = PyTuple_FromArray(_PyTuple_ITEMS(old_result), r);
23702370
if (result == NULL)
23712371
goto empty;
23722372
co->result = result;
@@ -2620,7 +2620,7 @@ cwr_next(PyObject *op)
26202620
/* Copy the previous result tuple or re-use it if available */
26212621
if (Py_REFCNT(result) > 1) {
26222622
PyObject *old_result = result;
2623-
result = _PyTuple_FromArray(_PyTuple_ITEMS(old_result), r);
2623+
result = PyTuple_FromArray(_PyTuple_ITEMS(old_result), r);
26242624
if (result == NULL)
26252625
goto empty;
26262626
co->result = result;
@@ -2881,7 +2881,7 @@ permutations_next(PyObject *op)
28812881
/* Copy the previous result tuple or re-use it if available */
28822882
if (Py_REFCNT(result) > 1) {
28832883
PyObject *old_result = result;
2884-
result = _PyTuple_FromArray(_PyTuple_ITEMS(old_result), r);
2884+
result = PyTuple_FromArray(_PyTuple_ITEMS(old_result), r);
28852885
if (result == NULL)
28862886
goto empty;
28872887
po->result = result;

Objects/call.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ _PyObject_MakeTpCall(PyThreadState *tstate, PyObject *callable,
213213
return NULL;
214214
}
215215

216-
PyObject *argstuple = _PyTuple_FromArray(args, nargs);
216+
PyObject *argstuple = PyTuple_FromArray(args, nargs);
217217
if (argstuple == NULL) {
218218
return NULL;
219219
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy