A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025998.html below:

[Python-Dev] list.extend

[Python-Dev] list.extend [Python-Dev] list.extendDavid Abrahams David Abrahams" <david.abrahams@rcn.com
Fri, 28 Jun 2002 00:01:34 -0400
From: "Tim Peters" <tim@zope.com>

> Thanks for the loan of the eyeballs!

As long as I'm eyeballin' (and you're thankin'), I notice in PyInt_AsLong:

 if (op == NULL || (nb = op->ob_type->tp_as_number) == NULL ||
     nb->nb_int == NULL) {
    PyErr_SetString(PyExc_TypeError, "an integer is required");
  return -1;
 }

But really, an integer isn't required; Any type with a tp_as_number section
and a conversion to int will do. Should the error say "a numeric type
convertible to int is required"?

-Dave






RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4