[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2e6798f35260ff90129861ef1f289ac40c0396c2 by Miss Islington (bot) in branch '3.10': bpo-46270: Describe the `in` and `not in` operators as membership tests. (GH-30504) (GH-30509)

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28713 pull_request: https://github.com/python/cpython/pull/30509 ___ Python tracker

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d24cd49acb25c36db31893b84d0ca4fe2f373b94 by Raymond Hettinger in branch 'main': bpo-46270: Describe the `in` and `not in` operators as membership tests. (GH-30504)

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +28709 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30504 ___ Python tracker

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-06 Thread Jan
Jan added the comment: Sounds reasonable. -- resolution: works for me -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Container is correct. Containers are defined as being anything that supports the "in" and "not in" operators. That includes sequences (str, list, tuple, bytes, bytearray), mappings (dict, ChainMap, defaultdict), and sets (frozenset and set). It

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-05 Thread Jan
Jan added the comment: I really like this solution because it mentions the buzz word "membership". But I would change "container" to "sequence" because the term "container" doesn't appear in chapter 5, "sequence" on the other hand multiple times. My proposal: "The comparison operators `in`

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: It may seem weird, but a "membership operator" is a kind of "comparison operator".¹ They can even participate in chaining, 'a < b in s < c` is equivalent to `(a < b) and (b in s) and (b < c)`. I'm propose this new wording to mention the concept of

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-05 Thread Jan
New submission from Jan : In chapter 5.7 in the official Python tutorial (see: https://docs.python.org/3/tutorial/datastructures.html), there is the following paragraph: "The comparison operators in and not in check whether a value occurs (does not occur) in a sequence. The oper

[issue43034] Python tutorial misleads users about floor division behavior

2021-07-08 Thread Andrei Kulakov
Andrei Kulakov added the comment: Possibly: 5//2 # 2 -5//2 # -3 Would be easier to understand. -- nosy: +andrei.avk ___ Python tracker ___

Re: [ANN] Free Python tutorial with exercises, cscx.org

2021-04-13 Thread Russell via Python-list
Jach Feng wrote: > Is there any reason a student/beginner learn Python now start from Python2? > > --Jach Only if you want a job porting python2 to python3. Python 2.x is officially End Of Life. -- rust 0x68caecc97f6a90122e51c0692c88d9cb6b58a3dc --

Re: [ANN] Free Python tutorial with exercises, cscx.org

2021-04-07 Thread Jach Feng
Rudy Matela 在 2021年4月1日 星期四下午11:13:03 [UTC+8] 的信中寫道: > Hello python-list members, > > I would like to announce the following educational project: > > Computer Science by Example https://cscx.org/ is a collection of short > programming exercises. The site can automatically grade students' >

Re: [ANN] Free Python tutorial with exercises, cscx.org

2021-04-06 Thread Rudy Matela
On Fri, Apr 02, 2021 at 05:00:40AM +1100, Chris Angelico wrote: > On Fri, Apr 2, 2021 at 2:14 AM Rudy Matela wrote: > > Computer Science by Example https://cscx.org/ is a collection of short > > programming exercises. The site can automatically grade students' > > solutions and it accepts

Re: [ANN] Free Python tutorial with exercises, cscx.org

2021-04-01 Thread Chris Angelico
On Fri, Apr 2, 2021 at 2:14 AM Rudy Matela wrote: > > Hello python-list members, > > I would like to announce the following educational project: > > Computer Science by Example https://cscx.org/ is a collection of short > programming exercises. The site can automatically grade students' >

[ANN] Free Python tutorial with exercises, cscx.org

2021-04-01 Thread Rudy Matela
Hello python-list members, I would like to announce the following educational project: Computer Science by Example https://cscx.org/ is a collection of short programming exercises. The site can automatically grade students' solutions and it accepts submissions in Python. The exercises start

[issue43056] Use of dicts in 4.2 and 4.7 of Python tutorial a bit confusing

2021-02-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: The link to https://docs.python.org/3.9/library/stdtypes.html#typesmapping isn't a forward reference. It is a link to the main docs which is entirely appropriate and likely the only way a beginner would find that section. I concur with Terry that this

[issue43056] Use of dicts in 4.2 and 4.7 of Python tutorial a bit confusing

2021-01-29 Thread Jesse Silverman
Jesse Silverman added the comment: Agreed with the exception that I'd like to review whether the forward reference to dict in the tutorial might be better suited to people working thru the tutorial than the current forward reference to the real docs. I got to take a look at Eric Matthes'

[issue43034] Python tutorial misleads users about floor division behavior

2021-01-29 Thread Jesse Silverman
Jesse Silverman added the comment: I understand and agree with both comments. I will confirm that a substantial number of people think -17 // 3 yields -5.0, so when I saw this I wondered if it reinforced that common misconception. I was curious enough to not just confirm in the actual docs

[issue43056] Use of dicts in 4.2 and 4.7 of Python tutorial a bit confusing

2021-01-29 Thread Terry J. Reedy
uggestions for improvements, and unlike your other posts, I don't see that it might lead to any. -- nosy: +terry.reedy title: Use of dicts in sections 4.2 and 4.7 of Python tutorial a bit confusing -> Use of dicts in 4.2 and 4.7 of Python tutorial a

[issue43034] Python tutorial misleads users about floor division behavior

2021-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: -17/3 = -5.667 = -6.0 + .333. It is the latter fraction that gets discarded. However, this is a frequent source of confusion. How about adding >>> -17 // 3 -6 >>> -17 % 3 1 >>> -6 * 3 + 1 -17 to illustrate what we mean, without

[issue43056] Use of dicts in sections 4.2 and 4.7 of Python tutorial a bit confusing

2021-01-28 Thread Jesse Silverman
New submission from Jesse Silverman : The Python tutorial was not my first introduction to Python, but I see things in sections 4.2 and 4.7 that likely would have confused me a lot if it was. In 4.2 near the end, we have great advice about how to avoid problems with modifying a collection

[issue43034] Python tutorial misleads users about floor division behavior

2021-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: The first section of the tutorial isn't the right place to go into these details. The point of the section is to have a basic introduction to the interactive prompt. It is intensionally gentle and lightweight. It isn't the purpose of the tutorial to

[issue43043] Python tutorial could make rules for default argument definition clearer

2021-01-27 Thread Jesse Silverman
of the material which is presented. Regarding 4.7.1. Default Argument Values of the excellent Python tutorial: I guessed that I would see the behavior shown below from my understanding of default arguments in several other languages. I did not read anything in this tutorial section that would lead me

[issue43034] Python tutorial misleads users about floor division behavior

2021-01-26 Thread Jesse Silverman
New submission from Jesse Silverman : I had never worked thru the Python tutorial, it's kind of awesome. I noticed multiple independent presenters incorrectly describe the behavior of floor division when the signs of the operands don't match. Not just sloppy ones, some who are usually

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-24 Thread Борис Верховский
Борис Верховский added the comment: You changed "control flow statements" to "flow control statements", which is an unrelated concept. -- nosy: +boris ___ Python tracker ___

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-18 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-18 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset c47c8ba2969c9faf1c036b3dc4b0a5cf0d3aa0cc by Eric V. Smith (Miss Islington (bot)) in branch '2.7': bpo-37904: Edition on python tutorial - section 4 (GH-16169) (GH-16236) https://github.com/python/cpython/commit

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-18 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 8b907a8875d1b22d8f060dee9430cc82d471e86b by Eric V. Smith (Miss Islington (bot)) in branch '3.7': bpo-37904: Edition on python tutorial - section 4 (GH-16169) (GH-16235) https://github.com/python/cpython/commit

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-18 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 7a2f68776a77c782c0abf40dc9e3fb687787e730 by Eric V. Smith (Miss Islington (bot)) in branch '3.8': bpo-37904: Edition on python tutorial - section 4 (GH-16169) (GH-16234) https://github.com/python/cpython/commit

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15833 pull_request: https://github.com/python/cpython/pull/16236 ___ Python tracker ___

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15831 pull_request: https://github.com/python/cpython/pull/16234 ___ Python tracker ___

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15832 pull_request: https://github.com/python/cpython/pull/16235 ___ Python tracker ___

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset b57481318e3e3cbacd398b898f9849ec8f2d7eec by Miss Islington (bot) (Diego Alberto Barriga Martínez) in branch 'master': bpo-37904: Edition on python tutorial - section 4 (GH-16169) https://github.com/python/cpython/commit

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-15 Thread Diego Barriga
Change by Diego Barriga : -- keywords: +patch pull_requests: +15779 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16169 ___ Python tracker

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-15 Thread Diego Barriga
Diego Barriga added the comment: I'm interest on this for my first contribution :D -- ___ Python tracker ___ ___ Python-bugs-list

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-15 Thread Diego Barriga
Change by Diego Barriga : -- nosy: +umoqnier ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-08-21 Thread Eric V. Smith
Eric V. Smith added the comment: I think I'd prefer "... Python uses the usual flow control statements known from other languages ..." It's not just syntax, after all. -- keywords: +newcomer friendly nosy: +eric.smith stage: -> needs patch ___

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-08-21 Thread Lawrence R. Normie
Suggested edit to Python Tutorial - Section 4 type: enhancement versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue37904> ___ ___ Python-bugs-list mailing lis

[issue21196] Name mangling example in Python tutorial

2018-10-19 Thread STINNER Victor
STINNER Victor added the comment: Thanks Chandan Kumar and Berker Peksag. The documentation has been clarified. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker

[issue21196] Name mangling example in Python tutorial

2018-10-19 Thread miss-islington
miss-islington added the comment: New changeset b0f7fa1dda61ae7519deed816993ac5d55870958 by Miss Islington (bot) in branch '2.7': bpo-21196: Clarify name mangling rules in tutorial (GH-5667) https://github.com/python/cpython/commit/b0f7fa1dda61ae7519deed816993ac5d55870958 --

[issue21196] Name mangling example in Python tutorial

2018-10-19 Thread miss-islington
miss-islington added the comment: New changeset efc09a9701543f7180fc7ea0b6c45cf198c29cb8 by Miss Islington (bot) in branch '3.6': bpo-21196: Clarify name mangling rules in tutorial (GH-5667) https://github.com/python/cpython/commit/efc09a9701543f7180fc7ea0b6c45cf198c29cb8 --

[issue21196] Name mangling example in Python tutorial

2018-10-19 Thread miss-islington
miss-islington added the comment: New changeset 3e5bcd12f661bdf363c025b52a3d515829e64ed2 by Miss Islington (bot) in branch '3.7': bpo-21196: Clarify name mangling rules in tutorial (GH-5667) https://github.com/python/cpython/commit/3e5bcd12f661bdf363c025b52a3d515829e64ed2 -- nosy:

[issue21196] Name mangling example in Python tutorial

2018-10-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +9329 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21196] Name mangling example in Python tutorial

2018-10-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +9328 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21196] Name mangling example in Python tutorial

