diff --git a/docs/features/differences.md b/docs/features/differences.md index 338c68ed..b07d253f 100644 --- a/docs/features/differences.md +++ b/docs/features/differences.md @@ -60,11 +60,10 @@ assert next(a) == 1 try: next(a) - exit(1) except StopIteration: - pass + print("a is exhausted") ``` !!! -Do not change `builtins.next`. It will break some internal functions which rely on `StopIteration` as return value. +Do not change `builtins.next`. It will break internal functions which rely on `StopIteration` as return value. !!! \ No newline at end of file diff --git a/docs/features/precompile.md b/docs/features/precompile.md index b249d5ff..46e54778 100644 --- a/docs/features/precompile.md +++ b/docs/features/precompile.md @@ -119,7 +119,7 @@ StackOverflowError String compilation has no guarantee of compatibility between different versions of pkpy. !!! -You can use this snnipet to convert every python file in a directory into precompiled strings: +You can use this snnipet to convert every python file in a directory into precompiled strings. ```python # precompile.py @@ -127,6 +127,7 @@ import sys, os def precompile(filepath: str): """Precompile a python file inplace""" + print(filepath) with open(filepath, 'r') as f: source = f.read() source = compile(source, filepath, 'exec') diff --git a/docs/retype.yml b/docs/retype.yml index 334974c0..af69f4be 100644 --- a/docs/retype.yml +++ b/docs/retype.yml @@ -3,7 +3,7 @@ output: .retype url: https://pocketpy.dev branding: title: pocketpy - label: v1.4.4 + label: v1.4.5 logo: "./static/logo.png" favicon: "./static/logo.png" meta: