So I was coding the extractor for the imports, when checking my results I found something strange. First off, a number of canonical libraries, such as os, numpy or sys, were stamped as Aliases, and had the following aspect:
While this in it of itself is not so much of an issue, as I can just check if the Node attribute is empty then opt to use the Name attribute, the following is more annoying. Basically, given the following import:
Which, unless there was an error in this comment seems to be the opposite of what should be expected.
In all cases, I'm guessing there might be some link between both errors, so only opened one issue. I checked on all Python files I had in gitbase, from what I saw:
the first error appears somewhat randomly
the second error is systematic when the syntax specified above is used
Note: I used the latest release of the Python client to get this, got the same results when using play.bblf.sh to check it wasn't just me.
Hey !
So I was coding the extractor for the imports, when checking my results I found something strange. First off, a number of canonical libraries, such as
os
,numpy
orsys
, were stamped as Aliases, and had the following aspect:While this in it of itself is not so much of an issue, as I can just check if the Node attribute is empty then opt to use the Name attribute, the following is more annoying. Basically, given the following import:
I get the following:
Which, unless there was an error in this comment seems to be the opposite of what should be expected.
In all cases, I'm guessing there might be some link between both errors, so only opened one issue. I checked on all Python files I had in gitbase, from what I saw:
Note: I used the latest release of the Python client to get this, got the same results when using play.bblf.sh to check it wasn't just me.