access current input file name and line number with all_input_lines() #36
Labels
No labels
blocked
bug
ciritical
code improvement
duplicate
feature
in progress
low
normal
research
spec change
ui
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
w21/jpylib#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Like
$.in Perl,current_input_linenoshall hold the current line number of the current input file when all_input_lines() is running;current_input_fnameshall hold the current input file name.As I have no explicit context of the running generator (and don't want to complicate its use), these must be global variables in the
jpylib(ory) name space. That may not be appropriate in some applications, e.g. if one generator is called while another one is active at the same time; in these cases, other generators must be used. Still, this may be of benefit to most use cases.assigned to @ni