easycoder 250920.1__py2.py3-none-any.whl → 251004.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of easycoder might be problematic. Click here for more details.
- easycoder/__init__.py +1 -1
- easycoder/ec_core.py +10 -8
- easycoder/ec_program.py +4 -2
- {easycoder-250920.1.dist-info → easycoder-251004.1.dist-info}/METADATA +1 -1
- {easycoder-250920.1.dist-info → easycoder-251004.1.dist-info}/RECORD +8 -8
- {easycoder-250920.1.dist-info → easycoder-251004.1.dist-info}/WHEEL +0 -0
- {easycoder-250920.1.dist-info → easycoder-251004.1.dist-info}/entry_points.txt +0 -0
- {easycoder-250920.1.dist-info → easycoder-251004.1.dist-info}/licenses/LICENSE +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_core.py
CHANGED
|
@@ -160,23 +160,25 @@ class Core(Handler):
|
|
|
160
160
|
else:
|
|
161
161
|
return self.compileFromHere(['end'])
|
|
162
162
|
|
|
163
|
-
# Clear (set false)
|
|
164
163
|
# clear {variable}
|
|
165
164
|
def k_clear(self, command):
|
|
166
165
|
if self.nextIsSymbol():
|
|
167
166
|
target = self.getSymbolRecord()
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
command['target'] = target['name']
|
|
168
|
+
if target['hasValue'] or target['keyword'] == 'ssh':
|
|
170
169
|
self.add(command)
|
|
171
170
|
return True
|
|
172
171
|
return False
|
|
173
172
|
|
|
174
173
|
def r_clear(self, command):
|
|
175
174
|
target = self.getVariable(command['target'])
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
if target['keyword'] == 'ssh':
|
|
176
|
+
target['ssh'] = None
|
|
177
|
+
else:
|
|
178
|
+
val = {}
|
|
179
|
+
val['type'] = 'boolean'
|
|
180
|
+
val['content'] = False
|
|
181
|
+
self.putSymbolValue(target, val)
|
|
180
182
|
return self.nextPC()
|
|
181
183
|
|
|
182
184
|
# Close a file
|
|
@@ -2528,7 +2530,7 @@ class Core(Handler):
|
|
|
2528
2530
|
elif keyword == 'ssh':
|
|
2529
2531
|
v = {}
|
|
2530
2532
|
v['type'] = 'boolean'
|
|
2531
|
-
v['content'] = True if 'ssh' in symbolRecord else False
|
|
2533
|
+
v['content'] = True if 'ssh' in symbolRecord and symbolRecord['ssh'] != None else False
|
|
2532
2534
|
return v
|
|
2533
2535
|
else:
|
|
2534
2536
|
return None
|
easycoder/ec_program.py
CHANGED
|
@@ -200,12 +200,14 @@ class Program:
|
|
|
200
200
|
def getSymbolContent(self, symbolRecord):
|
|
201
201
|
if len(symbolRecord['value']) == 0:
|
|
202
202
|
return None
|
|
203
|
-
return symbolRecord['value'][symbolRecord['index']]
|
|
203
|
+
try: return symbolRecord['value'][symbolRecord['index']]
|
|
204
|
+
except: RuntimeError(self, f'Cannot get content of symbol "{symbolRecord["name"]}"')
|
|
204
205
|
|
|
205
206
|
def getSymbolValue(self, symbolRecord):
|
|
206
207
|
if len(symbolRecord['value']) == 0:
|
|
207
208
|
return None
|
|
208
|
-
value = symbolRecord['value'][symbolRecord['index']]
|
|
209
|
+
try: value = symbolRecord['value'][symbolRecord['index']]
|
|
210
|
+
except: RuntimeError(self, f'Cannot get value of symbol "{symbolRecord["name"]}"')
|
|
209
211
|
copy = deepcopy(value)
|
|
210
212
|
return copy
|
|
211
213
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 251004.1
|
|
4
4
|
Summary: Rapid scripting in English
|
|
5
5
|
Keywords: compiler,scripting,prototyping,programming,coding,python,low code,hypertalk,computer language,learn to code
|
|
6
6
|
Author-email: Graham Trott <gtanyware@gmail.com>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
easycoder/__init__.py,sha256=
|
|
1
|
+
easycoder/__init__.py,sha256=q9lIBFHBsL7m8IFo13YFUlg_4clZurFfRFYX7kZnBCo,339
|
|
2
2
|
easycoder/close.png,sha256=3B9ueRNtEu9E4QNmZhdyC4VL6uqKvGmdfeFxIV9aO_Y,9847
|
|
3
3
|
easycoder/ec_border.py,sha256=KpOy0Jq8jI_6DYGo4jaFvoBP_jTIoAYWrmuHhl-FXA4,2355
|
|
4
4
|
easycoder/ec_classes.py,sha256=bejrby7mLHTeAQXhhz-1l8iv6LSbNSy30lW21KJKjXE,1832
|
|
5
5
|
easycoder/ec_compiler.py,sha256=LYwGNs8dcHKXI_nnu1sVFe1N36vjvylcUO_tX_bLjrk,5359
|
|
6
6
|
easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
|
|
7
|
-
easycoder/ec_core.py,sha256=
|
|
7
|
+
easycoder/ec_core.py,sha256=VTAnhdLp3ftZ1tLPhovKX0PQ1CplmC9x17jH_DfrJsQ,99650
|
|
8
8
|
easycoder/ec_handler.py,sha256=ED08ULiOlZkcs4XHxAguvdPZw_dFXuwGDFLbFuo0kLs,2317
|
|
9
9
|
easycoder/ec_keyboard.py,sha256=ru-HdWolBMZJPyck2s72In9tXFeLJQSPtR1TpjmIo90,18350
|
|
10
|
-
easycoder/ec_program.py,sha256=
|
|
10
|
+
easycoder/ec_program.py,sha256=srVDRlELMElvnkjxmREczUVPkvPXPvanZglN4hKreLI,10324
|
|
11
11
|
easycoder/ec_pyside.py,sha256=bnGwnlYyN-4KI4ECpocrgVx2uGO_9aDrDZNjT4AK7ak,54148
|
|
12
12
|
easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
|
|
13
13
|
easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
|
|
14
14
|
easycoder/tick.png,sha256=OedASXJJTYvnza4J6Kv5m5lz6DrBfy667zX_WGgtbmM,9127
|
|
15
|
-
easycoder-
|
|
16
|
-
easycoder-
|
|
17
|
-
easycoder-
|
|
18
|
-
easycoder-
|
|
19
|
-
easycoder-
|
|
15
|
+
easycoder-251004.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
16
|
+
easycoder-251004.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
17
|
+
easycoder-251004.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
|
|
18
|
+
easycoder-251004.1.dist-info/METADATA,sha256=O3CZb_23D8wHS9r_IMN0TLjZVRg1JMgq_SgOuxU6nb8,6897
|
|
19
|
+
easycoder-251004.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|