homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Refactor Tools/scripts/google.py
Type: enhancement Stage: resolved
Components: Demos and Tools Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: berker.peksag, franciscouzo, ned.deily, python-dev, terry.reedy
Priority: normal Keywords: patch

Created on 2016年04月22日 16:59 by franciscouzo, last changed 2022年04月11日 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
scripts_google.patch franciscouzo, 2016年04月22日 16:59 review
scripts_google_v2.patch franciscouzo, 2016年04月29日 22:13 review
scripts_google_v3.patch franciscouzo, 2016年09月14日 07:28 review
Messages (7)
msg264028 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016年04月22日 17:37
I don't think google.py is useful anymore. I'd prefer to just remove it from the cpython repository.
msg264030 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2016年04月22日 21:56
FWIW, I'm -0 on removing google.py and +0.5 on the refactoring. It seems like it could still be useful as either an example or a tool. Georg did a cleanup of the Tools directory several years ago (in Issue7962). Rather than removing one script, it might be more useful to review them all for relevance. In any case, thanks for the contribution, Francisco.
msg264064 - (view) Author: Francisco Couzo (franciscouzo) * Date: 2016年04月23日 17:27
I was also going to refactor the other demo scripts, but first I wanted to make sure there was at least some kind of interest in it.
msg264513 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2016年04月29日 18:10
Demos should demonstrate proper modern code. 1. Contain decent docstrings. 2. Dependency on sys.argv, derived from a command line, should be in the 'if __name__' clause triggered when the module *is* invoked from command line. Especially in simple cases like this, it should be possible to import the module and call main(args) without involving sys.argv. See review.
msg264527 - (view) Author: Francisco Couzo (franciscouzo) * Date: 2016年04月29日 22:13
Here's the patch with the modifications from the review.
msg276392 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016年09月14日 07:58
New changeset f8c11b61cfb7 by Berker Peksag in branch 'default':
Issue #26830: Refactor Tools/scripts/google.py
https://hg.python.org/cpython/rev/f8c11b61cfb7 
msg276393 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016年09月14日 07:59
Thanks!
History
Date User Action Args
2022年04月11日 14:58:30adminsetgithub: 71017
2016年09月14日 07:59:16berker.peksagsetstatus: open -> closed
versions: + Python 3.7, - Python 3.6
messages: + msg276393

resolution: fixed
stage: patch review -> resolved
2016年09月14日 07:58:40python-devsetnosy: + python-dev
messages: + msg276392
2016年09月14日 07:28:47franciscouzosetfiles: + scripts_google_v3.patch
2016年04月29日 22:13:24franciscouzosetfiles: + scripts_google_v2.patch

messages: + msg264527
2016年04月29日 18:10:47terry.reedysetnosy: + terry.reedy
messages: + msg264513
2016年04月23日 17:27:32franciscouzosetmessages: + msg264064
2016年04月22日 21:56:34ned.deilysetnosy: + ned.deily
messages: + msg264030
2016年04月22日 17:37:34berker.peksagsetnosy: + berker.peksag
messages: + msg264028

components: + Demos and Tools
stage: patch review
2016年04月22日 16:59:17franciscouzocreate

AltStyle によって変換されたページ (->オリジナル) /