Changes between Initial Version and Version 1 of Ticket #17008, comment 11


Ignore:
Timestamp:
09/19/14 16:37:01 (6 years ago)
Author:
SimonKing
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17008, comment 11

    initial v1  
    1111> or perhaps call it `__classcall_private__` (so it doesn't get accidentally used by subclasses).
    1212
    13 That's the way to work around the limitation of `UniqueRepresentation` in special cases. Note that what we want here is to make `__classcall__` aware of the default arguments of `__init__` (or rather: Provide these default arguments). Hence, we ''want'' that this behaviour is inherited for all sub-classes that also inherit `__init__`. Therefore, '__classcall__` should be better than `__classcall_private__` in this case.
     13That's the way to work around the limitation of `UniqueRepresentation` in special cases. Note that what we want here is to make `__classcall__` aware of the default arguments of `__init__` (or rather: Provide these default arguments). Hence, we ''want'' that this behaviour is inherited for all sub-classes that also inherit `__init__`. Therefore, `__classcall__` should be better than `__classcall_private__` in this case.
    1414
    1515However, what I was mentioning was an approach to leverage the limitation ''generally'', without the need to implement `__classcall__` or `__classcall_private__`.