I’m trying to accomplish something simple, but that has got me stuck. I have a list of values, integers, as well as the value of None.
Now, I wish to only continue to work with the integers, I’m trying to accomplish something similar as this:
for a in list do
if not a matches regex 'None' then
However, matches expects a string or buffer, which causes a bunch of exceptions. How can I solve this?
(Something good for the future is perhaps to release a Python API for Discovery, don’t re-invent the wheel with a new language)
Update: Uh, seems “None” is it’s own datatype for whatever reason, using a <> “None” does not seem to work either.
Update 2: So, “if a then” worked to filter out the “NoneType”.