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/2007-February/071136.html below:

[Python-Dev] Recent experience with the _ast module

[Python-Dev] Recent experience with the _ast module [Python-Dev] Recent experience with the _ast moduleGreg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 15 02:01:27 CET 2007
Martin v. Löwis wrote:

>         switch(o) {
>                 case And:
>                         Py_INCREF(And_singleton);
>                         return And_singleton;
>                 case Or:
>                         Py_INCREF(Or_singleton);
>                         return Or_singleton;

Well, And_singleton and Or_singleton could be anything,
including integers or interned strings. Creating a
class and then a singleton instance for each one seems
like overkill and unnecessary bloat to me.

--
Greg
More information about the Python-Dev mailing list

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