Project

General

Profile

Actions

Feature #1962

closed

Name.getSubName: negative index

Added by Anonymous about 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Base
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

Name::get already supports a Python-style negative index so that name.get(-3) gets the third component from the back.

getSubName should also support a negative index for the first argument, so that you can say name.getSubName(-3, 2), it returns two components starting third from the back.

Actions

Also available in: Atom PDF