GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove restriction that only `tuple` can be unpacked · python/cpython@4aa94df

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Objects
    • genericaliasobject.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Objects/genericaliasobject.c‎

Copy file name to clipboardExpand all lines: Objects/genericaliasobject.c
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -671,12 +671,6 @@ static PyTypeObject Py_GenericAliasIterType = {
671671

672672
static PyObject *
673673
ga_iter(PyObject *self) {
674-
gaobject *alias = (gaobject *)self;
675-
if ((PyTypeObject *)alias->origin != &PyTuple_Type) {
676-
PyErr_SetString(PyExc_TypeError, "Only tuple types can be unpacked with *");
677-
return NULL;
678-
}
679-
680674
gaiterobject *gi = PyObject_GC_New(gaiterobject, &Py_GenericAliasIterType);
681675
if (gi == NULL)
682676
return NULL;

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.