Sergey B Kirpichev

Results 396 comments of Sergey B Kirpichev

> I would likely use something like N_uuid where uuid is a unique identifier There are more efficient ways, of course, but this looks fine for an example. > It...

> I'm thinking of a potentially "simpler" approach where the source is transformed at the tokenization stage I'm not sure how robust it could be. But the tokenize() does preserve...

Probably, you were right: after some playing with the token-based approach, I don't think it will break things. And it's simple, indeed: ```python import io import tokenize import unicodedata import...

> In addition to modifying dir(), one would probably need to modify vars(), > and perhaps locals() and globals(). Tracebacks might be tricky to decipher > unless they are decoded...

> I could not get this to work reliably when trying to redefine it so that it would show the same thing as dir(). I would prefer to fix the...

> One possibility I thought of was to automatically exclude variables that start with a double underscore That will be a different dir(). > Would such a filtering be useful...

UPD: > Finally, for AST transformations, the repl does not "echo" back the value of names or the value of statements without an explicit print statement. I would think that...

On Thu, Apr 15, 2021 at 03:25:34AM -0700, André Roberge wrote: > but it is certainly a good idea to do it correctly I'm not sure that for non-ast case...

Hmm, then maybe this check is not a suitable task for the pep8-naming?

Broken CI looks severe enough for me.