Question: I am using Perforce 2015 client (P4V) on Windows 7.

I changed some files in my IDE. Then I use "Folder Diff" in Perforce to locate them. I was expecting to find "checkout" right click menu on the "Folder Diff" Perforce window in order to move my changes to a changeset but I don't see any "checkout" around.

How can I checkout directly from Diff view?

Answer: 
You can use `exec`

```
>>>content = "def my_function(x):\n    return x**2"
>>>exec content
>>>my_function(5)
25

```

For **Python 3.x**

```
>>>exec(content)

```
a = "lambda x:x\*\*2" 

my\_func = eval(a)

print my\_func(3)