Ticket #1152 (closed task: fixed)

Opened 2 years ago

Last modified 2 years ago

Aliases for methods and values

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

Description

Pyprops does not yet read _aliases.txt and does not provide any mechanism for aliasing attributes or methods.

Decide whether we should have them or not. Probably this would be one of simpler breaks in compatibility.

Since attributes cannot have aliases implemented through descriptors (due to gc problems), all aliases can be implemented through getattr, perhaps added automatically by pyprops.py

Change History

comment:1 Changed 2 years ago by janez

Added aliases for attributes that are given in the .hpp file, e.g. PVarList attributes; PR(+features). Garbage collection skips the aliases (they have a flag 0x20000000 added to the offset). There is no need to use getattr for this.

_aliases.txt is still not processed by pyprops. This should be added.

comment:2 Changed 2 years ago by janez

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.