python / cpython

The Python programming language
https://www.python.org
Other
63.11k stars 30.22k forks source link

types made callable #36748

Closed 21627e42-5296-4793-b541-777109d109e8 closed 22 years ago

21627e42-5296-4793-b541-777109d109e8 commented 22 years ago
BPO 568629
Nosy @gvanrossum
Files
  • types.diff
  • types2.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields: ```python assignee = 'https://github.com/gvanrossum' closed_at = created_at = labels = ['interpreter-core'] title = 'types made callable' updated_at = user = 'https://bugs.python.org/orenti' ``` bugs.python.org fields: ```python activity = actor = 'gvanrossum' assignee = 'gvanrossum' closed = True closed_date = None closer = None components = ['Interpreter Core'] creation = creator = 'orenti' dependencies = [] files = ['4338', '4339'] hgrepos = [] issue_num = 568629 keywords = ['patch'] message_count = 3.0 messages = ['40299', '40300', '40301'] nosy_count = 2.0 nosy_names = ['gvanrossum', 'orenti'] pr_nums = [] priority = 'normal' resolution = 'accepted' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue568629' versions = ['Python 2.3'] ```

    21627e42-5296-4793-b541-777109d109e8 commented 22 years ago

    The following types can now be created by calling the type objects:

    slice buffer class code function instance instancemethod

    The module new has been replaced with a small backward compatibility Python placeholder.

    (includes patch bpo-568544)

    21627e42-5296-4793-b541-777109d109e8 commented 22 years ago

    Logged In: YES user_id=562624

    Reconciled with the big docstr patch, general cleanup.

    Removed references to newmodule from various make and project files except for the following binary mac project files:

    Mac/Build/PythonCore.mcp Mac/Build/PythonStandSmall.mcp Mac/Build/PythonStandalone.mcp

    gvanrossum commented 22 years ago

    Logged In: YES user_id=6380

    Wow! Very good. Thanks.

    All checked in now -- I've only tweaked the lay-out and docstrings a bit in some places.