[issue37726] Tutorial should not recommend getopt

2019-08-01 Thread Guido van Rossum


Change by Guido van Rossum :


--
versions:  -Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37726] Tutorial should not recommend getopt

2019-08-01 Thread Guido van Rossum


Guido van Rossum  added the comment:

Thanks mental! All done.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37726] Tutorial should not recommend getopt

2019-08-01 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 8990ac0ab0398bfb9c62031288030fe7c630c2c7 by Guido van Rossum 
(Miss Islington (bot)) in branch '3.7':
bpo-37726: Prefer argparse over getopt in stdlib tutorial (GH-15052) (#15069)
https://github.com/python/cpython/commit/8990ac0ab0398bfb9c62031288030fe7c630c2c7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37726] Tutorial should not recommend getopt

2019-08-01 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset dcc53ebbff384076b0763c1f842966c189417071 by Guido van Rossum 
(Miss Islington (bot)) in branch '3.8':
bpo-37726: Prefer argparse over getopt in stdlib tutorial (GH-15052) (#15070)
https://github.com/python/cpython/commit/dcc53ebbff384076b0763c1f842966c189417071


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37726] Tutorial should not recommend getopt

2019-08-01 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14816
pull_request: https://github.com/python/cpython/pull/15069

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37726] Tutorial should not recommend getopt

2019-08-01 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14817
pull_request: https://github.com/python/cpython/pull/15070

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37726] Tutorial should not recommend getopt

2019-08-01 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 2491134029b195d3159a489e1803ee22a7839b41 by Guido van Rossum 
(mental) in branch 'master':
bpo-37726: Prefer argparse over getopt in stdlib tutorial (#15052)
https://github.com/python/cpython/commit/2491134029b195d3159a489e1803ee22a7839b41


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37726] Tutorial should not recommend getopt

2019-07-31 Thread mental


mental  added the comment:

It's nice to see the newcomer friendly tag being encouraged :thumbsup:

I'm submitting a PR for a doc change (I'd appreciate a review :D).

I've replaced any mention of getopt in the tutorial section with the argparse 
module. Additionally I have added several small examples of usage promoting its 
usability.

Should the section recommend using other dedicated packages for parsing: fire, 
click, docopt? urllib.request does this for the requests package.

--
nosy: +mental

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37726] Tutorial should not recommend getopt

2019-07-31 Thread mental


Change by mental :


--
keywords: +patch
pull_requests: +14802
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/15052

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37726] Tutorial should not recommend getopt

2019-07-30 Thread Guido van Rossum


New submission from Guido van Rossum :

I read on python-ideas that the tutorial recommends getopt as the simple 
argument parsing choice, and argparse as advanced. This is silly. We should 
only promote argparse (unless you want to use raw sys.argv[1:]).

--
assignee: docs@python
components: Documentation
keywords: newcomer friendly
messages: 348774
nosy: docs@python, gvanrossum
priority: normal
severity: normal
stage: needs patch
status: open
title: Tutorial should not recommend getopt
versions: Python 2.7, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com