[issue27601] Minor inaccuracy in hash documentation

2016-07-24 Thread Berker Peksag
Berker Peksag added the comment: > I am very sorry, this is probably my fault. It's not your fault :) I removed them. 3.2, 3.3 and 3.4 are in security-fix-only mode so they won't get any documentation updates. You can read https://docs.python.org/devguide/devcycle.html#secbranch for details a

[issue27601] Minor inaccuracy in hash documentation

2016-07-24 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Originally I emphasized that this bug occurs at every py3k version since 3.2. For some reason version list somehow shrinked to only tow of them - 3.5 and 3.6. I am very sorry, this is probably my fault. -- resolution: fixed -> status: closed -> ope

[issue27601] Minor inaccuracy in hash documentation

2016-07-24 Thread Berker Peksag
Berker Peksag added the comment: Looks good to me too. 'hash_value' looks more readable to me, thanks! -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: -Python 3.2, Python 3.3, Python 3.4 _

[issue27601] Minor inaccuracy in hash documentation

2016-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6be689eacf8 by Berker Peksag in branch '3.5': Issue #27601: Improve example in the "Hashing of numeric types" section https://hg.python.org/cpython/rev/a6be689eacf8 New changeset 06bbcbaeeb18 by Berker Peksag in branch 'default': Issue #27601: Merg

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Mark Dickinson
Mark Dickinson added the comment: The changes look good to me. Thanks for spotting this! -- ___ Python tracker ___ ___ Python-bugs-lis

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread R. David Murray
R. David Murray added the comment: Adding a _ after a keyword is a very common trick. The fact that one got lost indicates that it isn't necessarily optimal :). I don't really have an opinion one way or the other on the variable rename. -- nosy: +r.david.murray _

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Emanuel Barry
Emanuel Barry added the comment: Do note that nothing has been changed in the docs yet. I submitted the patch, and now other developers need to review it, decide whether it's correct or need modifications, and then someone needs to commit it. Let the bikeshedding start =) --

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread SilentGhost
Changes by SilentGhost : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> mark.dickinson nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Aleksandr Koshkin
Changes by Aleksandr Koshkin : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Thanks) -- resolution: -> fixed versions: +Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Emanuel Barry
Changes by Emanuel Barry : Added file: http://bugs.python.org/file43846/hash_doc_renamed_1.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Emanuel Barry
Emanuel Barry added the comment: Indeed, nicely spotted! Patch attached (hash_complex_type_1.patch) P.S.: I don't like the 'hash_' name as a variable for this example; it looks like grit on Tim's monitor to me, so I went ahead and renamed it to 'hash_value' in that block. Attached as a separa

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Moreover this example contains following code if hash_ == -1: hash_ == -2 return hash_ that doesn`t make too much sense. -- ___ Python tracker ___

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Aleksandr Koshkin
New submission from Aleksandr Koshkin: https://docs.python.org/3.6/library/stdtypes.html#hashing-of-numeric-types Look at semantics example for hash_complex function. The variable 'hash' is clearly misused - it is not defined or refers to builtin function 'hash'. Either way the example is incor