Commit Graph

9 Commits (7f3d417710343790c2fb4a529d894d87050cf87f)

Author SHA1 Message Date
Chris Clauss fba648eac1 Declare success_indicator as a local variable
Redo #313 on the correct branch.
Declare success_indicator as a local variable, not a GLOBAL CONSTANT.

* By convention, values that may change at runtime should not be in UPPERCASE.
* A global variable can be read from either with or without a global statement
* A global variable can be written to only when preceded by a global statement
```python 
>>> SUCCESS_INDICATOR = 0
>>> def read_from_global():
...     print(SUCCESS_INDICATOR)
...
>>> def write_to_declared__global():
...     global SUCCESS_INDICATOR
...     SUCCESS_INDICATOR += 1
...
>>> def write_to_undeclared__global():
...     SUCCESS_INDICATOR += 1
...
>>> read_from_global()
0
>>> write_to_declared__global()
>>> read_from_global()
1
>>> write_to_undeclared__global()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 2, in write_to_undeclared__global
UnboundLocalError: local variable 'SUCCESS_INDICATOR' referenced before assignment
```
2017-09-16 23:56:02 +07:00
Chris Simpkins a57c23094a minor comment update 2016-03-23 14:43:28 +07:00
Chris Simpkins 138922c7fb updated dev-versioner.py script to support uff16-big endian encoding of version name in name table ID 5, platform ID 3 2016-03-23 00:57:45 +07:00
Chris Simpkins 8b94a87b39 new v2.020;DEV-03192016 test builds 2016-03-19 02:04:12 +07:00
Chris Simpkins 50fd5d29e4 Version 2.020;DEV-03172016 builds 2016-03-17 14:05:42 +07:00
Chris Simpkins e9dccc6145 new DEV03162016 test builds 2016-03-16 21:55:32 +07:00
Chris Simpkins 955a49dc0a added new DEV test builds (03062016) 2016-03-06 21:22:28 +07:00
Chris Simpkins dd143a71da new test build version 2016-02-17 23:20:46 +07:00
Chris Simpkins 5e43f48752 moved the development build scripts 2016-01-26 00:51:56 +07:00