Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue36096

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:IDLE: Refactor class variables to instance variables in colorizer
Type:enhancementStage:resolved
Components:IDLEVersions:Python 3.8, Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: terry.reedyNosy List: cheryl.sabella, terry.reedy
Priority:normalKeywords:patch

Created on2019-02-23 22:53 bycheryl.sabella, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 12002mergedcheryl.sabella,2019-02-23 22:56
PR 12069closedmiss-islington,2019-02-27 13:21
PR 12075mergedmiss-islington,2019-02-27 18:56
Messages (3)
msg336415 -(view)Author: Cheryl Sabella (cheryl.sabella)*(Python committer)Date: 2019-02-23 22:53
From Terry's comment onPR11472 forissue 35689: > I don't like the use of class variables to initialize volatile instance state variables. I think it confuses the code a bit. Better, I think, to put them in an `init_state` method called from `__init__`. (I am not sure if method could be used in tests.) Since the tests do not access the class vars directly on the class, they should not be affected. I am leaving this minor refactoring for another issue after merging the tests. Then we can modify the class docstring.
msg336757 -(view)Author: Cheryl Sabella (cheryl.sabella)*(Python committer)Date: 2019-02-27 13:21
New changeseted1deb0719f0ac1b08a374e30ad26a701d4d51a2 by Cheryl Sabella in branch 'master':bpo-36096: IDLE: Refactor class variables in colorizer (GH-12002)https://github.com/python/cpython/commit/ed1deb0719f0ac1b08a374e30ad26a701d4d51a2
msg336777 -(view)Author: Terry J. Reedy (terry.reedy)*(Python committer)Date: 2019-02-27 19:14
New changeset488aabafe2f1c5db05a6c1a7a8b49d7b89b1f36b by Terry Jan Reedy (Miss Islington (bot)) in branch '3.7':bpo-36096: IDLE: Refactor class variables in colorizer (GH-12002) (GH-12075)https://github.com/python/cpython/commit/488aabafe2f1c5db05a6c1a7a8b49d7b89b1f36b
History
DateUserActionArgs
2022-04-11 14:59:11adminsetgithub: 80277
2019-02-27 19:24:28terry.reedysetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-02-27 19:14:10terry.reedysetmessages: +msg336777
2019-02-27 18:56:12miss-islingtonsetpull_requests: +pull_request12094
2019-02-27 13:21:42miss-islingtonsetpull_requests: +pull_request12089
2019-02-27 13:21:19cheryl.sabellasetmessages: +msg336757
2019-02-23 22:56:12cheryl.sabellasetkeywords: +patch
stage: patch review
pull_requests: +pull_request12033
2019-02-23 22:53:18cheryl.sabellacreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp