Questions tagged [inspection]
111 questions
2
votes
3 answers
Lisp: Inspect function determine its required parameters
In Python, I can do this:
>>> def foo(x,y,z=1):
return x+y*z
>>> foo.func_code.co_varnames
('x', 'y', 'z')
>>> foo.func_defaults
(1,)
And from it, know how many parameters I must have in order to call foo(). How can I do this in Common Lisp?

Ishpeck
- 2,001
- 1
- 19
- 21
2
votes
1 answer
What does blue color mean in Intellij IDEA Inspections settings?
In Settings > Editor > Inspections there is a list of all inspections.
Some of inspections are listed in a blue font color.
What does blue color mean in this context?
(my own highlights in red)

andrybak
- 2,129
- 2
- 20
- 40
2
votes
0 answers
Live inspections in PyCharm
I created some buggy Python code on purpose:
foo = 3
if foo != None:
print("bar")
Then PyCharm underlines the comparison, warning that it's not the way I should compare against None.
But I'd like to have a list of all problems with my code…

marmistrz
- 5,974
- 10
- 42
- 94
2
votes
1 answer
PyCharm is not doing code inspection on non-project files
I'm working on a Python project in PyCharm and I wanted to edit a python script outside the project.
PyCharm doesn't inspect the code and doesn't give any PEP8 violations.
Hoped that there would be a setting for that but couldn't find anything so…

Sinan Cetinkaya
- 427
- 5
- 18
2
votes
3 answers
How to inspect mystery deserialized object in Python
I'm trying to load JSON back into an object. The "loads" method seems to work without error, but the object doesn't seem to have the properties I expect.
How can I go about examining/inspecting the object that I have (this is web-based code).
…

NealWalters
- 17,197
- 42
- 141
- 251
2
votes
3 answers
.NET Runtime Object Browser
Is there a framework which can be used in your application, to make it expose internal objects on some port for inspection.
for.e.g. after i start my application in this case a GUI Application, and then say launch http://localhost:9100 then it…

like.no.other
- 95
- 2
- 10
2
votes
2 answers
how to get class name of a class static method through inspection
I found same similar question, but my question is diffent
def trace ():
?
class A():
@staticmethod
def Aha():
trace ()
...
I want the trace output
A.Aha() was called
I have known how to get function name through inspection, and…

user2056706
- 23
- 3
2
votes
2 answers
Checking dimensions of a factor variable in R
This is a short question, but how do I look up the dimensions of a factor variable in R? I tried:
dim(X)
nrow(X)
ncol(X)
but all return NULL

Amelio Vazquez-Reina
- 91,494
- 132
- 359
- 564
2
votes
0 answers
PyCharm inspection error for module in a package
Why does PyCharm's inspection complain about this?
import mypackage;
mypackage.mymodule # inspection hilights mymodule
The message I get is: " Cannot find reference 'mymodule' in 'mypackage' ".
However, the program runs without problem. Inserting…

Yariv
- 12,945
- 19
- 54
- 75
1
vote
3 answers
How can I get the name of a python class?
When I have an object foo, I can get it's class object via
str(foo.__class__)
What I would need however is only the name of the class ("Foo" for example), the above would give me something along the lines of
""
I know I…

Dave Vogt
- 18,600
- 7
- 42
- 54
1
vote
2 answers
How can I set the application information on a session using the Oracle thin JDBC driver?
I'd like to change the application information that is shown when inspecting
Oracle 10g sessions using the Oracle Enterprise Manager application:
Application Information
Program 'my program'
Module 'something'
Command …

Chris R
- 17,546
- 23
- 105
- 172
1
vote
0 answers
How to get the xpath of suggested items of google place auto complete field in selenium
I am doing a selenium project. There is a field called address which is a google place auto complete field that suggests palces name like dropdown. Problem with the field is, it cannot be inspected. Whenever i click on inspection button the…

Blockchain Kid
- 315
- 2
- 9
1
vote
0 answers
How to find AssociationProxy declared_attr name in SQLAlchemy from inspection with all_orm_descriptors
I have a SQLAlchemy table class that has an association proxy defined (through a mixin) as below:
@declared_attr
def nationality_name(self):
return association_proxy("nationality", "name")
I would like to get the name of this attribute using…

robintw
- 27,571
- 51
- 138
- 205
1
vote
0 answers
How to hide inspections widget in IntelliJ
Since IntelliJ 2020.2, there is an overlay on the editor that is distracting.
https://www.jetbrains.com/help/idea/disabling-and-enabling-inspections.html#change-highlighting-level-for-file
Is there a way to hide this "widget"?

tonisives
- 1,962
- 1
- 18
- 17
1
vote
0 answers
Surpress PhpStorm Inspection for specific types
I've configured PhpStorm code Inspection in my project recently, and I noticed some undesired behavior.
The PhpStorm code Inspector seems to always have wrong mentions about code that is inside an eval(). For example, undefined constant, undefined…

Luuk
- 21
- 8