Skip to content

Commit

Permalink
Added comment suggested by @mjp41 and fixed trailing space bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasWrigstad committed Jan 27, 2025
1 parent 7ff6238 commit a5ff8c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_using.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _():
result = c.get().value.value
if result != 200:
self.fail()

def test_thread_creation(self):
from threading import PyronaThread as T

Expand Down
3 changes: 3 additions & 0 deletions Lib/using.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def decorator(func):
return func()
return decorator

# TODO: this creates a normal Python thread and ensures that all its
# arguments are moved to the new thread. Eventually we should revisit
# this behaviour as we go multiple interpreters / multicore.
def PyronaThread(group=None, target=None, name=None,
args=(), kwargs=None, *, daemon=None):
# Only check when a program uses pyrona
Expand Down

0 comments on commit a5ff8c5

Please sign in to comment.