scratch-syntax 0.6.0__tar.gz → 0.6.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scratch_syntax
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: A syntax library designed to help scratch users transition to python
5
5
  Author-email: Cade <cadey.matignas@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/cadeymatignas-source/scratch_syntax
@@ -16,7 +16,7 @@ Dynamic: license-file
16
16
 
17
17
  ## This is a custom Python library designed make python syntax more like scratch.
18
18
 
19
- ## Instalization
19
+ # Installation
20
20
 
21
21
  ```bash
22
22
 
@@ -55,15 +55,17 @@ pip install --upgrade scratch_syntax
55
55
 
56
56
  ## Update 0.6.0. ReRun's UPDATE!!!
57
57
  * The return of classic repeats... in a different way!!!
58
- * Added new repeat function!!!
58
+ * Added new repeat_until() function!!!
59
59
  * Now needs the lambda function. etc:
60
60
  ```bash
61
61
 
62
62
  repeat(lambda: say("hello!"), 5)
63
+ forever(lambda: say("hiya!"))
64
+ repeat_until(lambda: say("do you like this?"), condition())
63
65
 
64
66
  ```
65
67
 
66
- also btw dont forget to put from scratch_syntax import * so the functions run correctly as is
68
+ Also btw don't forget to put from scratch_syntax import * so the functions run correctly as is
67
69
 
68
70
  # All Functions
69
71
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## This is a custom Python library designed make python syntax more like scratch.
4
4
 
5
- ## Instalization
5
+ # Installation
6
6
 
7
7
  ```bash
8
8
 
@@ -41,15 +41,17 @@ pip install --upgrade scratch_syntax
41
41
 
42
42
  ## Update 0.6.0. ReRun's UPDATE!!!
43
43
  * The return of classic repeats... in a different way!!!
44
- * Added new repeat function!!!
44
+ * Added new repeat_until() function!!!
45
45
  * Now needs the lambda function. etc:
46
46
  ```bash
47
47
 
48
48
  repeat(lambda: say("hello!"), 5)
49
+ forever(lambda: say("hiya!"))
50
+ repeat_until(lambda: say("do you like this?"), condition())
49
51
 
50
52
  ```
51
53
 
52
- also btw dont forget to put from scratch_syntax import * so the functions run correctly as is
54
+ Also btw don't forget to put from scratch_syntax import * so the functions run correctly as is
53
55
 
54
56
  # All Functions
55
57
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "scratch_syntax"
7
- version = "0.6.0"
7
+ version = "0.6.1"
8
8
  authors = [
9
9
  { name="Cade", email="cadey.matignas@gmail.com" },
10
10
  ]
@@ -74,8 +74,7 @@ def forever(actiono):
74
74
 
75
75
 
76
76
  def repeat_until(actionon, condition):
77
- while not condition:
77
+ while True:
78
78
  actionon()
79
-
80
-
81
- # For anyone reading the code, I skipped the forever and repeat functions not because I wanted to but because it doesnt work: Cade
79
+ if condition():
80
+ break
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scratch_syntax
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: A syntax library designed to help scratch users transition to python
5
5
  Author-email: Cade <cadey.matignas@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/cadeymatignas-source/scratch_syntax
@@ -16,7 +16,7 @@ Dynamic: license-file
16
16
 
17
17
  ## This is a custom Python library designed make python syntax more like scratch.
18
18
 
19
- ## Instalization
19
+ # Installation
20
20
 
21
21
  ```bash
22
22
 
@@ -55,15 +55,17 @@ pip install --upgrade scratch_syntax
55
55
 
56
56
  ## Update 0.6.0. ReRun's UPDATE!!!
57
57
  * The return of classic repeats... in a different way!!!
58
- * Added new repeat function!!!
58
+ * Added new repeat_until() function!!!
59
59
  * Now needs the lambda function. etc:
60
60
  ```bash
61
61
 
62
62
  repeat(lambda: say("hello!"), 5)
63
+ forever(lambda: say("hiya!"))
64
+ repeat_until(lambda: say("do you like this?"), condition())
63
65
 
64
66
  ```
65
67
 
66
- also btw dont forget to put from scratch_syntax import * so the functions run correctly as is
68
+ Also btw don't forget to put from scratch_syntax import * so the functions run correctly as is
67
69
 
68
70
  # All Functions
69
71
 
File without changes
File without changes