Search

Gsniper

1 min read 0 views
Gsniper

... (same as above) ...

"
return gsniper()
" Wait: At the bottom they return `gsniper()`. That refers to function defined earlier, but defined inside function body? Actually inside that body, they defined function gsniper() earlier but after returning? But function gsniper() defined within same function is not visible outside. But they return gsniper() after that definition; that means they call the local function, not global? But the local function defined earlier inside the body is defined after the return? Let's parse: They wrote: return "..." def gsniper():
...
return "..." return gsniper() ``` So the return string at the top returns a string and the rest of code after that is unreachable. So the function returns the string, ignoring everything else. So the entire rest of code including definition of gsniper() local function is unreachable. So there is no function to return. The returned string includes HTML, but the return string is truncated: It ends with "

... (same as above) ...

Was this helpful?

Share this article

Suggest a Correction

Found an error or have a suggestion? Let us know and we'll review it.

Comments (0)

Please sign in to leave a comment.

No comments yet. Be the first to comment!