Project

General

Profile

Actions

Feature #5065

closed

Update pynspect query semantic from "return bool" to "return bool deciding data"

Added by Pavel Kácha almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development - Core
Target version:
Start date:
05/14/2019
Due date:
% Done:

100%

Estimated time:
To be discussed:

Description

Expression "ConnCount or FlowCount" returns simple True or False, where for greater pynspect versatility it would make sense to return value, which decided boolean expression, like for example python expressions.

There might be pitfalls though. Pynspect within Mentat often works on lists of lists, and list full of empty lists in this context makes sense as False. This semantics must stay, so other places, depending on this behaviour, must be identified and fixed.

Lib is very well covered by unit tests, so this will be good pointer (however, it should be verified that these corner cases are covered).

Actions

Also available in: Atom PDF