When compiling python to javascript using transcrypt I've noticed the syntax error reporting is more vague than the standard python syntax error reporting. Since the code cannot be compiled using the standard python compiler as it would throw syntax errors due to the transcrypt syntax is there a way to get more specific syntax error reporting that resembles the python compiler?
When compiling python using transcrypt is it possible to get standard python error logging?
209 Views Asked by rigger12 At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in TRANSCRYPT
- Transcrypt is a compiler that translates Python into JavaScript ahead-of-time and dont working with sqlite3?
- Transcrypt and SVG creation
- Transcrypt and SVG creation here: defs
- Does Transcrypt support smtplib?
- how to setup transcrypt
- Can you run Transcrypt and JavaScript at the same time?
- Transcrypt: How to check for empty list?
- parcel-plugin-transcrypt fails with 'Error: Cannot find module 'parcel-bundler/src/Logger'
- How can I read the contents of an URL with Transcrypt? Where is urlopen() located?
- Can't import sys or io
- How to import js modules in Python with Transcrypt
- Get output of subprocess without garbage
- Overriding methods using Transcrypt
- Can Transcrypt produce React class components?
- Iterable emulation in transcrypt
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In some cases: yes, in general: no.
Transcrypt syntax IS Python syntax, since both use CPython's ast module to parse the source code. But Transcrypt programs may call JavaScript code, which won't work in CPython. So while many Transcrypt modules can also be used with CPython, the ones directly using JavaScript can not. For those modules, the (syntax and semantics) error reporting of the CPython interpreter is unavailable.
One note about the __pragma__'s. Indeed even those syntactically are simply function calls, although semantically they work at compile time.
Note that running Transcrypt modules with the CPython interpreter is the core of what Transcrypt's back-to-back autotesting system is all about. Without this possibility it would be very hard to avoid regression bugs in new releases.
Correct Transcrypt behavior is simply defined as "what CPython would do"...