2018-10-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 13ae4d44381a647aadd09b70b24833052659be41 by Victor Stinner (Berker Peksag) in branch 'master': bpo-21196: Clarify name mangling rules in tutorial (GH-5667) https://github.com/python/cpython/commit/13ae4d44381a647aadd09b70b24833052659be41

[issue21196] Name mangling example in Python tutorial

2018-10-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +9327 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21196] Name mangling example in Python tutorial

2018-06-06 Thread Tim Peters
Tim Peters added the comment: Berker Peksag's change (PR 5667) is very simple and, I think, helpful. -- nosy: +tim.peters ___ Python tracker ___

[issue21196] Name mangling example in Python tutorial

2018-06-06 Thread Ned Deily
Ned Deily added the comment: What should we do with this issue? Raymond, it sounds like you think the proposed PR should not be merged, is that right? If so, should the issue and PR be closed? Other opinions? I would like to resolve this so we can either merge or close PR 5667. Thanks!

Fwd: Reporting Documentation Bug in Documentation » The Python Tutorial »6.Modules

2018-04-27 Thread VijithNambiar
Hi I think there is a bug in the section https://docs.python.org/3/ tutorial/modules.html#more-on-modules where the outputs of the statements below is given as wrong as it is starting with a '0' >>> import fibo as fib>>> fib.fib(500)0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 >>> import fibo as

