Change temp names created by listcomps from [%d] to _[%d], so the one-liner
[k for k in dir() if k[0] != "_"] can be used to get the non-private names (used to contain "[1]").
Showing
Please register or sign in to comment
[k for k in dir() if k[0] != "_"] can be used to get the non-private names (used to contain "[1]").