[issue17352] Be clear that __prepare__ must be declared as a class method

2016-06-02 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 15243. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Misleading documentation for __prepare__ ___ Python tracker

[issue17352] Be clear that __prepare__ must be declared as a class method

2015-07-21 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: -ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17352 ___ ___ Python-bugs-list

[issue17352] Be clear that __prepare__ must be declared as a class method

2015-03-03 Thread Nick Coghlan
Nick Coghlan added the comment: __new__ is a little weird - it's actually special cased as a staticmethod. Your questions is still valid, though. For existing versions, documenting the requirement is the only option. For future versions, we could conceivably implement a decorate it if it

[issue17352] Be clear that __prepare__ must be declared as a class method

2015-03-02 Thread Ethan Furman
Ethan Furman added the comment: Should __prepare__ be special-cased as a classmethod, like __new__ is? Is there any reason to ever have __prepare__ /not/ be a classmethod? -- ___ Python tracker rep...@bugs.python.org

[issue17352] Be clear that __prepare__ must be declared as a class method

2014-05-18 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17352 ___ ___ Python-bugs-list

[issue17352] Be clear that __prepare__ must be declared as a class method

2013-10-13 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - docs@python components: +Documentation nosy: +docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17352 ___

[issue17352] Be clear that __prepare__ must be declared as a class method

2013-03-04 Thread Nick Coghlan
Nick Coghlan added the comment: Class method, not static method (super() breaks if you declare it as a static method) -- title: Be clear that __prepare__ must be declared as a static method - Be clear that __prepare__ must be declared as a class method