Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Icecream separating strings at whitespaces #206

Open
JosuaCarl opened this issue Jan 28, 2025 · 0 comments
Open

Icecream separating strings at whitespaces #206

JosuaCarl opened this issue Jan 28, 2025 · 0 comments

Comments

@JosuaCarl
Copy link

When I use

from icecream import ic
ic('A\\veryvery\\long\\path\\to\\no\\even\\longer\\HelloWorld _01_Heritisfinallythe file.file')

resulting in:

ic| 'A\veryvery\long\path\to\no\even\longer\Bioblank _01_Heritisfinallythe file.file': ('A\veryvery\long\path\to
o\even\longer\HelloWorld '
'_01_Heritisfinallythe file.file')

Two things happen:

  1. The escape before \n i.e \\n is ignored and a new line created
  2. The string is cut into little bits for representation

I tried to figure out where in my code, the string does get turned into a tuple, but it does not. I know ('' '') is another way to write a sting, but I found it very confusing as it resembled a tuple closely.

@JosuaCarl JosuaCarl changed the title Icecream separating paths containing whitespace Icecream separating strings at whitespaces Jan 28, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant