mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
some fix
This commit is contained in:
parent
372446c1d2
commit
ba09567e08
@ -45,7 +45,7 @@ You have two options to integrate pkpy into your project.
|
|||||||
#### Use the single header file
|
#### Use the single header file
|
||||||
|
|
||||||
Download the `pocketpy.h` on our [GitHub Release](https://github.com/pocketpy/pocketpy/releases) page.
|
Download the `pocketpy.h` on our [GitHub Release](https://github.com/pocketpy/pocketpy/releases) page.
|
||||||
And `#include` it in your project. It is recommended to use the latest dev version.
|
And `#include` it in your project. The header can only be included once.
|
||||||
|
|
||||||
#### Use CMake
|
#### Use CMake
|
||||||
|
|
||||||
|
@ -3,8 +3,11 @@ icon: dot
|
|||||||
title: Debugging
|
title: Debugging
|
||||||
---
|
---
|
||||||
|
|
||||||
After `v1.4.5`, you can invoke `breakpoint()` in your python code
|
!!!
|
||||||
to start a PDB-like session.
|
This feature is available in `v1.4.5` or higher.
|
||||||
|
!!!
|
||||||
|
|
||||||
|
You can invoke `breakpoint()` in your python code to start a PDB-like session.
|
||||||
|
|
||||||
The following commands are supported:
|
The following commands are supported:
|
||||||
|
|
||||||
|
@ -5,10 +5,6 @@ title: Goto Statement
|
|||||||
|
|
||||||
pkpy supports goto/label just like C. You are allowed to **change the control flow unconditionally**.
|
pkpy supports goto/label just like C. You are allowed to **change the control flow unconditionally**.
|
||||||
|
|
||||||
!!!
|
|
||||||
This feature is stable after v1.2.2.
|
|
||||||
!!!
|
|
||||||
|
|
||||||
## Define a label
|
## Define a label
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -8,11 +8,6 @@ Unlike cpython, pkpy's `int` is of limited precision (64-bit).
|
|||||||
For arbitrary sized integers, we provide a builtin `long` type, just like python2's `long`.
|
For arbitrary sized integers, we provide a builtin `long` type, just like python2's `long`.
|
||||||
`long` is implemented via pure python in [_long.py](https://github.com/pocketpy/pocketpy/blob/main/python/_long.py).
|
`long` is implemented via pure python in [_long.py](https://github.com/pocketpy/pocketpy/blob/main/python/_long.py).
|
||||||
|
|
||||||
!!!
|
|
||||||
This feature is still under development.
|
|
||||||
Some operations are missing, and some operations are not optimized.
|
|
||||||
!!!
|
|
||||||
|
|
||||||
### Create a long object
|
### Create a long object
|
||||||
|
|
||||||
You can use `L` suffix to create a `long` literal from a decimal literal.
|
You can use `L` suffix to create a `long` literal from a decimal literal.
|
||||||
|
@ -69,4 +69,4 @@ std::cout << result << std::endl; // 3
|
|||||||
#### `void setattr(PyObject*, StrName, PyObject*)`
|
#### `void setattr(PyObject*, StrName, PyObject*)`
|
||||||
|
|
||||||
This method is equivalent to `setattr` in python.
|
This method is equivalent to `setattr` in python.
|
||||||
It raises `TypeError` if the object does not support attribute assignment.
|
It raises `TypeError` if the object does not support attribute assignment.
|
||||||
|
@ -9,7 +9,7 @@ You have two options to integrate pkpy into your project.
|
|||||||
#### Use the single header file
|
#### Use the single header file
|
||||||
|
|
||||||
Download the `pocketpy.h` on our [GitHub Release](https://github.com/pocketpy/pocketpy/releases) page.
|
Download the `pocketpy.h` on our [GitHub Release](https://github.com/pocketpy/pocketpy/releases) page.
|
||||||
And `#include` it in your project. It is recommended to use the latest dev version.
|
And `#include` it in your project. The header can only be included once.
|
||||||
|
|
||||||
#### Use CMake
|
#### Use CMake
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ output: .retype
|
|||||||
url: https://pocketpy.dev
|
url: https://pocketpy.dev
|
||||||
branding:
|
branding:
|
||||||
title: pocketpy
|
title: pocketpy
|
||||||
label: v1.4.5
|
label: v1.4.6
|
||||||
logo: "./static/logo.png"
|
logo: "./static/logo.png"
|
||||||
favicon: "./static/logo.png"
|
favicon: "./static/logo.png"
|
||||||
meta:
|
meta:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user