Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Write Your Python Program - CHANGELOG

* 2.2.0 (2026-03-17)
* Performance improvements
* Fix for multi-threaded environment
* 2.1.2 (2025-12-08)
* Fix for running a file that has the same name as a module from the stdlib
* Fix debugger invocation #194
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Write Your Python Program!",
"description": "A user friendly python environment for beginners",
"license": "See license in LICENSE",
"version": "2.1.2",
"version": "2.2.0",
"publisher": "StefanWehr",
"icon": "icon.png",
"engines": {
Expand Down
Empty file.
15 changes: 15 additions & 0 deletions python/file-test-data/extras/multi_thread_ok.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
START
started
WyppTypeError: '1'

Rückgabewert vom Typ `int` erwartet bei Aufruf der Funktion `foo`.
Aber der Aufruf gibt einen Wert vom Typ `str` zurück.

## Datei file-test-data/extras/multi_thread_ok.py
## Rückgabetyp deklariert in Zeile 4:

def foo(i: int) -> int:

## Aufruf in Zeile 9 verursacht das fehlerhafte return:

foo(1)
18 changes: 18 additions & 0 deletions python/file-test-data/extras/multi_thread_ok.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import wypp
import threading

def foo(i: int) -> int:
return str(i)

def doWork():
try:
foo(1)
except wypp.WyppTypeError as e:
print(e)

t = threading.Thread(target=doWork)
print('START')
t.start()
print('started')
t.join()

Loading