[PR #1032] [MERGED] Add IceCream to Debugging Tools/Other. #932

Closed
opened 2025-11-06 13:05:40 -06:00 by GiteaMirror · 0 comments
Owner

📋 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: masterHead: master


📝 Commits (1)

  • e655926 Add 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(). (short
for IceCream)

With arguments, ic() inspects itself and prints both its own arguments and
those argument's values.

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.

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.

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>
GiteaMirror added the pull-request label 2025-11-06 13:05:40 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#932