[issue21196] Name mangling example in Python tutorial

2018-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think we should advertise how to manually mangle the names. That isn't a best practice. The feature is automatic for a reason. -- ___ Python tracker

[issue21196] Name mangling example in Python tutorial

2018-02-13 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +5469 ___ Python tracker ___ ___

[issue21196] Name mangling example in Python tutorial

2018-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: Chandan or Berker, Any interest in making a Github pull request for this patch? -- nosy: +csabella versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker

Re: Your feedback on our free Advanced Python tutorial

2017-07-21 Thread Mario R. Osorio
It would be nice if you made it more 'readable' the light gray foreground color of the text makes it very uncomfortable to read, at least to me. Take a look at: HOW THE WEB BECAME UNREADABLE https://www.wired.com/2016/10/how-the-web-became-unreadable/ --

Re: Your feedback on our free Advanced Python tutorial

2017-07-20 Thread Noah
On 20 Jul 2017 3:03 p.m., "Aude Barral, CodinGame" wrote: Hi everyone, I am co-founder of a startup called CodinGame. A few days ago we've launched a project: Tech.io . It's a free knowledge-sharing platform that allows tech professionals to learn new

Re: Your feedback on our free Advanced Python tutorial

2017-07-20 Thread Guido van Rossum
Hi Aude, Unfortunately I don't have time to review or endorse your Python materials. Good luck, --Guido On Wed, Jul 19, 2017 at 9:44 AM, Aude Barral, CodinGame wrote: > Hi everyone, > > I am co-founder of a startup called CodinGame. > > A few days ago we've launched a

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 81c05ccc10d044584dff3a69ee531094ed76ee2c by Mariatta in branch '3.6': bpo-6519: Improve Python Input Output Tutorial (GH-2143) (GH-2145) https://github.com/python/cpython/commit/81c05ccc10d044584dff3a69ee531094ed76ee2c --

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks everyone! I merged the PR and backported to 3.6 and 3.5. There are a bunch of conflicts when trying to backport to 2.7, so I decided not to bother. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions:

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 5a86154a931083e6a9f9bdf9cc8b3bc33abb673d by Mariatta in branch '3.5': bpo-6519: Improve Python Input Output Tutorial (GH-2143) (GH-2146) https://github.com/python/cpython/commit/5a86154a931083e6a9f9bdf9cc8b3bc33abb673d --

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2195 ___ Python tracker ___ ___

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2196 ___ Python tracker ___ ___

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset bd4e9e0ca96dabf33605d9b1fd1e0562ece8ae18 by Mariatta (Andrew Kuchling) in branch 'master': bpo-6519: Improve Python Input Output Tutorial (GH-2143) https://github.com/python/cpython/commit/bd4e9e0ca96dabf33605d9b1fd1e0562ece8ae18 --

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: PR filed against master: https://github.com/python/cpython/pull/2143 -- pull_requests: +2193 ___ Python tracker ___

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: @akuchling Can you prepare a PR on GitHub? -- nosy: +Mariatta ___ Python tracker ___

