Skip to content

Commit

Permalink
Update README and playground for exec_code
Browse files Browse the repository at this point in the history
  • Loading branch information
pwwang committed Nov 29, 2023
1 parent 485ad8e commit b3f7bb2
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 91 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ celerybeat-schedule

# virtualenv
venv/
.venv/
ENV/

# Spyder project settings
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ class Obj:
self.argnames.append(argname('arg', func=self.receive))

obj = Obj()
# exec('obj.receive(1)') # VarnameRetrievingError
# exec('obj.receive(1)') # Error
exec_code('obj.receive(1)')
exec_code('obj.receive(2)')
obj.argnames #
obj.argnames # ['1', '2']
```

## Reliability and limitations
Expand Down
Loading

0 comments on commit b3f7bb2

Please sign in to comment.