Top "Global" questions

Refers to a space where variables and other items may be accessed from any scope.

Non-declaration statement outside function body in Go

I'm building a Go library for an API that offers JSON or XML formatted data. This API requires me to …

variables scope go package global
PHP $this variable

I am reading some PHP code that I could not understand: class foo { function select($p1, $dbh=null) { if ( is_…

php variables local global
Global dictionaries don't need keyword global to modify them?

I wonder why I can change global dictionary without global keyword? Why it's mandatory for other types? Is there any …

python dictionary scope global-variables global
Global variables in Javascript and ESLint

I have got multiple javascript files and I have defined some global variable in a file which loads before the …

javascript variables global eslint
Do you use the "global" statement in Python?

I was reading a question about the Python global statement ( "Python scope" ) and I was remembering about how often I …

python global
How to get the global object in JavaScript?

I want to check in a script if a certain other module is already loaded. if (ModuleName) { // extend this module } …

javascript global
global variable warning in python

I have a python 2.6 script (yes I know I should upgrade to at least 2.7) that looks like this: ret_code = 0 …

python python-2.7 global python-2.6
Python Django Global Variables

I'm looking for simple but recommended way in Django to store a variable in memory only. When Apache restarts or …

python django memory variables global
The Angular Compiler requires TypeScript >=2.7.2 and <2.8.0 but 2.8.3 was found instead

I starting getting this error on my Angular app: The Angular Compiler requires TypeScript >=2.7.2 and <2.8.0 but 2.8.3 was found …

angular typescript npm version global
Global name 'X' not defined

I looked in all kind of similar questions, but just couldn't find one that fitted my situation (or maybe there …

python global nameerror