Ticket #1138 (new task)

Opened 3 years ago

"Smart new" for Learner

Reported by: janez Owned by: janez
Milestone: 3.0 Component: library
Severity: minor Keywords:
Cc: Blocking:
Blocked By:


Learner shouldn't be abstract. operator::() should call the method call in Python new should be smart:

  • construct learner
  • if there is no data:

– call init (if needed) with all keyword arguments

  • else

– call learner's init with keyword arguments with matching names OR with all keyword arguments if init accepts kw – call call – set attributes corresponding to keyword arguments (none, if the learner's init accepts kw)

Note: See TracTickets for help on using tickets.