easycoder 250317.1__py2.py3-none-any.whl → 250317.3__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 CHANGED
@@ -9,4 +9,4 @@ from .ec_program import *
9
9
  from .ec_timestamp import *
10
10
  from .ec_value import *
11
11
 
12
- __version__ = "250317.1"
12
+ __version__ = "250317.3"
easycoder/ec_core.py CHANGED
@@ -2389,11 +2389,17 @@ class Core(Handler):
2389
2389
 
2390
2390
  if self.getToken() == 'file':
2391
2391
  path = self.nextValue()
2392
- if self.peek() == 'exists':
2392
+ if self.nextIs('exists'):
2393
2393
  condition.type = 'exists'
2394
2394
  condition.path = path
2395
- self.nextToken()
2396
2395
  return condition
2396
+ if self.nextIs('does'):
2397
+ if self.nextIs('not'):
2398
+ if self.nextIs('exist'):
2399
+ condition.type = 'exists'
2400
+ condition.path = path
2401
+ condition.negate = not condition.negate
2402
+ return condition
2397
2403
  return None
2398
2404
 
2399
2405
  value = self.getValue()
@@ -2487,10 +2493,13 @@ class Core(Handler):
2487
2493
 
2488
2494
  def c_empty(self, condition):
2489
2495
  value = self.getRuntimeValue(condition.value1)
2490
- if value == None:
2491
- comparison = True
2492
- else:
2496
+ if type(value) == dict:
2493
2497
  comparison = len(value) == 0
2498
+ else:
2499
+ if value == None:
2500
+ comparison = True
2501
+ else:
2502
+ comparison = len(value) == 0
2494
2503
  return not comparison if condition.negate else comparison
2495
2504
 
2496
2505
  def c_ends(self, condition):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: easycoder
3
- Version: 250317.1
3
+ Version: 250317.3
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,17 +1,17 @@
1
1
  easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
- easycoder/__init__.py,sha256=i9vOIAO-m1MSvrt7lGPHDpUA4-z5gjSIOB-XDmhZzww,262
2
+ easycoder/__init__.py,sha256=2sL5P9Yq1wRITaC08bkCLOe2zL5iJldJEuEgLYJ4hq8,262
3
3
  easycoder/ec_classes.py,sha256=xnWBNak8oKydkFoxHLlq9wo3lIsB3aMnTDrqbtCfoWo,1512
4
4
  easycoder/ec_compiler.py,sha256=rtxFEWnhW0550MtWEDvYHOw9cYkeTcR0oG3t-kmgnBk,4795
5
5
  easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
- easycoder/ec_core.py,sha256=u4v023v26kjXU-_B46IpMeM8Lb2mUSLnpzmAs2Z83mI,88454
6
+ easycoder/ec_core.py,sha256=FvB4XMIhN--c_fCpB-E7jQhT3q52c2_2su5kwtjNbMo,88843
7
7
  easycoder/ec_graphics.py,sha256=sOQlSDpMMjwilLzGkC57-iHdaRqIUWl1SJxc0NbLs1M,14377
8
8
  easycoder/ec_gutils.py,sha256=yqu4RRQ6VdRkC5B2ADBYsXzgNu76dLnekd9aUjdEgPw,6399
9
9
  easycoder/ec_handler.py,sha256=K7nBuQTH8l0k8hX1o2b4KhTnhZHGdf2fkEuX4FJXJs8,2277
10
10
  easycoder/ec_program.py,sha256=Ms-GOtd22TjqvxXkNtfNer725WgQmZiHXlNHLlwMGvs,10103
11
11
  easycoder/ec_timestamp.py,sha256=_3QFJPzIWZ9Rzk3SQOQJ-gwmvB07pg78k23SPntoZtY,288
12
12
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
13
- easycoder-250317.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
14
- easycoder-250317.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
- easycoder-250317.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
16
- easycoder-250317.1.dist-info/METADATA,sha256=zDaRKetMg3ZGC3NoKWh5k1GK0LWI2O1DgjbZ_JHiaKY,6155
17
- easycoder-250317.1.dist-info/RECORD,,
13
+ easycoder-250317.3.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
14
+ easycoder-250317.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
+ easycoder-250317.3.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
16
+ easycoder-250317.3.dist-info/METADATA,sha256=IQEkRp9Z6moiTe7wc-EAnna6xXnfpXQRN4dflQ0Ty40,6155
17
+ easycoder-250317.3.dist-info/RECORD,,