Re: perl + python tutorial available for download

2017-05-07 Thread retsithortmdk
On Monday, June 30, 2008 at 9:45:18 AM UTC-7, Xah wrote: > my perl and python tutorial > > http://xahlee.org/perl-python/index.html > > is now available for download for offline reading. > Download link at the bottom. > >Xah > ∑ http://xahlee.org/ > > ☄ --

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: IMO, the iterators are introduced at the correct point. There are many topics that one could argue should be introduced early, but of course they can't all go earlier (classes should be introduced earlier because everything in python is an object;

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Typo, is *now* becoming :-) -- ___ Python tracker ___ ___

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: What change do you have in mind for introducing these? As for my personal opinion, dunno about this. I understand your concerns but dropping more terminology to a new learner early on wouldn't be the best idea in my view. >From what I am aware,

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Michael Kesper
severity: normal status: open title: Python Tutorial should introduce iterators and generators type: enhancement ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue6519] Reorder 'with' statement for files in Python Tutorial

2016-11-07 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue6519] Reorder 'with' statement for files in Python Tutorial

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: The patch looks good to me. I think we can tweak the content a bit. I left some comments on Rietveld. Thanks! -- nosy: +berker.peksag stage: needs patch -> patch review versions: +Python 3.5, Python 3.6, Python 3.7 -Python 2.7, Python 3.2, Python 3.3,

