Changes between Version 83 and Version 84 of pyson


Ignore:
Timestamp:
01/08/25 09:30:28 (3 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pyson

    v83 v84  
    356356
    357357== Overloading the constructor
    358 If you overload the constructor, you need to put the constructor that is needed for pyson first. This bit hacky solution is needed because introspection of overloaded methods in plum only gives information on the first constructor.
     358
     359Overloading is not supported natively in Python. One option if you really need to overload methods is to use the plum library.
     360
     361Unfortunately plum does not fix the native introspection, and thus introspection only gives information on the first declared method. Therefore finding the overloaded methods and the method parameters is not possible for anything but the first of a set of overloaded methods. One way to  combine plum with pyson is to put the constructor that is needed for pyson first.
     362
    359363
    360364== Download sources