Peter Ludemann
Peter Ludemann
If you're doing refactoring, wouldn't it be better to use lib2to3's AST? I've got something that resolves the non-dynamic names in lib2to3's AST and am (slowly) working on resolving the...
Do you need an annotated AST, or is it sufficient to have the tokens in the file mapped to fully qualified names (FQNs) and types? I have some code for...
@sk- Yes, it's more-or-less the tokens as output by the `tokenize` module, although I use `lib2to3`, which has its own tokenizer. My output is a simplified AST with the tokens...
OK, let me get things into a slightly better shape, then I'll send it to you (or put it on github if it's not too awful). This week is rather...
I've pushed an interim version of my code to https://github.com/kamahen/pykythe Its outputs will take some explaining, so (assuming you want to play with it), I suggest you follow the setup...
The problem seems to be in `Grammar.dump()` in file `yapf/third_party/yapf_third_party/_ylib2to3/pgen2/grammar.py` - it opens the file directly instead of creating a temporary name, writing to the file, then renaming it (this...
There's an alternative method that runs a small risk of leaving a temporary file lying around, but might work better on Windows [this code is untested; and it probably should...
Hmmm ... the problem doesn't seem to be the `PL_new_term_ref()` because I'm calling `PL_exception()` with `qid==0`, so `PL_exception(0)` should just return `exception_term` (which is `LD->exception.term`). It puzzles me why calling...
There's one obvious work-around: check for exception equal `error(resource_error(stack),, _)`. This seems to work for now, so if there aren't wider implications of this issue, this issue can be closed.
Yes, I have pulled https://github.com/SWI-Prolog/swipl-devel/commit/308c9221b3676062c1ff46c13fa3782cd3311e39 ... I get the same result. The work-around is pretty straightforward. For now, I'm not going to try to track this down because I'm concentrating...