Skip to content

Commit 102fb1d

Browse files
committed
250915.1
1 parent 0f8894d commit 102fb1d

File tree

8 files changed

+17
-6
lines changed

8 files changed

+17
-6
lines changed
-56.1 KB
Binary file not shown.
56.2 KB
Binary file not shown.
2.67 MB
Binary file not shown.

easycoder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
from .ec_timestamp import *
1313
from .ec_value import *
1414

15-
__version__ = "250826.2"
15+
__version__ = "250915.1"

easycoder/ec_core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json, math, hashlib, threading, os, subprocess, time
22
import numbers, base64, binascii, random, requests, paramiko
3+
from copy import deepcopy
34
from psutil import Process
45
from datetime import datetime
56
from .ec_classes import FatalError, RuntimeWarning, RuntimeError, AssertionError, NoValueError, NoValueRuntimeError, Condition, Object
@@ -1076,7 +1077,7 @@ def k_push(self, command):
10761077
return False
10771078

10781079
def r_push(self, command):
1079-
value = self.getRuntimeValue(command['value'])
1080+
value = deepcopy(self.getRuntimeValue(command['value']))
10801081
stackRecord = self.getVariable(command['to'])
10811082
if stackRecord['keyword'] != 'stack':
10821083
RuntimeError(self.program, f'{stackRecord["name"]} is not a stack')
@@ -2430,7 +2431,7 @@ def v_newline(self, v):
24302431
def v_now(self, v):
24312432
value = {}
24322433
value['type'] = 'int'
2433-
value['content'] = getTimestamp(time.time())
2434+
value['content'] = int(time.time())
24342435
return value
24352436

24362437
def v_position(self, v):

easycoder/ec_pyside.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class ClickableLineEdit(QLineEdit):
8181
def __init__(self):
8282
super().__init__()
8383
self.multiline = False
84+
self.container = None
8485

8586
def setContainer(self, container):
8687
self.container = container
@@ -96,6 +97,7 @@ class ClickablePlainTextEdit(QPlainTextEdit):
9697
def __init__(self):
9798
super().__init__()
9899
self.multiline = True
100+
self.container = None
99101

100102
def setContainer(self, container):
101103
self.container = container

scripts/test.ecs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
variable X
2-
print X
1+
! test.ecs
2+
3+
script Test
4+
5+
variable TS
6+
variable Now
7+
8+
put the timestamp of `17:00` format `%H:%M` into TS
9+
put now into Now
10+
print TS cat ` ` cat Now
311

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from easycoder import Program
44

5-
Program('test.ecs').start()
5+
Program('/home/graham/dev/easycoder/easycoder-py/test.ecs').start()

0 commit comments

Comments
 (0)