Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust reference-counting note #49289

Closed
terryjreedy opened this issue Jan 24, 2009 · 6 comments
Closed

Adjust reference-counting note #49289

terryjreedy opened this issue Jan 24, 2009 · 6 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@terryjreedy
Copy link
Member

BPO 5039
Nosy @birkenfeld, @terryjreedy
Files
  • issue5039.diff
  • unnamed
  • 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:

    assignee = 'https://github.com/birkenfeld'
    closed_at = <Date 2009-03-30.22:43:37.149>
    created_at = <Date 2009-01-24.00:11:58.876>
    labels = ['docs']
    title = 'Adjust reference-counting note'
    updated_at = <Date 2009-03-31.13:33:23.678>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2009-03-31.13:33:23.678>
    actor = 'georg.brandl'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2009-03-30.22:43:37.149>
    closer = 'georg.brandl'
    components = ['Documentation']
    creation = <Date 2009-01-24.00:11:58.876>
    creator = 'terry.reedy'
    dependencies = []
    files = ['13495', '13507']
    hgrepos = []
    issue_num = 5039
    keywords = ['patch']
    message_count = 6.0
    messages = ['80424', '84688', '84697', '84742', '84752', '84777']
    nosy_count = 3.0
    nosy_names = ['georg.brandl', 'terry.reedy', 'John']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue5039'
    versions = ['Python 2.6', 'Python 3.0', 'Python 3.1', 'Python 2.7']

    @terryjreedy
    Copy link
    Member Author

    Language / Data model / Objects, values and types (2.6-3.1)
    third paragraph, has the following note:

    "(Implementation note: the current implementation uses a
    reference-counting scheme with (optional) delayed detection of
    cyclically linked garbage, which collects most objects as soon as they
    become unreachable, but is not guaranteed to collect garbage containing
    circular references. See the documentation of the gc module for
    information on controlling the collection of cyclic garbage.)"

    There are two issues here: there are now other implementations that act
    differently; CPython may change (as GvR reiterated strongly today in the
    PyDev thread "__del__ and tp_dealloc in the IO lib", in response to a
    request that the current behavior be defined and documented as not
    permanent). So I suggest:
    change 'the current implementation' to 'CPython currently'
    add "Other implementations act differently and CPython may change." (at
    the end)

    @terryjreedy terryjreedy added the docs Documentation in the Doc dir label Jan 24, 2009
    @John
    Copy link
    Mannequin

    John mannequin commented Mar 30, 2009

    Attached patch

    @birkenfeld
    Copy link
    Member

    Committed as r70773, thanks for the patch!

    @terryjreedy
    Copy link
    Member Author

    The patch has an error. It says 'Python currently...' instead of
    'CPython currently....', as in my suggestion.

    @John
    Copy link
    Mannequin

    John mannequin commented Mar 31, 2009

    Sorry about that. First one I've ever done. Consecrating more on how than what.

    John

    Subject: [bpo-5039] Adjust reference-counting note
    To: johnhitz321@msn.com
    From: report@bugs.python.org
    Date: Tue, 31 Mar 2009 02:20:45 +0000

    Terry J. Reedy <tjreedy@udel.edu> added the comment:

    The patch has an error. It says 'Python currently...' instead of
    'CPython currently....', as in my suggestion.

    ----------


    Python tracker <report@bugs.python.org>
    <http://bugs.python.org/issue5039\>



    Windows Live™ SkyDrive: Get 25 GB of free online storage.
    http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_032009

    @birkenfeld
    Copy link
    Member

    It's all right, I spotted that and added the "C" in the commit.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants