[issue20467] Confusing wording about __init__

2015-01-14 Thread Ethan Furman
Ethan Furman added the comment: Changed 'no value may be returned' to 'no non-None value may be returned'. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue20467] Confusing wording about __init__

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7972b18b6e42 by Ethan Furman in branch '2.7': Issue20467: clarify __init__'s role https://hg.python.org/cpython/rev/7972b18b6e42 -- ___ Python tracker

[issue20467] Confusing wording about __init__

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94696e457461 by Ethan Furman in branch '3.3': Issue20467: clarify __init__'s role https://hg.python.org/cpython/rev/94696e457461 New changeset 46c9b34f31b8 by Ethan Furman in branch '3.4': Issue20467: clarify __init__'s role https://hg.python.org/cp

[issue20467] Confusing wording about __init__

2014-11-30 Thread Simeon Visser
Simeon Visser added the comment: Is it worth clarifying that __init__ can return a value but only the value None? The following won't raise a TypeError: class O(object): def __init__(self): return None Admittedly the "return None" is the default behaviour but people may attempt th

[issue20467] Confusing wording about __init__

2014-11-23 Thread Ethan Furman
Ethan Furman added the comment: Thoughts? -- keywords: +patch stage: -> patch review versions: +Python 3.5 Added file: http://bugs.python.org/file37255/issue20467.stoneleaf.01.patch ___ Python tracker

[issue20467] Confusing wording about __init__

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue20467] Confusing wording about __init__

2014-01-31 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20467] Confusing wording about __init__

2014-01-31 Thread Mark Lawrence
New submission from Mark Lawrence: I found the wording here http://docs.python.org/3/reference/datamodel.html#object.__init__ very confusing as it implies that __init__ is the class constructor and not the initialiser. Specifically it says "As a special constraint on constructors, no value m