[issue6519] Reorder 'with' statement for files in Python Tutorial

2016-11-06 Thread A.M. Kuchling
A.M. Kuchling added the comment: Good suggestion -- here's a patch that moves it and rewrites a little. -- nosy: +akuchling Added file: http://bugs.python.org/file45374/issue6519.txt ___ Python tracker

[issue21196] Name mangling example in Python tutorial

2016-06-02 Thread Berker Peksag
Berker Peksag added the comment: I think the text is fine, but the example is not needed. I've updated Chandan's patch to remove the example and tweak the text a bit. -- nosy: +berker.peksag versions: +Python 3.6 -Python 3.4 Added file: http://bugs.python.org/file43108/issue21196.diff

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2016-06-02 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the review. I removed the "-=" part from the patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2016-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef800c30e28c by Berker Peksag in branch '3.5': Issue #23116: Improve ask_ok() example in the Python tutorial https://hg.python.org/cpython/rev/ef800c30e28c New changeset 174eae50b664 by Berker Peksag in branch 'default': Issue #23116: Merge from

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2016-06-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think the patch is okay except for the use of "-=" instead of the more verbose version. -- nosy: +benjamin.peterson ___ Python tracker

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file43088/issue23116.diff ___ Python tracker

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2016-06-01 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: +1 for ValueError instead of OSError. -- nosy: +fdrake ___ Python tracker ___

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: I agree with all of Carol's suggestions. Also, OSError could be replaced with a more appropriate exception such as ValueError. -- nosy: +berker.peksag stage: -> needs patch versions: +Python 3.5, Python 3.6 -Python 3.4

[issue26842] Python Tutorial 4.7.1: Need to explain default parameter lifetime

2016-04-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry but I'm going to reject this one. I tried out the text on a Python class that I'm currently teaching and the learners found the text to be clear enough (though some were jarred by the choice of *L* as the variable name) and they all got the

[issue26842] Python Tutorial 4.7.1: Need to explain default parameter lifetime

2016-04-25 Thread Edward Segall
Edward Segall added the comment: I agree with most of your points: A tutorial should be brief and should not go down rabbit holes. Expanded discussion of default parameter behavior would probably fit better with the other facets of parameter speceification and parameter passing, perhaps as a

[issue26842] Python Tutorial 4.7.1: Need to explain default parameter lifetime

2016-04-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I hope this is useful. I realize it is much longer than the original. There lies the difficultly. The purpose of the tutorial is to quickly introduce the language, not to take someone deeply down a rabbit hole. The docs tend to be worded in an

[issue26842] Python Tutorial 4.7.1: Need to explain default parameter lifetime

2016-04-24 Thread Edward Segall
realize it is much longer than the original. I had hoped to make it shorter, but when I did I found I was glossing over important details. -- assignee: docs@python components: Documentation messages: 264135 nosy: docs@python, esegall priority: normal severity: normal status: open titl

RE: pdf version of python tutorial

2016-03-19 Thread Joaquin Alzola
Den 13-03-2016 kl. 14:45 skrev kamaraju kusumanchi: > Is there a pdf version of the python tutorial > https://docs.python.org/3/tutorial/index.html that I can download? The > idea is to have everything in one file so I can search easily, be able > to work offline. > > thanks &

Re: pdf version of python tutorial

2016-03-14 Thread Jesper K Brogaard
Den 13-03-2016 kl. 14:45 skrev kamaraju kusumanchi: Is there a pdf version of the python tutorial https://docs.python.org/3/tutorial/index.html that I can download? The idea is to have everything in one file so I can search easily, be able to work offline. thanks raju Try here: https

Re: pdf version of python tutorial

