Skip to content

Remove super from the extension classes (ExampleFinder, ExampleRunner, ...) as the hierarchy may not support cooperaty inherence (and it isn't required) #235

@eldipa

Description

@eldipa

Describe the bug
The super special code is not for reference the super-class, it is meant for something totally different and it may return even classes that are not ancestors of the calling object.

Indeed a better name would be next-class or next-method as super is misleading.

Anyways, super was introduced in byexample in 11.0.0 which it is not released yet (see #233 ) and it was meant to be used even further in #112 . We need to revert that.

References:

Python's Super is nifty, but you can't use it
https://fuhm.net/super-harmful/

Python’s super() considered super!
https://rhettinger.wordpress.com/2011/05/26/super-considered-super/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugout of sync between the code and the docs; something that should be fixed in the near future

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions