python / cpython

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

PEP 442 implementation #62312

Closed pitrou closed 11 years ago

pitrou commented 11 years ago
BPO 18112
Nosy @pitrou, @vstinner, @tiran, @benjaminp, @phmc
Files
  • 39731f1d2d38.diff
  • f5ddbd98c2bf.diff
  • 050c6d089164.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 = None closed_at = created_at = labels = ['interpreter-core', 'type-feature'] title = 'PEP 442 implementation' updated_at = user = 'https://github.com/pitrou' ``` bugs.python.org fields: ```python activity = actor = 'pitrou' assignee = 'none' closed = True closed_date = closer = 'pitrou' components = ['Interpreter Core'] creation = creator = 'pitrou' dependencies = [] files = ['30744', '30907', '31068'] hgrepos = ['194'] issue_num = 18112 keywords = ['patch'] message_count = 8.0 messages = ['191219', '192146', '192974', '192981', '193810', '193836', '193942', '193943'] nosy_count = 7.0 nosy_names = ['pitrou', 'vstinner', 'christian.heimes', 'benjamin.peterson', 'python-dev', 'pconnell', 'isoschiz'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue18112' versions = ['Python 3.4'] ```

    pitrou commented 11 years ago

    Here is the patch implementing PEP-442.

    pitrou commented 11 years ago

    Updated patch.

    pitrou commented 11 years ago

    Updated patch (again).

    benjaminp commented 11 years ago

    Sorry for taking forever. I got half-way through version 1, but now I suppose I'm terribly behind the latest and greatest.

    benjaminp commented 11 years ago

    Modulo earlier comments, I think it looks good to land.

    pitrou commented 11 years ago

    Updated patch with the suggested changes, apart from a couple stylistic ones (waiting for your answer on these ones).

    1762cc99-3127-4a62-9baf-30c3d0f51ef7 commented 11 years ago

    New changeset 3f994367a979 by Antoine Pitrou in branch 'default': Issue bpo-18112: PEP-442 implementation (safe object finalization). http://hg.python.org/cpython/rev/3f994367a979

    pitrou commented 11 years ago

    Committed with a couple further doc changes!