-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update changelog for version 2.8.4 via release script
- Loading branch information
1 parent
a50add4
commit 9604651
Showing
6 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CompileFlags: | ||
Add: | ||
- --include-directory=/Users/brett.langdon/src/cpython/ | ||
- --include-directory=/Users/brett.langdon/src/cpython/include/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
def get_version(): | ||
return "2.9.0" | ||
|
||
|
||
version: str | ||
|
||
|
||
def __getattr__(name: str) -> str: | ||
if name == "version": | ||
global version | ||
version = get_version() | ||
return version | ||
raise AttributeError(name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import typing | ||
|
||
class Task: | ||
target: typing.Callable[[], None] | ||
on_shutdown: typing.Optional[typing.Callable[[], None]] | ||
|
||
def __init__( | ||
self, | ||
target: typing.Callable[[], None], | ||
on_shutdown: typing.Optional[typing.Callable[[], None]], | ||
): ... | ||
|
||
class Scheduler: | ||
def __init__(self, auto_start: bool = False): ... | ||
def register_task(self, task: Task, interval_ms: int) -> None: ... | ||
def unregister_task(self, task: Task) -> None: ... | ||
def schedule( | ||
self, | ||
interval_ms: float, | ||
target: typing.Callable[[], None], | ||
on_shutdown: typing.Optional[typing.Callable[[], None]], | ||
) -> None: ... | ||
def start(self) -> None: ... | ||
def join(self) -> None: ... | ||
def stop(self) -> None: ... | ||
def execute_all(self) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import time | ||
|
||
from ddtrace import tracer | ||
|
||
|
||
for _ in range(100): | ||
with tracer.trace("root"): | ||
for _ in range(10): | ||
with tracer.trace("child1"): | ||
time.sleep(0.001) | ||
for _ in range(10): | ||
with tracer.trace("child2"): | ||
time.sleep(0.002) | ||
|
||
print("done") |