easycoder 250621.1__py2.py3-none-any.whl → 250622.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 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__ = "250621.1"
12
+ __version__ = "250622.1"
easycoder/ec_core.py CHANGED
@@ -1748,6 +1748,24 @@ class Core(Handler):
1748
1748
  self.add(command)
1749
1749
  return self.nextPC()
1750
1750
 
1751
+ # Trim whitespace from a variable
1752
+ def k_trim(self, command):
1753
+ if self.nextIsSymbol():
1754
+ record = self.getSymbolRecord()
1755
+ if record['hasValue']:
1756
+ command['name'] = record['name']
1757
+ self.add(command)
1758
+ return True
1759
+ return False
1760
+
1761
+ def r_trim(self, command):
1762
+ record = self.getVariable(command['name'])
1763
+ value = record['value'][record['index']]
1764
+ if value['type'] == 'text':
1765
+ content = value['content']
1766
+ value['content'] = content.strip()
1767
+ return self.nextPC()
1768
+
1751
1769
  # Truncate a file
1752
1770
  def k_truncate(self, command):
1753
1771
  if self.nextIsSymbol():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easycoder
3
- Version: 250621.1
3
+ Version: 250622.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,16 +1,16 @@
1
1
  easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
- easycoder/__init__.py,sha256=ZLMQh33Kzc2Oj3UwsXzoige_KWbSpB4xzoZ6wVy9uIo,262
2
+ easycoder/__init__.py,sha256=hMYnb_QFsQ2sVls6TyzREEcKy1QBK_oEPMRhOW1SIok,262
3
3
  easycoder/ec_classes.py,sha256=L6-6yWHDHw8yF9TGL4WWc4p1aUyXzYz6Gom7jJ43h8o,1823
4
4
  easycoder/ec_compiler.py,sha256=6X9Sy5hr9-Ek36XqWrHJ8Ct1fE5sw2hBLKKFMh2RfRs,5130
5
5
  easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
- easycoder/ec_core.py,sha256=EVXamc0uEF07N-LF7CBqJqYlJEZFRFimlmKp3Ps0Esg,98584
6
+ easycoder/ec_core.py,sha256=_r0AAlVPJ80syZkos6YhHuolHv7jsZRxB-LfU3U3t7c,99180
7
7
  easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
8
8
  easycoder/ec_program.py,sha256=IDpfq9oghFJMJyRD9uab31VOP5MOF4M7kcUVfDn7d4I,9992
9
9
  easycoder/ec_pyside.py,sha256=1rby0Vbc-IffqdVakKcx1q39wma88ibwI14YuR6bp9k,40317
10
10
  easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
11
11
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
12
- easycoder-250621.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
13
- easycoder-250621.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
- easycoder-250621.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
15
- easycoder-250621.1.dist-info/METADATA,sha256=yWPQEheXBUbqr6D2e3gmJN-YszVCj07gHMuOlq-JrYo,6897
16
- easycoder-250621.1.dist-info/RECORD,,
12
+ easycoder-250622.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
13
+ easycoder-250622.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
+ easycoder-250622.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
15
+ easycoder-250622.1.dist-info/METADATA,sha256=WYp6DjCtgGbZQ-J-3FIS8Cbzs7iy5sjY7qRNScLjWtY,6897
16
+ easycoder-250622.1.dist-info/RECORD,,