IceCream is a small Python library that makes it easy to debug variables,
expressions, and code execution with a single, simple function: ic(). (short
for IceCream)
With arguments, ic() inspects itself and prints both its own arguments and
those argument's values.
Without arguments, ic() inspects itself and prints the calling filename and
line number.
fromicecreamimporticdeffoo():ic()return'bar'foo()
Prints
ic| example.py:4 in foo()
See more IceCream magic and examples in IceCream's docs, here.
IceCream is well tested, permissively licensed, and supports Python 2, Python 3,
PyPy2, and PyPy3.
What's the difference between this Python project and similar ones?
IceCream's closest cousin is q (https://github.com/zestyping/q), but IceCream is
simpler, customizable, and actively maintained.
--
Anyone who agrees with this pull request could vote for it by adding a 👍 to
it, and usually, the maintainer will merge it when votes reach 20.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/vinta/awesome-python/pull/1032
**Author:** [@gruns](https://github.com/gruns)
**Created:** 3/8/2018
**Status:** ✅ Merged
**Merged:** 7/5/2018
**Merged by:** [@vinta](https://github.com/vinta)
**Base:** `master` ← **Head:** `master`
---
### 📝 Commits (1)
- [`e655926`](https://github.com/vinta/awesome-python/commit/e655926c499c3c223648fef155accef6907d0513) Add IceCream to Debugging Tools/Other.
### 📊 Changes
**1 file changed** (+1 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `README.md` (+1 -0)
</details>
### 📄 Description
## What is this Python project?
IceCream is a small Python library that makes it easy to debug variables,
expressions, and code execution with a single, simple function: `ic()`. (short
for IceCream)
With arguments, `ic()` inspects itself and prints both its own arguments and
those argument's values.
```python
from icecream import ic
def foo(i):
return i + 333
ic(foo(123))
```
Prints
```
ic| foo(123): 456
```
Without arguments, `ic()` inspects itself and prints the calling filename and
line number.
```python
from icecream import ic
def foo():
ic()
return 'bar'
foo()
```
Prints
```
ic| example.py:4 in foo()
```
See more IceCream magic and examples in IceCream's docs, [here](https://github.com/gruns/icecream).
IceCream is well tested, permissively licensed, and supports Python 2, Python 3,
PyPy2, and PyPy3.
## What's the difference between this Python project and similar ones?
IceCream's closest cousin is q (https://github.com/zestyping/q), but IceCream is
simpler, customizable, and actively maintained.
--
Anyone who agrees with this pull request could vote for it by adding a :+1: to
it, and usually, the maintainer will merge it when votes reach **20**.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/1032
Author: @gruns
Created: 3/8/2018
Status: ✅ Merged
Merged: 7/5/2018
Merged by: @vinta
Base:
master← Head:master📝 Commits (1)
e655926Add IceCream to Debugging Tools/Other.📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
What is this Python project?
IceCream is a small Python library that makes it easy to debug variables,
expressions, and code execution with a single, simple function:
ic(). (shortfor IceCream)
With arguments,
ic()inspects itself and prints both its own arguments andthose argument's values.
Prints
Without arguments,
ic()inspects itself and prints the calling filename andline number.
Prints
See more IceCream magic and examples in IceCream's docs, here.
IceCream is well tested, permissively licensed, and supports Python 2, Python 3,
PyPy2, and PyPy3.
What's the difference between this Python project and similar ones?
IceCream's closest cousin is q (https://github.com/zestyping/q), but IceCream is
simpler, customizable, and actively maintained.
--
Anyone who agrees with this pull request could vote for it by adding a 👍 to
it, and usually, the maintainer will merge it when votes reach 20.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.