You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Classic OO with multiple inheritance in JavaScript**
@@ -47,13 +47,13 @@ Main differences with CPython
47
47
License
48
48
=======
49
49
50
-
Copyright 2014 - 2018 Jacques de Hooge, GEATEC engineering, www.geatec.com
50
+
Copyright 2014 - 2023 Jacques de Hooge, GEATEC engineering, www.geatec.com
51
51
52
52
Licensed under the Apache License, Version 2.0 (the "License");
53
53
you may not use this file except in compliance with the License.
54
54
You may obtain a copy of the License at
55
55
56
-
http://www.apache.org/licenses/LICENSE-2.0
56
+
https://www.apache.org/licenses/LICENSE-2.0
57
57
58
58
Unless required by applicable law or agreed to in writing, software
59
59
distributed under the License is distributed on an "AS IS" BASIS,
@@ -67,6 +67,7 @@ How to contribute
67
67
Transcrypt started out as a personal repo, owned by Jacques de Hooge.
68
68
As the project caught on and the number of people contributing issues, ideas and code grew,
69
69
the repo was transferred to the QQuick organisation, to be able to form a developer team on GitHub.
70
+
Then more recently, to insure its continued development, the GitHub repo has been moved to `TranscryptOrg <https://github.com/TranscryptOrg>`_, where Transcrypt and related projects can be more centrally located.
70
71
71
72
There was also a clear message in this: Transcrypt isn't owned by anyone in particular.
72
73
It is the collective property of everyone using it or contributing to it.
@@ -86,7 +87,7 @@ A special place is taken by implementing standard libraries. While Transcrypt mo
86
87
availability of a limited number of standard libraries will help acceptance by Python programmers. So you're most welcome to make a contribution here.
87
88
The design goal again is: better 90% complete, fast, small, and reliable, than 100% complete, slow, bulky and buggy.
88
89
If you contribute a library, please also contribute an autotest (see docs) and some documentation for it.
89
-
The supported platforms are Windows and Linux (and, with that, OsX).
90
+
The supported platforms are Windows and Linux (and, with that, OSX).
90
91
91
92
While being open and respectful to any good ideas, the final say as to what gets in and what doesn't, is with Jacques.
92
93
So this is a dictatorial rather than a democratic project.
@@ -98,144 +99,21 @@ In that case be sure to add the keyword Transcrypt to allow people to find your
98
99
Making your package pip-installable will also help it to catch on.
99
100
Contributing packages via PyPi of course means total freedom for the developer.
The icon above shows the outcome of the continous integration test that is done on Linux after each commit.
108
-
The test consists of running a set of testlets, systematically covering all facilities of Transcrypt. Each testlet performs an automated back to back test against CPython.
109
-
110
104
The full set of testlets is described in the documentation and comes with the distribution.
111
-
Since the branching model has been deliberately kept simple, continuous integration may be transiently broken.
112
-
In that case you can use the latest passing version, that you'll find by clicking on the icon above and then on 'Build History'.
113
-
114
-
Each release, on the other hand, is preceded by at least the following tests:
105
+
Each release is preceded by at least the following tests:
115
106
116
-
- The automated back to back test described above, not only on Linux but also on Windows and, in case of relevant issues, on OsX.
107
+
- The automated back to back test described above, not only on Linux but also on Windows and, in case of relevant issues, on OSX.
117
108
- Automated compilation of the manual tests, human exercising of the resulting applications and a visual check of the results.
118
109
- Automated compilation of the demo's, human exercising of the resulting applications and a visual check of the results.
119
110
- A documentation build, followed by a visual sample check.
120
111
121
112
What's new in the latest commits
122
113
================================
123
114
124
-
- Parcel bundler demo simplified and added to demo directory, included in shipment test
125
-
- Executable comments: skip code either in CPython or, with the skip pragma, in Transcrypt (issue 602)
126
-
- Integration with Parcel bundler incl. auto-reload (issue 596)
- Everything written in __target__ subdir rather than installation dir
146
-
- Python modules now implemented as ES6 modules pervasively, multiple apps per page, runtime and libs only once
147
-
- String formatting mini language added as an option (-sf / --sform switch) + autotest
148
-
- Div internal improvements and fixes
149
-
- Time module made suitable for use in combination with Node.js
150
-
- Single line pragma's (issue 460) + doc + autotest
151
-
- Negative list indices allowed when operator overloading is enabled (issue 460)
152
-
- Added pragma's and switches jscall and nojscall, 30% speedup, use only locally for insulated methods in a class
153
-
- Fix for callable (None) (issue 450)
154
-
- Start made with /tutorials/baseline mini Python tutorial
155
-
- Fix for decorator from module (issue 448)
156
-
- Examples for datetime, time and re added to docs
157
-
- Module datetime added (pr 435)
158
-
- Conjugate of real now compiled correctly
159
-
- Property decorators now supported for getters and setters
160
-
- Metaclasses and method decorators now execute in correct order (issue 430)
161
-
- Complex numbers now support comparison operators and conjugate
162
-
- Max and min now accept sequences (issue 331)
163
-
- Aliasers more completely dealt with in combination with keyword args and getattr, setattr, hasattr, delattr (issue 414)
164
-
- Compiler switch -xt / --xtiny added to considerably reduce size of runtime if operator overloading isn't used
165
-
- Compiler switch -dn / --dnostrip added to avoid stripping comments in __builtin__ and __core__
166
-
- Comments in __builtin__ and __core__ JavaScript-only modules are now stripped by default
167
-
- Initial support for bytes and bytearrays added (issue 405 a.o.)
168
-
- Remark about heuristic interpretation of dictionary keys added to docs (issue 401)
169
-
- Fisher-Yates shuffle added to random module
170
-
- Exception type TypeError added, currently unused by Transcrypt itself (issue 365)
171
-
- Name of main program file now really doesn't need .py extension anymore... (issue 416, bugfix)
172
-
- Name of main program file doesn't need .py extension anymore (issue 416)
173
-
- DRY implementation of __module__, lean enough to remove the -mc / --modclass switch
174
-
- -mc / --modclass switch now controls generation of __module__ to prevent code bloat
175
-
- Issue 397 a.o., __module__ attribute added to classes, __name__ of main module is now '__main__',
176
-
- Enhancement for issue 399: __pragma__ ('keycheck') + command line switch + autotest
177
-
- Fixes for issues 398, 412, 413 + autotests
178
-
- __pragma__ ('xtrans', ...) added to facilitate partial translation by external tools (EXPERIMENTAL, issue 404, e.g. to deal with JSX)
179
-
- Default messages for ValueError and KeyError removed for better CPython compatibility (pr 395)
180
-
- Small fix of re module (issue 392)
181
-
- Conversion from bool to int now succeeds (issue 391)
182
-
- Overloadable operators __truediv__ and __floordiv__ added (issue 389)
183
-
- Class methods, static methods, class decorators, method decorators and static method decorators
184
-
- If an object doesn't have a specific string representation, function repr and str now return <object of type: object> rather than ???, and this case isn't reported as an error anymore
185
-
- Function len now calls __len__ if it exists (pr 378)
186
-
- More Pythonic truthyness when using -t (or --tconv) switch (pr 367 a.o.)
187
-
- Source file spec on command line can now be a full path (free afer pr #362)
188
-
- The zip function now also works for finite iterators (issue #369) + autotest
189
-
- -xc (or --confimp) switch added, to confine imported names to the directly importing module (so prevent imports from being be transitive)
190
-
- Cleaned up some generated files
191
-
- Module search order fixed, continuous integration functional again
192
-
- Regular expressions autotest workaround added for Python 3.6 enums
193
-
- Async/await added + manual test
194
-
- Made Python 3.6 the default in several places
195
-
- Pragma and command line switch added to augment module search path
196
-
- Better example of use of __getattr__ and __setattr__ added to autotest suite
197
-
- Method dict.values () added
198
-
- Demo added for three.js with encapsulated constructors
199
-
- Doc link repaired
200
-
- Fix for #317: Wrong exception type for aList ['aStringLiteral']
201
-
- Enhancement for #316: filter doesn't support None for func
202
-
- Enhancement for #314: float (' ') returns 0
203
-
- Enhancement for #310: hasattr () raises 'Uncaught TypeError'
204
-
- Enhancement for # 306: dict.popitem () added + autotest
205
-
- Integrated with newest API of mypy
206
-
- Fix for issue #304: Invalid JS when using global --opov flag
- Operator \*\*= added, a \*\*= b converted to a = a \*\* b
213
-
- Operator @= added, M3 @= M2 converted to M3 = M3 @ M2, same as for other augmented assignment ops
214
-
- Compilation error report now contains detailed import sequence
215
-
- Enhancement for issue #281: tuple keys allowed for dictionaries
216
-
- Enhancement for issue #26: super () added for unique path to single ancestor method
217
-
- Fix for issue #279: TypeError exists both in Python and JavaScrip, needs alias
218
-
- Fix for issue #277: Alias needed for new
219
-
- Fix for issue #274: Cannot delete unqualified property in strict mode
220
-
- Fix for issue #268: Module import trace missing in error messages
221
-
- Autotest for regular expression module made part of shipment test and CI test. Some parts commented out, marked with @JdeH
222
-
- Documentation updated, also on-line
223
-
- Fix for issue #256: Parenthesis aren't translated (before dot, e.g. in return)
224
-
- Option -b (or --blind) added to shipment test. Running it with -c (or --clean) -b (or --blind) will not show anything, just clean repo by removing all generated files. Meant for usage before a commit.
225
-
- [Release Paris (PyPi v3.6.4, GitHub #14): Support for Python 3.6, div. fixes and enhancements]
226
-
- Function globals () is now available to dynamically get and set module attribs, issue #251
227
-
- Demo for cyclejs was added, also to the shipment test
228
-
- Enhancement for issue #247: One web page can now hold multiple Transcrypt apps
229
-
- Regular expression module finished! (issue #98)
230
-
- Fixes for issues #254 and #252, both having to do with sourcemap being one line off in else clause
231
-
- Emulation of sync console I/O for educational purposes, text only
232
-
- Autotest output now in tabular form for easy comparison, incl. source line nrs
233
-
- Fix for issue #178: List Comprehensions / Operator Precedence Bug
234
-
- Div. enhancements and fixes for CI tests
235
-
- Enhancement for issue #139: 'yield from' now supported.
236
-
- Enhancement for issue #89 and #149: __getattr__ and __setattr__ are now supported, requiring the -e 6 switch. Testlet 'proxies' added.
237
-
- New aliases added to prevent name clashes. The orignal name can always be reached by prepending \js_. So e.g. if you need 'clear' in JS, use 'js_clear' in Python. A complete list of aliases is in the docs. Any alias can be undefined to maintain backward compatibility, e.g __pragma__ ('noalias', 'clear').
238
-
- Enhancement for issue #169: Add support for float('inf') and float('-inf')
115
+
- Code generator adapted to Python 3.9 parser
116
+
- Updated README and packaging configuration
239
117
240
118
Known bugs in latest commits
241
119
============================
@@ -245,6 +123,5 @@ None
245
123
Other packages you might like
246
124
=============================
247
125
248
-
- Htmltree - effective, minimalistic HTML generator running both on the server using CPython and Bottle and on the client using Transcrypt: https://github.com/Michael-F-Ellis/NearlyPurePythonWebAppDemo (demo) and https://github.com/Michael-F-Ellis/htmltree (package).
249
126
- Numscrypt - port of a microscopic part of NumPy to Transcrypt, using JavaScript typed arrays: https://github.com/QQuick/Numscrypt
250
127
- SimPyLC - PLC simulator with Arduino code generation: https://github.com/QQuick/SimPyLC
0 commit comments