[issue39234] `enum.auto()` incrementation value not specified.

2020-01-25 Thread Ned Deily
Ned Deily added the comment: New changeset b0a6ec256b460f071e33b4633e5bec450d8e6394 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872) (GH-17876) https://github.com/python/cpython/commit/b0a6ec256b460f071e33b4633e

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-25 Thread Ned Deily
Change by Ned Deily : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-25 Thread Ned Deily
Ned Deily added the comment: New changeset eec7636bfd07412b5872c0683636e9e98bf79a8c by Ned Deily (Miss Islington (bot)) in branch '3.8': bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872) (GH-17875) https://github.com/python/cpython/commit/eec7636bfd07412b5872c06836

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the PRs. -- nosy: +eric.smith resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread miss-islington
miss-islington added the comment: New changeset 24bcefcb74231476b055bb6f0726642abeb10f04 by Miss Islington (bot) (YoSTEALTH) in branch 'master': bpo-39234: `enum.auto()` default initial value as 1 (GH-17878) https://github.com/python/cpython/commit/24bcefcb74231476b055bb6f0726642abeb10f04 -

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread YoSTEALTH
Change by YoSTEALTH : -- pull_requests: +17294 pull_request: https://github.com/python/cpython/pull/17878 ___ Python tracker ___ ___

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +17291 pull_request: https://github.com/python/cpython/pull/17875 ___ Python tracker ___ __

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +17292 pull_request: https://github.com/python/cpython/pull/17876 ___ Python tracker ___ __

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread Ethan Furman
Ethan Furman added the comment: New changeset 2e9012a3e1e316c54e27f51ba5849ba06eab7da2 by Ethan Furman (YoSTEALTH) in branch 'master': bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872) https://github.com/python/cpython/commit/2e9012a3e1e316c54e27f51ba5849ba06eab7da2

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread Ethan Furman
Ethan Furman added the comment: `auto()` starts with 1 because Enum numbering starts at 1 (which is in the docs, albeit buried in the Functional API section). Thank you for your effort to save somebody else from that frustration, though, I appreciate it. -- nosy: +ethan.furman

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread YoSTEALTH
Change by YoSTEALTH : -- keywords: +patch pull_requests: +17288 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17872 ___ Python tracker ___ __

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread YoSTEALTH
New submission from YoSTEALTH : # enum in C # - enum { a, b, c } # a = 0 # b = 1 # b = 2 # enum in Python # -- class Count(enum.IntEnum): a = enum.auto() b = enum.auto() c = enum.auto() # a = 1 # b = 2 # b = 3 I am not sure why the `enum.auto()` sta