[Python-Dev] Adding types.build_class for 3.3 (original) (raw)
Brett Cannon brett at python.org
Wed May 9 21🔞12 CEST 2012
- Previous message: [Python-Dev] Adding types.build_class for 3.3
- Next message: [Python-Dev] Adding types.build_class for 3.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, May 9, 2012 at 12:21 PM, Barry Warsaw <barry at python.org> wrote:
On May 09, 2012, at 05:20 PM, Nick Coghlan wrote:
>Ah, good point. In that case, consider me convinced: static method it >is. It can join mro() as the second non-underscore method defined on >type(). +1 If I may dip into the bikeshed paint once more. I think it would be useful to establish a naming convention for alternative constructors implemented as {static,class}methods. I don't like
buildclass()
much. Would you be opposed totype.new()
?
Depends on how far you want this new term to go since "new" is somewhat overloaded thanks to new(). I personally like create(). -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120509/b418f601/attachment.html>
- Previous message: [Python-Dev] Adding types.build_class for 3.3
- Next message: [Python-Dev] Adding types.build_class for 3.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]