Python: address review comments

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-08-14 11:29:58 +02:00
parent 8d49ad7325
commit 9556937840
2 changed files with 5 additions and 2 deletions

View File

@@ -1041,7 +1041,9 @@ def test_index():
with_index = With_index()
operator.index(with_index)
# make With_index subscriptable to test slicing
def test_index_slicing():
with_index = With_index()
[0][with_index:1]
def test_index_bin():
with_index = With_index()

View File

@@ -6,4 +6,5 @@ where
sink.getLocation().getFile().getBaseName() = "classes.py" and
exists(CallGraphConfig cfg | cfg.hasFlow(source, sink))
select source, sink
// Rewrite this to just have 1-step paths?
// Ideally, we would just have 1-step paths either from argument to parameter
// or from return to call. This gives a bit more, so should be rewritten.