[issue26479] Init documentation typo "may be return" > "may NOT be returned"

2016-04-03 Thread Samuel Colvin
Samuel Colvin added the comment: Sorry, I'm going mad, misread it. -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue26479] Init documentation typo "may be return" > "may NOT be returned"

2016-03-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: The text appears to be correct as it is. What is says is that __init__ must not return any value other than None and that is correct, you will get an exception when you return a value that is not None. >>> class C(): ...def __init__(self): return 42 ...

[issue26479] Init documentation typo "may be return" > "may NOT be returned"

2016-03-04 Thread Samuel Colvin
New submission from Samuel Colvin: https://docs.python.org/3/reference/datamodel.html#object.__init__ "no non-None value may be returned by __init__();" should read "no non-None value may *not* be returned by __init__();" -- assignee: docs@python components: Documentation messages: