Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 452375552
  • Loading branch information
PyGlove Authors authored and daiyip committed Jun 2, 2022
1 parent 0248376 commit b24f60c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"description": "'$status'",
"context": "github-actions/Build"
}'
}'
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Python interpreter. PyGlove is developed by Daiyi Peng and his colleagues in

## Hello PyGlove

```
```python
import pyglove as pg

@pg.symbolize
Expand All @@ -49,21 +49,23 @@ class Hello:

hello = Hello('World')
hello.greet()
```
> Hello, World!
```python
hello.rebind(subject='PyGlove')
hello.greet()
```
> Hello, PyGlove!
```python
hello.rebind(subject=pg.oneof(['World', 'PyGlove']))
for h in pg.iter(hello):
h.greet()
> Hello, World!
> Hello, PyGlove!
```
> Hello, World!<br>
> Hello, PyGlove!

## Citing PyGlove

Expand Down
3 changes: 0 additions & 3 deletions pyglove/.gitignore

This file was deleted.

0 comments on commit b24f60c

Please sign in to comment.