2016-03-13 Thread kamaraju kusumanchi
On Sun, Mar 13, 2016 at 1:34 PM, Chris Warrick wrote: > > There is a download link on the documentation index: > > https://docs.python.org/3/download.html > Exactly what I needed. Thanks. raju -- Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog --

Re: pdf version of python tutorial

2016-03-13 Thread Chris Warrick
On 13 March 2016 at 14:45, kamaraju kusumanchi <raju.mailingli...@gmail.com> wrote: > Is there a pdf version of the python tutorial > https://docs.python.org/3/tutorial/index.html that I can download? The > idea is to have everything in one file so I can search easily, be able &g

pdf version of python tutorial

2016-03-13 Thread kamaraju kusumanchi
Is there a pdf version of the python tutorial https://docs.python.org/3/tutorial/index.html that I can download? The idea is to have everything in one file so I can search easily, be able to work offline. thanks raju -- Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog -- https

Re: good python tutorial

2016-02-23 Thread Aaron Christensen
Thanks for sharing! On Tue, Feb 23, 2016 at 1:48 AM, Mike S via Python-list < python-list@python.org> wrote: > This site was recommended by a friend, it looks really well put together, > I thought it might be of interest to people considering online tutorials. > >

good python tutorial

2016-02-22 Thread Mike S via Python-list
This site was recommended by a friend, it looks really well put together, I thought it might be of interest to people considering online tutorials. http://www.python-course.eu/index.php -- https://mail.python.org/mailman/listinfo/python-list

[issue25808] The Python Tutorial 5.3. Tuples and Sequences

2015-12-05 Thread SilentGhost
SilentGhost added the comment: No, what this piece of code shows is that trying to assign a value to a tuple element will cause an error. Of course, the same error would be raise when using the the value 12345, but it's more instructive to use a different value to not confuse the reader.

[issue25808] The Python Tutorial 5.3. Tuples and Sequences

2015-12-05 Thread Ben Schreib
54321, 'hello!'), (1, 2, 3, 4, 5)) >>> # Tuples are immutable: ... t[0] = 8 -- assignee: docs@python components: Documentation messages: 255962 nosy: Ben Schreib, docs@python priority: normal severity: normal status: open title: The Python Tutorial 5.3. Tup

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2015-01-03 Thread Carol Willing
Carol Willing added the comment: @amylou Thank you for submitting this documentation suggestion about the Python Tutorial. This tutorial section, 4.7.1 Default Argument Values, tries to show that a function can have multiple input arguments which may be given default values. While

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2014-12-26 Thread Amy
with capitalized characters such as Yes or NO. -- messages: 233114 nosy: amyluo priority: normal severity: normal status: open title: Python Tutorial 4.7.1: Improve ask_ok() to cover more input values type: enhancement versions: Python 3.4 ___ Python tracker rep

Re: Python Tutorial

2014-06-16 Thread jonadina
hello... pls how did ur tutorial creation go? Could i get it as i am starting to learn python thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Tutorial

2014-06-16 Thread Zachary Ware
a Google search for python tutorial will turn up many options as well :). You may also be interested in the Python 'tutor' mailing list, see https://mail.python.org/mailman/listinfo/tutor Regards, -- Zach -- https://mail.python.org/mailman/listinfo/python-list

[issue21196] Name mangling example in Python tutorial

2014-04-14 Thread Chandan Kumar
Chandan Kumar added the comment: Uploading the patch for the improvement to the name mangling section of the Python tutorial. Please note that the modification is much smaller than I proposed earlier. -- keywords: +patch Added file: http://bugs.python.org/file34814

[issue21196] Name mangling example in Python tutorial

2014-04-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and proposed fix! Could you upload a patch file that we could directly apply to the documentation instead of Python files? More information about how to do that is found here: https://docs.python.org/devguide/#quick-start If you need any

[issue21196] Name mangling example in Python tutorial

2014-04-10 Thread Chandan Kumar
: Documentation files: name_mangling_works.py messages: 215872 nosy: chandan, docs@python, rhettinger priority: normal severity: normal status: open title: Name mangling example in Python tutorial type: enhancement Added file: http://bugs.python.org/file34781/name_mangling_works.py

  1   2   3   4   >